themesberg /flowbite
Open-source UI component library and front-end development framework based on Tailwind CSS
★ 9,384⑂ 867👁 47⑃ 269● 666▤ 56
-1
Daily
9,384
stars
867
forks
47
watchers
269
prs
666
issues
56
releases
README
Build websites even faster with components on top of Tailwind CSS
------
Table of Contents
- Table of Contents
- Documentation
- Getting started
- Install using NPM
- Include via CDN
- Bundled JavaScript
- Data attributes
- Init functions
- ESM and CJS
- TypeScript
- RTL support
- JavaScript Frameworks
- Back-end Frameworks
- Components
- Figma Design System
- Flowbite Blocks
- Flowbite Icons
- Flowbite GPT
- Pro version
- Hire us
- Learn Design Concepts
- Community
- Copyright and license
Documentation
For full documentation, visit flowbite.com.
Getting started
Flowbite can be included as a plugin into an existing Tailwind CSS project and it is supposed to help you build websites faster by having a set of web components to work with built with the utility classes from Tailwind CSS.
Install using NPM
Make sure that you have Node.js and Tailwind CSS installed. This guide works with Tailwind v4.
1. Install Flowbite as a dependency using NPM by running the following command:
npm install flowbite
2. Import the default theme variables from Flowbite inside your main input.css CSS file:
/ choose one of the following /
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import "flowbite/src/themes/default";
/ MINIMAL THEME
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/minimal";
/
/ ENTERPRISE THEME
@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/enterprise";
/
/ PLAYFUL THEME
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap');
@import "flowbite/src/themes/playful";
/
/ MONO THEME
@import "flowbite/src/themes/mono";
/
3. Import the Flowbite plugin file in your CSS:
@plugin "flowbite/plugin";
4. Configure the source files of Flowbite in your CSS:
@source "../node_modules/flowbite";
5. Include the JavaScript code that powers the interactive elements before the end of your tag:
Learn more about the Flowbite JavaScript API and functionalities in the JavaScript section.
If you have and old project with Tailwind CSS v3 then check out this guide to learn how to upgrade to v4.
Include using CDN
The quickest way to get started working with Flowbite is to include the CSS and JS into your project via CDN.
Require the following minified stylesheet inside the head tag:
html
}}/dist/flowbite.min.css" rel="stylesheet" /
And include the following JavaScript file before the end of the body element:
html
}}/dist/flowbite.min.js"
Please remember that the best way to work with Tailwind CSS and Flowbite is by purging the CSS classes.
Bundled JavaScript
One of the most popular way of using Flowbite is to include the bundled Javascript file which is UMD ready using a bundlTop issues
#796Flowbite's handling of Turbo is using the wrong strategy39 comments · 2024-02-05#579Dropdown and other animations stop working when going through pages.24 comments · 2023-06-15#32Datepicker locale24 comments · 2021-12-10#132Prefixes in components21 comments · 2022-04-11#998Rails 8 + Importmaps - missing backdrop17 comments · 2024-11-18#698Rails Turbo Frames multiple backdrops issues15 comments · 2023-10-30#25Build an autocomplete input component13 comments · 2021-12-03#567Dropdown won't close on item click11 comments · 2023-05-30
Discussions
#1146Changing CSS selectors0 comments · 2026-05-18#1144Do we have official plan for UnoCSS support?0 comments · 2026-04-17#1126Navbar hamburger menu, looks rubbish1 comments · 2026-01-12#1125Flowbite Inline Datepicker — Unable to customize styles (borders, colors, selected date, other month days)1 comments · 2026-01-10#1101Javascript in Pro Version included?2 comments · 2025-10-30#1097Can I use the Modal events while initializing with data attributes?0 comments · 2025-10-04#1093Floating label for select element2 comments · 2025-09-17#1086Is Volt abandoned?1 comments · 2025-07-21
Latest release
v4.0.2 v4.0.2 2026-05-13- fix font leading value by @Bsrat06 - fix Astro documentation by @marceloverdijk