Flowbite Crash Course in 20 mins | Introduction to UI components using Tailwind CSS

Flowbite
24 Aug 202222:58

Summary

TLDRThis crash course introduces Flowbite, an open-source library of interactive UI components built on Tailwind CSS. It showcases how Flowbite can save time and effort in designing websites, with features like a block system and Figma design files. The tutorial covers setting up Flowbite, using its pre-made components like accordions and buttons, and customizing them with utility classes. It also demonstrates creating a navbar, implementing dark mode, and building a dashboard using blocks. The course highlights Flowbite's integration with Figma for seamless design-to-code workflows and mentions the pricing of its Pro version.

Takeaways

  • 🌐 Flowbite is an open-source library of interactive UI components built on top of Tailwind CSS utility classes.
  • πŸ› οΈ It offers pre-made designs for various UI components, allowing developers to save time and effort in designing websites.
  • πŸ“š Flowbite's features include a block system and Figma design files, providing a seamless transition from design to code.
  • 🎨 The library provides a variety of customizable components, such as accordions and buttons, with options for dark and light modes.
  • πŸ”§ Flowbite's components come with pre-baked functionalities, such as the ability to keep an accordion open or customize active colors.
  • πŸ“ Documentation is comprehensive, offering examples and guidance on how to implement and customize components.
  • πŸ“± Responsive design is a key focus, with components adapting well to different screen sizes like tablets and mobile phones.
  • 🌈 Flowbite integrates with any framework and can be used without one, making it versatile for various web development projects.
  • πŸ“¦ Quick setup is possible through CDN links for the CSS and JS files, simplifying the inclusion of Flowbite in any project.
  • πŸ”„ The library supports easy customization of components through Tailwind CSS utility classes for colors, spacing, and more.
  • πŸ’‘ Flowbite's block system allows for the creation of full sections of a website, such as feature sections or footers, with ease.
  • 🎨 Figma integration offers a design-first approach, enabling developers to use pre-designed components directly within Figma.

Q & A

  • What is Flowbite and what is it used for?

    -Flowbite is an open-source library of interactive UI components built on top of the utility classes of Tailwind CSS. It is used to save time and effort in designing better websites for both new and existing projects that utilize Tailwind CSS.

  • What are some of the features provided by Flowbite?

    -Flowbite provides features such as a block system for creating sections like hero or feature sections, Figma design files integration, and pre-made components that are ready to be customized and used in projects.

  • How can Flowbite be used with different types of frameworks?

    -Flowbite can be used with various frameworks such as React, Svelte, or even without a framework, because it is built on top of Tailwind CSS, which makes it versatile for different types of projects.

  • Can you provide an example of how Flowbite simplifies the design process?

    -An example is the pre-made accordion component in Flowbite. It comes with all the necessary code and design, allowing users to simply update the content and customize it with data attributes for functionalities like 'always open'.

  • How does Flowbite handle responsive design?

    -Flowbite's components are designed to be responsive out of the box. Users can view and edit how components behave on different devices like tablets and mobile phones directly within the documentation.

  • What customization options are available for the buttons in Flowbite?

    -Flowbite offers various button designs with options for sizes, colors, gradients, and more. Users can easily customize these buttons by changing the content and classes according to their project's needs.

  • How can I get started with Flowbite for my project?

    -To get started with Flowbite, you can include the CDN links for the CSS and JS files in your project. This method is simple and works for any type of project, allowing immediate use of Flowbite's components.

  • What is the benefit of using Flowbite's pre-designed components?

    -The benefit of using Flowbite's pre-designed components is that they save time by eliminating the need to manually design and style elements. They also ensure a consistent and professional look across different components.

  • How does Flowbite support dark mode in its components?

    -Flowbite supports dark mode by baking in both light and dark mode versions of its components. Users can switch between modes, and the components will adjust accordingly, reflecting the appropriate styling.

  • What is the process of implementing a navbar using Flowbite?

    -To implement a navbar using Flowbite, you can copy the pre-made syntax for the navbar from the documentation, paste it into your project, and then customize the logo, menu items, and other elements as needed.

  • How can Flowbite be integrated with Figma for design purposes?

    -Flowbite integrates with Figma by offering Figma design files with components and pages designed and ready to use. This allows designers to create and plan website layouts in Figma and then easily translate them into code.

  • What are the pricing options for Flowbite's Pro version?

    -The Pro version of Flowbite offers additional content and features. The pricing is $249 for a Developer Edition and $149 for a Designer Edition, providing access to more designs and components in Figma and other exclusive features.

Outlines

00:00

🌐 Introduction to Flowbite and UI Components

This paragraph introduces Flowbite, an open-source library of interactive UI components built on Tailwind CSS utility classes. It emphasizes the time-saving and design-enhancing benefits of using Flowbite for new or existing projects. The paragraph also mentions the library's compatibility with various frameworks and its feature-rich design, such as the block system and Figma design files. An example of an accordion component is provided to illustrate the pre-made design and code, showcasing how easy it is to customize and integrate into projects.

05:03

🎨 Customizing Components and Exploring Flowbite Features

The second paragraph delves into the customization options available in Flowbite, such as color schemes, dark and light modes, and typography settings. It outlines the process of setting up Flowbite for a project by including the CDN links for the CSS and JS files, bypassing the traditional package installation method. The paragraph also demonstrates how to integrate Flowbite components, like buttons, into a basic HTML document using a live server setup in VS Code, highlighting the ease of customization and the pre-built design aspects of the components.

10:03

πŸ“š Utilizing Flowbite for Navbar and Dark Mode Implementation

This paragraph focuses on using Flowbite to create a navbar and implement dark mode functionality. It discusses the variety of navbar options available and the ease of customization, including changing logos and adjusting styles for different screen sizes. The paragraph also explains how Flowbite's dark mode is integrated, either through system settings or custom scripts, and how to apply it to the entire website, including background and component colors, for a consistent user experience.

15:03

πŸ› οΈ Building a Dashboard with Flowbite Blocks and Customization

The fourth paragraph illustrates the process of building an admin dashboard using Flowbite's blocks, such as breadcrumbs, dropdowns, and hero sections. It highlights the ability to quickly add and customize these components, as well as the option to adjust styles like text alignment and padding. The paragraph also addresses the importance of styling for dark mode, showing how to change background colors to ensure visual consistency across different themes.

20:04

πŸ“ˆ Exploring Flowbite Blocks and Figma Integration

The final paragraph discusses the concept of blocks in Flowbite, which are combinations of components to create sections like feature or hero areas. It showcases the variety of block examples available and their adaptability to different devices and color schemes. The paragraph also introduces Flowbite's integration with Figma, allowing designers to work with Flowbite components in a design software environment, streamlining the design-to-code process. Lastly, it touches on the pricing model of Flowbite, offering a free tier and paid options for additional content and features.

Mindmap

Keywords

πŸ’‘Flowbite

Flowbite is an open-source library of interactive UI components built on top of the utility classes of Tailwind CSS. It is designed to save time and effort in designing websites by providing pre-made components. In the video, Flowbite is the central theme, showcasing how it can be used to quickly build and customize interactive elements for both new and existing projects.

πŸ’‘Tailwind CSS

Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces. It provides low-level utility classes that can be composed to create unique designs without writing CSS from scratch. In the context of the video, Flowbite is built on top of Tailwind CSS, leveraging its utility classes to create interactive UI components.

πŸ’‘UI Components

UI components refer to the individual elements that make up a graphical user interface, such as buttons, forms, and navigation bars. The video script discusses how Flowbite offers a variety of pre-designed UI components that can be easily integrated into projects, streamlining the design process.

πŸ’‘Accordion

An accordion is a UI component that allows multiple sections of content to be displayed in a single space, with each section expandable and collapsible. The script uses the accordion as an example of a pre-made Flowbite component that can be customized and utilized in a project with minimal effort.

πŸ’‘Documentation

Documentation in this context refers to the written instructions and examples provided for using Flowbite. The video emphasizes the importance of Flowbite's documentation, which offers guidance on how to implement and customize its components, such as the accordion and buttons.

πŸ’‘Customization

Customization involves modifying pre-existing designs or components to fit specific needs or preferences. The video script highlights the ability to customize Flowbite components, such as changing colors or adding attributes like 'data-accordion-open', to tailor the components to the project's requirements.

πŸ’‘Buttons

Buttons are a common HTML element used for various purposes, such as submitting forms or navigating links. The script discusses how Flowbite provides a range of button designs with pre-set styles, making it easy for developers to implement visually appealing buttons without manual CSS work.

πŸ’‘Responsive Design

Responsive design ensures that web pages render well on different devices and screen sizes, from desktops to mobile phones. The video mentions that Flowbite components are designed with responsiveness in mind, allowing developers to create websites that adapt to various viewing contexts.

πŸ’‘CDN

CDN stands for Content Delivery Network, which is a system of distributed servers that deliver web content to users based on their geographic location. The script describes using a CDN to include the Flowbite CSS and JS files in a project, allowing for quick and easy integration without the need for package installation.

πŸ’‘Figma

Figma is a cloud-based design tool used for creating user interfaces and prototypes. The video script mentions Flowbite's integration with Figma, allowing users to work with Flowbite components within Figma designs, creating a seamless transition from design to code.

πŸ’‘Blocks

In the context of Flowbite, blocks refer to pre-designed sections of a webpage, such as feature sections or hero sections, that combine multiple components. The script explains how blocks can be used to quickly build out complex parts of a website, leveraging the power of Flowbite's component-based design.

πŸ’‘Pro Version

The Pro Version of Flowbite is a paid upgrade that unlocks additional content and features beyond the free version. The script briefly touches on the Pro Version, indicating that it offers more designs and components for those who require a broader range of options for their projects.

Highlights

Flowbite is an open-source library of interactive UI components built on Tailwind CSS utility classes.

It saves time and effort in designing better websites for new or existing projects using Tailwind CSS.

Flowbite features include a block system and Figma design files for comprehensive design integration.

Flowbite is compatible with various frameworks like React, Svelte, or can be used without a framework.

Pre-made components are provided with all necessary Tailwind CSS classes for immediate use.

Components like the accordion have functional designs with customizable options via data attributes.

Buttons are designed with alternative options, spacing, sizing, and pre-selected colors from Tailwind CSS.

Flowbite offers a variety of button designs such as rounded corners, gradients, and dual-tone styles.

The library includes styling options with pre-selected colors, dark and light modes, and typography settings.

Setup for new or existing projects is straightforward, with options to include via CDN or package installation.

Quick start guides are available for different project types, including React and Svelte.

Flowbite's components can be easily customized and updated with new content and styles.

Dark mode is natively supported with automatic OS theme detection and manual toggle options.

Navbars, breadcrumbs, and hero sections can be quickly implemented with pre-designed components.

Flowbite blocks allow combining multiple components to create full sections like features or pricing tables.

Figma integration provides handcrafted designs that can be directly translated into code.

Flowbite is free to use, with a Pro version offering additional content and features for a fee.

The Pro version includes more designs in Figma and pre-made sections for various UI applications.

Flowbite aims to streamline the design-to-code process, making web development more efficient.

Transcripts

play00:00

welcome to this crash course on flowbite

play00:02

if you haven't heard of it before it is

play00:04

an open source library of interactive ui

play00:07

components built on top of the utility

play00:10

classes of tailwind css we'll be

play00:12

exploring exactly how you can get

play00:14

started using flow by to save yourself

play00:16

time and effort to design a better

play00:18

website for a brand new project or even

play00:20

an existing project that you might be

play00:22

using with tailwind css

play00:24

on top of that we'll be exploring some

play00:26

of the features that flowbite provides

play00:27

such as their block system or even their

play00:30

figma design files now before we get

play00:32

started let's take a quick look at what

play00:34

flow bite currently is and some of the

play00:36

benefits of utilizing it when you land

play00:38

on the page you'll learn that flow bite

play00:40

is something that you can use with

play00:42

pretty much any type of framework

play00:43

whether it's react of you or schveldt or

play00:46

even if you're not even using a

play00:47

framework because it is built on top of

play00:50

tailwind css and it essentially is all

play00:52

of the different types of components

play00:54

that you're used to utilizing in a

play00:56

website design pre-made and designed in

play00:58

such a way as you can use them for your

play01:01

project

play01:02

let's have a look at this accordion

play01:03

example to see exactly what i mean

play01:06

when you land here you'll head over to

play01:08

the documentation which tells you a

play01:10

little bit more about the accordion as

play01:12

well as gives you a preview of it if you

play01:14

want to have a look at other components

play01:16

they're all on the left here and we'll

play01:18

get into those shortly but let's have a

play01:20

look at this accordion example to show

play01:22

what flow by does

play01:24

it essentially is the pre-made design

play01:26

for this component and you can see all

play01:29

the code that goes along with it just

play01:31

here below

play01:32

this is created in such a way as to all

play01:35

the classes from tailwind css being

play01:38

pre-made for you ready to be copied and

play01:40

utilized in your project

play01:42

this is a functional accordion and all

play01:44

you really need to do is update the

play01:46

content that you have inside of there

play01:49

you have the option to view in dark mode

play01:51

or in light mode you have the option

play01:54

here to have a look how the responsive

play01:56

design is on say for example tablet as

play01:58

well as mobile much like other libraries

play02:01

and packages the content that you have

play02:03

here can still be edited by you and

play02:06

customized however you want of course

play02:08

there are the functionalities pre-baked

play02:11

into this code such as having options

play02:13

like say always open available for you

play02:16

to utilize by simply passing in the data

play02:18

attribute here

play02:20

data-accordion-open this allows you to

play02:22

keep the accordion open when you open up

play02:24

different tabs or for example if you

play02:26

wanted to customize the active color

play02:29

with this blue outline you simply can

play02:31

pass in the data active classes with the

play02:35

options of what you're looking for for

play02:37

the colors now all of these are really

play02:39

available here for you to view in the

play02:41

documentation there's even javascript

play02:44

behaviors that you can apply depending

play02:46

on what you're after such as checking

play02:48

the options of always open or adding in

play02:50

methods and it's up to you to read the

play02:53

documentation and utilize it in which

play02:55

way you want but let's take another look

play02:57

at another example of these components

play02:59

by having a look at the buttons one of

play03:02

my favorite examples whenever looking at

play03:04

a component library buttons they're

play03:06

probably one of the most common html

play03:09

elements buttons are used from

play03:11

everything from forms to links to logins

play03:13

and lots more and they can come in a

play03:16

varying amount of sizes and colors and

play03:18

gradients but realistically the default

play03:21

theme for a button looks terrible on

play03:23

most browsers so here flow byte has

play03:25

taken the html element of a button and

play03:28

designed lots of alternative options

play03:30

here with the perfect amount of spacing

play03:32

and sizing and weight and the colors are

play03:35

already chosen for you as well based on

play03:37

tailwind css if we have a look at the

play03:40

syntax here it's another example of how

play03:42

flow byte works where we're using the

play03:44

html button element here and we're

play03:46

populating it with all the css classes

play03:49

from tailwinds to make it look good now

play03:51

if you have a look there are well quite

play03:54

a few classes here happening and

play03:57

realistically you don't have to worry

play03:58

too much about this you only really need

play04:00

to change the content inside

play04:02

what these classes are doing are

play04:04

everything from introducing the

play04:06

background color to the font color to

play04:08

the little border radius that you see

play04:10

around as well as the hover effect and

play04:12

lots more normally if you're building a

play04:14

website and you are using something like

play04:16

tailwind css by itself you would have to

play04:18

manually fill this out yourself and this

play04:20

is time consuming and you also have to

play04:22

have a little bit of an eye for design

play04:25

what the benefit here is is that all of

play04:27

this is done for you now there are other

play04:30

types of button designs here such as

play04:32

these rounded corners with buttons or

play04:34

even these ones with gradients across

play04:37

there is a lots and lots of options here

play04:39

on the right hand side and they're ready

play04:41

to go for you to use some examples are

play04:43

here this one with gradient with dual

play04:45

tones or for example gradient with

play04:47

outlines which actually looks kind of

play04:49

trendy and many many more

play04:52

the goal here is to know that you

play04:54

actually have all the options available

play04:56

for you to use depending on the

play04:58

situation that you need so you don't

play04:59

have to manually design them yourself

play05:02

moving on there is a lot more to

play05:04

flowbite than just all these different

play05:06

types of components there is the styling

play05:09

that goes along with it such as having

play05:11

all the options of colors pre-selected

play05:14

that often come from tailwind css as

play05:17

well as options like dark mode and light

play05:19

mode baked straight in and we even have

play05:23

options for better topography such as

play05:25

setting out all your headings as well as

play05:28

the sizings for them so that if you need

play05:30

to create a section here for maybe a

play05:33

hero or something else then you

play05:35

basically have all of this ready to go

play05:38

these are just some of the benefits but

play05:41

realistically you'll see a lot more when

play05:43

we begin using it so let's start here at

play05:45

the very top at the very beginning as an

play05:47

introduction to how to set up flow byte

play05:50

for your project whether it's new or

play05:52

existing it's actually quite simple and

play05:54

there is a quick start available for any

play05:56

type of project whether using something

play05:58

in react or schvelt or even angular but

play06:01

what we're going to be doing is not

play06:02

following the traditional method where

play06:05

we install the package by npm and import

play06:07

it into our project which actually

play06:09

requires a few more steps in case you're

play06:11

using something like a react we're gonna

play06:13

go nice and simple by just simply

play06:15

including the cdn package of the css

play06:18

file as well as the js file this will

play06:20

allow us to import it into any type of

play06:22

project immediately it'll be nice and

play06:24

simple

play06:25

on top of that if for example you do

play06:27

have a react project there is a react

play06:30

startup guide that you can follow with

play06:32

the packages that you need in order to

play06:34

get it up and running as well as the

play06:36

tailwind.config.js file which you can

play06:38

set up nice and simple and how to import

play06:40

it into your project we might cover this

play06:42

in future videos but for the time being

play06:45

let's have a look at our introduction

play06:47

here which will simply be to copy over

play06:49

these two files we'll begin by opening

play06:51

up vs code here i'm going to create a

play06:54

brand new file and this will be called

play06:57

index.html it'll be empty for the time

play06:59

being i'm also going to run a live

play07:01

server this is a plugin inside of vs

play07:04

code which you can download but what

play07:06

it's going to do is populate a brand new

play07:08

website here where anything i type into

play07:11

this section here will be updated and

play07:13

shown in the live browser but it's not

play07:15

ready yet to go because we need to add

play07:17

our html markup and so now let me close

play07:19

everything off and zoom in a little bit

play07:21

so that you guys can see what i'm doing

play07:22

i'm going to place an exclamation mark

play07:24

here and emmett will fill out the rest

play07:25

of this content here i'm going to have a

play07:28

nice simple html document with no title

play07:30

yet i'll call this the flow byte crash

play07:33

course

play07:34

here i'm gonna place the actual files

play07:37

that we have from our cdn

play07:39

the very first one will be the

play07:41

stylesheet which i don't think i copied

play07:42

the entire syntax of so let me just jump

play07:45

back in this goes inside the head of our

play07:47

document so i'm going to place it just

play07:49

below the title over here

play07:51

the next file here is the javascript

play07:53

file and this one needs to go at the end

play07:55

of our body element so i'm going to

play07:57

place it here at the very bottom adding

play07:59

in a few line breaks last but not least

play08:02

we need a copy of tailwind css so just

play08:05

head over to the tailwind website we're

play08:07

going to head over to the setup we're

play08:09

going to select a play with the cdn and

play08:12

we're going to copy the syntax to pull

play08:14

in the cdn into the project in this case

play08:18

their cdn currently exists as a script

play08:20

that is placed inside of the head tag

play08:23

and it downloads the cdn through this

play08:25

script it also has the benefit of

play08:28

allowing you to pull in different types

play08:30

of content here depending on whether you

play08:33

just want to pull in forms or topography

play08:35

but if we select the main one over here

play08:38

we're going to be pulling in everything

play08:39

now let's give this a test by actually

play08:42

jumping back into flow byte heading over

play08:44

to the button section and then selecting

play08:47

to copy the syntax for the buttons that

play08:49

we have just over here i'm going to jump

play08:51

back into vs code here and i'm going to

play08:53

paste all of this content which is quite

play08:55

a little bit let's zoom out a little bit

play08:57

so that you guys can see that and drag

play08:59

this window over here to the left hand

play09:01

side what i'm going to do is place this

play09:03

window here on the right hand side so

play09:05

that you can actually see the content

play09:07

that appears when we update the code and

play09:09

there we go we've got all those buttons

play09:11

that we previously had here in our

play09:13

example now existing inside of our demo

play09:16

here of our web page pretty cool so

play09:18

we've got this up and running i

play09:20

mentioned previously that these lines of

play09:22

codes are pre-baked and made ready for

play09:24

you to use to convert into actual

play09:26

content

play09:28

so all we need to do now is turn this

play09:30

into say a save button and the content

play09:32

here is updated if for example we wanted

play09:35

a different color we could jump in here

play09:37

and rename this blue to say maybe a

play09:39

purple and we can see that the button

play09:41

will automatically update this is one of

play09:44

the benefits to how quickly and easily

play09:46

it is to utilize flow by to work inside

play09:48

of an existing project as well as

play09:50

customize it to how you want if for

play09:52

example we were to take out some of

play09:54

these classes like the white text we

play09:55

would lose out on some of the styling

play09:57

this would be the same as for the

play09:59

padding and other elements which

play10:01

basically ruined the design it takes

play10:03

time and care to create these designs

play10:05

and this is why this is so useful to

play10:07

have now let's remove all of these

play10:09

buttons and have a look at a more

play10:11

interesting and common thing that we

play10:13

would normally start off on a web page

play10:15

which is a navbar if you ever feel lost

play10:17

or you're looking for a component or a

play10:19

design always jump onto the

play10:20

documentation which is really well

play10:22

presented here we've got our navbar

play10:24

which i'll select and over here we're

play10:26

going to have a few different examples

play10:28

of nav buyers that are used in different

play10:30

types of states as well depending on one

play10:33

what type of mobile responsiveness

play10:34

you're after

play10:36

personally i like usually the most basic

play10:38

default one because it's just the one

play10:40

where you have an icon on the left with

play10:42

the menu on the right hand side but if

play10:44

you're interested there are drop down

play10:45

menus there are even multi-level drop

play10:48

down menus there are sticky navigations

play10:50

and lots more lots more but let's have a

play10:53

look at the basic navbar here and we're

play10:56

going to copy over the syntax which is

play10:58

ready for us to use and place this into

play11:00

the project just over here

play11:02

i'm going to give it a little bit of

play11:04

mock-up here calling that the nav bar in

play11:06

comments and we're going to have a look

play11:08

at the project here which has now

play11:10

already created this navbar i'm zoomed

play11:12

in a little bit so you can see that

play11:14

we've already collapsed that navbar but

play11:16

if we select the button a drop down

play11:18

appears with all the navbar options

play11:20

let's zoom out of this project a little

play11:22

bit and you can see that as soon as we

play11:23

do the nav bar with its menu items have

play11:26

been populated if we wanted to change

play11:28

for example the logo then we simply just

play11:31

have to go to this section over here

play11:33

where this logo exists and we can swap

play11:35

out this svg that we have with our own

play11:37

logo as a quick example i've actually

play11:39

placed in a new svg just over here

play11:42

called blue logo let's see if we can

play11:44

update this logo right now to

play11:45

incorporate that instead of the exact

play11:47

existing one that we have online here

play11:50

i'm going to pass in the path blue logo

play11:52

hit save and we can see that we

play11:54

immediately have updated that we still

play11:56

have the span here with the text we can

play11:58

remove that and we've got our new logo

play12:00

placed in here the other thing i want

play12:01

you guys to be aware of is that the dark

play12:03

mode version of this navbar is currently

play12:05

active if for example i was to jump into

play12:08

my windows settings and set myself to

play12:10

light mode for my entire os this

play12:14

actually gets reflected in terms of the

play12:16

styling of flow bite and its components

play12:18

which is really cool

play12:19

the reason this happens is because we

play12:22

actually have all of these baked in in

play12:24

terms of the dark mode version as well

play12:26

as the light mode version and this is

play12:28

what i mean in terms of having a design

play12:31

for not only just components but their

play12:33

styling in terms of light mode and dark

play12:35

mode also available inside of flow

play12:36

flowbite if for example you wanted to

play12:38

have more fine grained control over the

play12:40

dark mode of flow bite you actually have

play12:42

those options available to be configured

play12:44

inside of the tailwind.config.js

play12:47

alternatively you can create your own

play12:49

scripts to swap from dark mode to light

play12:51

mode and attach them to buttons inside

play12:53

of your website and this is also quite

play12:55

useful we can try this out right now

play12:57

let's grab this script and place it into

play13:00

the head of our document here for our

play13:02

html file i'm just going to place it

play13:04

here below the next thing we'll want to

play13:07

do is a grab this button design here and

play13:09

place this into the code for our website

play13:12

so i'm just going to place it here into

play13:14

the body tag finally we're going to add

play13:16

this here which will allow us to do a

play13:19

toggle this is just plain javascript

play13:21

code so we should be able to place this

play13:23

anywhere what i'm going to do is just

play13:25

scroll over here to the bottom of the

play13:26

website open up a new script tag and

play13:29

paste this in below let's hit save on

play13:31

that and give that a test we now have

play13:33

this little dark icon here at the very

play13:35

top of the website when we select it we

play13:37

now have a dark version of the website

play13:39

and when we select it again we're back

play13:40

to the lite version we've now

play13:42

successfully implemented dark mode into

play13:44

the website and it only took us 45

play13:46

seconds now let's take a look at how

play13:48

else we can customize the current navbar

play13:50

that we have here the other thing that

play13:52

we can do is have a look at the classes

play13:54

already available to us here inside of

play13:56

the tailwind css utility classes and we

play13:59

can customize them depending on what we

play14:00

want such as instead of having a

play14:02

background of white we could have a gray

play14:05

background with a value here weight of

play14:07

100 allowing it to have a very slight

play14:10

opacity of a gray color so to speak or

play14:13

we could make that even stronger by

play14:14

pushing it up to 500 or 400 depending on

play14:17

what looks good for our website but

play14:20

since the white color works best in this

play14:21

example i'm going to leave it as white

play14:23

this is just some of the quick ways that

play14:25

you can customize the website based on

play14:27

the utility classes that we already have

play14:29

but in most cases the components are

play14:30

already designed in such a manner that

play14:32

they already look good now let me show

play14:34

you how we could quickly build out a

play14:35

dashboard maybe an admin dashboard based

play14:38

on what we already have

play14:39

we could for example throw in a

play14:42

breadcrumb here's a pretty simple one

play14:44

which i can place right below our

play14:46

section here of the navbar let me place

play14:49

it right here below the code and let's

play14:51

have a look at what that might look like

play14:53

in terms of our design which is just

play14:55

over here

play14:57

we can see that if we were to expand our

play14:59

design we don't actually have a

play15:01

container for it yet so this is where we

play15:03

could add in a little bit of our own

play15:04

code just to make sure that we have

play15:06

about the same type of container we

play15:08

could even reuse the container that we

play15:10

have currently inside of our nav bar to

play15:12

basically encapsulate the additional

play15:15

breadcrumb that we have so let me

play15:17

actually copy this out

play15:18

paste this div in here below refresh it

play15:21

and now you'll see that all the content

play15:23

here is aligning just the same as our

play15:25

logo here

play15:27

next up let's see if we can add a little

play15:29

bit of a section here of maybe a hero or

play15:31

something else there are drop downs and

play15:33

often after a breadcrumb you might have

play15:35

a few options for a person to select

play15:37

inside of an admin menu so let me

play15:39

actually copy this across and we're

play15:41

going to paste this in below this

play15:43

section but i'm going to keep it inside

play15:45

of the container let's hit save on that

play15:47

and let's give it a quick test we can

play15:50

see that the drop down button here is on

play15:52

the right hand side and it's working

play15:54

quite well now let's move on to see if

play15:56

we can continue to fill this out we're

play15:58

going to head over to topography and to

play16:00

headings now here i want to have a bit

play16:02

more of a hero section for the website

play16:05

we've got an example of one here which

play16:07

is nice and centered and we've got the

play16:08

code that we can copy paste across i'm

play16:10

gonna jump into the code and we're gonna

play16:12

place this at the very bottom just over

play16:15

here and hit save we can see that it

play16:17

currently exists but unfortunately it's

play16:19

not centered so let's actually fix that

play16:21

up right now

play16:22

we'll wrap this in its own div and this

play16:25

is where you can still add in your own

play16:27

code and pass something in like text

play16:29

center this should center the text and

play16:31

we can see that now it looks and feels

play16:33

much better in terms of its styling

play16:35

however we're still missing a little bit

play16:37

of padding from the top here and this is

play16:39

where we can do pt maybe something like

play16:41

12 to add some padding to the top so

play16:44

what the goal here is is that some of

play16:46

these components are made ready for you

play16:48

to utilize but you can still do some of

play16:50

your own styling if you want to do that

play16:52

and the results look quite good one

play16:54

thing you'll notice is that when we

play16:55

implement dark mode now to this website

play16:57

it's not looking particularly good

play16:59

because of the fact that the background

play17:01

here for the entire page doesn't change

play17:03

we can fix that up by going back into

play17:05

the body here and adding a class here

play17:07

we'll start off with bg white since

play17:09

that's what we're using but for the dark

play17:11

version we could use something like bg

play17:13

gray say 800. let's hit save on that and

play17:16

now select the dark mode and we can see

play17:18

that all the elements including the

play17:20

background look a lot better with the

play17:22

implementation of this change now that

play17:24

we have a good idea of what flow by does

play17:26

in terms of its components and benefits

play17:28

let's take this one step further by

play17:30

having a look at blocks

play17:32

blocks are basically utilizing one or

play17:35

more components to create a section such

play17:38

as a hero section or a feature section

play17:40

it is essentially the exact same

play17:42

benefits we were getting before now take

play17:44

him to that next level so for example

play17:47

here if we wanted to have a look at this

play17:49

features section we basically have lots

play17:51

and lots of different types of examples

play17:53

of features sections that have been

play17:55

built out using the components we've

play17:57

been just learning about

play17:59

now we can pick one that we like and we

play18:01

basically can do the exact same thing we

play18:03

did previously we can have a look at

play18:05

what they look like at different

play18:07

viewports such as on tablet or even on

play18:09

mobile phone and they all work perfectly

play18:12

we can change their color from dark mode

play18:14

to light mode and even their colors as

play18:16

well as their fonts and once we've done

play18:20

all of this we can simply jump into the

play18:22

code and copy them and paste them

play18:24

straight into our project let's take

play18:26

this section here that we have for

play18:28

features and try and paste this into our

play18:30

own code to see what it looks like

play18:32

instead of the content that i previously

play18:35

had which was this section here i'm

play18:37

going to replace it with this feature

play18:39

section and have a look at what that

play18:41

looks like on our website and we can see

play18:43

here it is it's been designed and we've

play18:45

got all the content available for us to

play18:47

immediately use but on top of that if we

play18:50

were to set it to light mode as well as

play18:52

dark mode we can see most of that is

play18:54

working let's go back a page to have a

play18:57

look at some of the types of blocks that

play18:59

are available obviously we have our hero

play19:01

feature and header but we also have

play19:03

things like ctas and pricing tables and

play19:06

content sections i don't have a footer

play19:09

yet for my website so what i'm thinking

play19:11

here is to select the footer example

play19:14

here of a block and let's actually fill

play19:16

this out so that we have a website

play19:17

that's more or less done

play19:19

the footer has the icon as well as the

play19:21

topography and links as well as the

play19:23

copyright basically everything we would

play19:25

normally use for a copyright section and

play19:28

man this makes it so much easier i'm

play19:30

just going to jump back into the code i

play19:32

should be able to simply paste this in

play19:34

at the very bottom we can preview the

play19:36

website and i believe the website should

play19:38

be just over here you can scroll down

play19:40

and a mobile version works really well

play19:43

we can change to a dark version that

play19:45

looks good we can expand out the entire

play19:47

desktop and we can see that our footer

play19:49

is designed and complete which is

play19:51

awesome i think this pretty much covers

play19:53

blocks and it doesn't need much more for

play19:55

an explanation so let's move on to the

play19:57

other great feature that is a provider

play19:59

through flowbite which is through figma

play20:01

and figma is a design software that

play20:04

allows you to build websites but there

play20:06

is an integration of flow byte together

play20:08

with figma where you can start playing

play20:10

around with all the components that are

play20:11

normally available inside of flow byte

play20:14

that are easily copy and pasted and

play20:17

these components are actually available

play20:20

and hand crafted as designs inside of

play20:22

figma

play20:23

here is an example of what that looks

play20:25

like and we can simply duplicate and

play20:27

reuse a lot of these components which

play20:29

are available it comes with all the

play20:31

styling such as your fonts as well as

play20:34

your colors and then on top of that you

play20:36

have all your pre-made pages and

play20:38

components designed and ready to go so

play20:41

if for example you want to have a look

play20:42

at creating a section or integrating it

play20:45

into a website all of these things are

play20:47

ready and they're exactly the same as

play20:50

the coded html elements so this

play20:52

basically means that if you're building

play20:55

a website design using the flow by

play20:57

design here from vigma you'll be able to

play21:00

take this into the step of developing it

play21:02

and it'll look exactly the same all the

play21:04

colors here are available for you to be

play21:07

able to select all the topography that

play21:09

you might ever want to consider or look

play21:11

at is here if you want to have a look at

play21:13

your spacing all the grid structures are

play21:15

here if you want to be more specific

play21:17

such as have a look at button designs

play21:19

they're all here too if for example you

play21:22

want to have a look at the application

play21:24

ui similar to what is available if you

play21:26

purchase the pro version they're all

play21:28

available here too we'll get into that

play21:30

shortly but realistically there is a lot

play21:33

of content here ready for you to be able

play21:35

to use and this is the whole purpose of

play21:37

flow byte essentially making the flow

play21:39

from design to code one seamless

play21:41

practice and so one of the biggest

play21:43

benefits to flowbite is that it's

play21:45

entirely free to get started and use you

play21:47

even have access to blocks the way that

play21:50

the pricing and pro version works is by

play21:52

simply unlocking more and more content

play21:55

for you to be able to use this means

play21:57

that if for example you wanted to have

play21:59

more designs inside of figma more

play22:00

application ui sections pre-made or

play22:03

marketing ui sections pre-made this is

play22:05

basically what gets unlocked with the

play22:07

pro version essentially saving you time

play22:09

which does save you money the pricing

play22:12

for it is quite simple it's free to get

play22:14

started but for a developer edition it's

play22:16

249 dollars and a designer edition is

play22:19

149

play22:20

if you want to find out more about that

play22:22

you can head over to flowbite.com for

play22:24

slash pro where you get to have a look

play22:26

at exactly what is included but i

play22:28

definitely recommend you try it out to

play22:30

get a feel of just how much time it will

play22:32

save you if you start using it i hope

play22:34

you guys enjoyed this small crash course

play22:36

into flowbite and it's given you an idea

play22:38

of exactly what you can start doing with

play22:40

it in the future we'll be covering

play22:42

videos and topics on how to build all

play22:44

sorts of stuff from building forms to

play22:46

dashboards to even entire websites a lot

play22:49

of the other links that we've covered

play22:50

today will also be in the description

play22:52

below but otherwise make sure you guys

play22:54

hit like and subscribe and i'll see you

play22:56

in the next one thank you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
FlowbiteTailwind CSSUI ComponentsWeb DesignOpen SourceFigma IntegrationDark ModeResponsive DesignCustomizableInteractive UI