Flowbite Admin Dashboard
A free open‑source admin dashboard template built with Tailwind CSS and Flowbite, suitable for web applications.
By themesberg themesberg/flowbite-admin-dashboard 2,896 stars
Introduction
Flowbite Admin Dashboard is a free, open‑source admin interface built with Tailwind CSS 4 and the Flowbite component library. It provides a set of ready‑made pages such as dashboards, authentication screens, CRUD tables, error pages, and settings. The project uses Hugo for static site generation and Webpack for asset bundling.
What this project offers
- A complete set of 42 HTML pages ready to be served as a static site.
- Dark‑mode and RTL (right‑to‑left) support.
- Responsive layout that works on desktop, tablet and mobile browsers.
- Integration with ApexCharts for interactive charts.
Main features
- Dashboard homepage with charts and widgets.
- Stacked layout version of the dashboard.
- CRUD pages for products and users.
- Authentication pages (sign‑in, sign‑up, forgot password, reset password, profile lock).
- Error pages (404, 500, maintenance).
- Settings and pricing pages.
- Playground pages to experiment with sidebar and stacked layouts.
- Reusable partials for header, navbar, sidebar and footer.
Technology stack
- Tailwind CSS 4
- Flowbite component library
- ApexCharts
- Hugo (static site generator)
- Webpack (asset bundling)
- PostCSS
Requirements
- Node.js (any recent LTS version)
- npm or Yarn
- Hugo (for generating the static site)
Installation
- Download the source – obtain the ZIP file from the release page and unzip it, e.g.
/download/flowbite-admin-dashboard.zip. - Open a terminal in the extracted folder.
cd flowbite-admin-dashboard
- Install Node dependencies
npm install
- Build the project – this runs Webpack to bundle JavaScript/CSS and then Hugo to generate the static site in the
public/folder.
npm run build
- Result – after the build finishes you will find the ready‑to‑serve files in
public/. Openpublic/index.htmlin a browser to view the dashboard locally, or upload the entirepublic/directory to any static‑hosting service.
Configuration
- Tailwind configuration – edit
tailwind.config.jsto change the content paths, safelist classes, colors or dark‑mode settings. - Hugo settings – site‑wide options are stored in
config.yml. Adjust the base URL, language, or other Hugo parameters there. - Webpack configuration – modify
webpack.config.jsif you need custom loaders, output paths or additional plugins.
Customizing the project
- Add or edit HTML pages in the
content/directory; they are automatically processed by Hugo. - Update UI components by editing the partials in
layouts/partials/. - Change styles by editing
src/style.cssand re‑runnpm run build(ornpm run build:stylesfor Tailwind only). - Extend charts by editing
src/charts.js.
Project structure
flowbite-admin-dashboard/
├─ content/ # Hugo content pages (HTML)
├─ data/ # JSON data used by pages
├─ layouts/ # Hugo layout templates and partials
├─ src/ # Source JavaScript and Tailwind CSS
├─ static/ # Public assets (images, icons, compiled JS/CSS)
├─ tailwind.config.js
├─ webpack.config.js
├─ package.json
└─ config.yml # Hugo site configuration
Tips
- Run
npm run startto start Hugo and Webpack in watch mode while developing. - Use
npm run build:stylesif you only need to rebuild the Tailwind CSS without rebuilding the whole site. - The generated
public/folder can be served by any static web server (e.g.,npx serve public).
License and attribution
The project is released under the MIT License. See the full license file at the repository: https://github.com/themesberg/flowbite-admin-dashboard/blob/main/LICENSE. When redistributing, keep the LICENSE file and credit the original author as required by the license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add Flowbite Admin Dashboard to a website or app you already have.
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate Flowbite Admin Dashboard ## Role You are a senior frontend developer assisting me in adding the Flowbite Admin Dashboard template into my existing web application. ## Project description Flowbite Admin Dashboard is a free open‑source admin dashboard template built with Tailwind CSS 4 and Flowbite. It provides a set of ready‑made pages, layouts, and UI components such as charts (ApexCharts), tables, forms, authentication screens, CRUD pages, error pages, settings, pricing, dark mode, RTL support, and responsive design. ## Source project - Repository: https://github.com/themesberg/flowbite-admin-dashboard - License: MIT - Framework: Tailwind CSS 4 - Build tooling: Hugo (static site generation) and Webpack 5.58.2 - Dependencies (from `package.json`): - `@popperjs/core` ^2.10.2 - `@tailwindcss/postcss` ^4.0.0 - `apexcharts` ^3.46.0 - `flowbite` ^3.1.1 - `tailwindcss` ^4.0.0 - Dev dependencies include PostCSS, Autoprefixer, CSS loaders, MiniCssExtractPlugin, and other Webpack plugins. ## Target project context - **Stack description**: `[describe your stack, e.g. Laravel 11 + Blade]` - **UI insertion point**: `[where the UI should go, e.g. replace the admin layout in resources/views/layouts/app.blade.php]` - **Existing CSS framework**: `[e.g. Bootstrap 5, Tailwind CSS 3, none]` ## Integration objectives - Bring over the dashboard layout, sidebar, top navigation, and footer. - Import reusable partials (header, navbar, sidebar, footer, analytics). - Add selected pages/components (dashboard home, CRUD tables, authentication screens, error pages). - Preserve existing authentication, routing, state, and data layers. ## Required components - Layout files: `layouts/_default/baseof.html`, `layouts/_default/dashboard.html`, `layouts/_default/main.html`, `layouts/_default/stacked-layout.html` - Partials: `layouts/partials/header.html`, `layouts/partials/navbar-dashboard.html`, `layouts/partials/sidebar.html`, `layouts/partials/footer-dashboard.html`, `layouts/partials/scripts.html` - Content pages: `content/_index.html` (dashboard home), `content/crud/products.html`, `content/crud/users.html`, `content/authentication/sign-in.html`, `content/authentication/sign-up.html`, `content/pages/404.html`, `content/pages/500.html`, `content/settings.html` (add others as needed). - Assets: `src/style.css`, `src/index.js`, `src/charts.js`, images under `static/images/`, icons in `static/`. ## Layout and styling requirements - Use Tailwind’s `prefix` option or a custom namespace if the target already uses Tailwind to avoid class collisions. - Keep the original `tailwind.config.js` content but merge its `content` paths with the target’s paths. - Preserve dark‑mode (`darkMode: "class"`) and RTL settings. - Ensure any custom colors or fonts from the source are added to the target’s Tailwind theme extension. ## Asset management - CSS: Build `src/style.css` with the provided Tailwind build script (`npm run build:styles`) and place the output `dist/css/flowbite.css` where the target serves its CSS (e.g., `public/css/`). - JS: Bundle `src/index.js` (which imports `charts.js`, `sidebar.js`, etc.) using the existing Webpack config; copy the resulting `static/app.bundle.js` to the target’s script directory. - Images & icons: Copy the entire `static/images/` folder to the target’s public assets folder, preserving the same relative paths. - Do not duplicate libraries that already exist in the target (e.g., if Tailwind is already installed, reuse it; if Flowbite is already present, skip reinstalling). ## Routing and navigation - Map each content page to an existing route in the target application. For example: - `/admin/dashboard` → `content/_index.html` (dashboard layout) - `/admin/products` → `content/crud/products.html` - `/admin/users` → `content/crud/users.html` - `/login` → `content/authentication/sign-in.html` - Update the target’s router or server‑side route definitions to point to the new HTML files or Blade/Blade‑like templates, keeping current URLs unchanged. ## Responsive requirements - Ensure the Tailwind breakpoints from the source are retained. Test the integrated pages on mobile, tablet, and desktop widths to confirm the sidebar collapses, navigation toggles, and charts resize correctly. ## Accessibility requirements - Verify that all interactive elements (menus, buttons, forms) retain the ARIA attributes from the source templates. - Check color contrast for dark and light modes. - Ensure focus order is logical when navigating with keyboard. ## Compatibility requirements - Tailwind CSS version 4 must be used (as declared in `package.json`). - Flowbite version 3.1.1 and ApexCharts 3.46.0 are required. - A build step is needed: run `npm install` then `npm run build` to generate the `public/` folder before copying assets. - The target must have Node.js and npm/yarn installed. ## Preserve the existing application - First, inspect the current codebase thoroughly before editing any file. - Do not replace authentication, routing, state management, or data‑access layers. - Make only small, isolated changes (e.g., add new layout files, import partials, update route definitions). - Ask for confirmation before deleting or overwriting any existing files. ## Testing and verification checklist - [ ] Existing routes still work and return the same responses. - [ ] Dashboard home loads with charts and widgets correctly. - [ ] Sidebar and top navigation appear and toggle on all screen sizes. - [ ] Dark mode and RTL mode can be toggled without breaking layout. - [ ] All imported CSS classes are applied; no missing Tailwind utilities. - [ ] No duplicate copies of Tailwind, Flowbite, or ApexCharts in `node_modules`. - [ ] Images and icons display correctly. - [ ] Authentication pages (sign‑in, sign‑up, reset password) render and submit to the existing backend. - [ ] CRUD pages display tables and allow basic interactions (no data mutation required). - [ ] 404 and 500 error pages are reachable via their routes. - [ ] Accessibility checks: ARIA attributes present, focus order correct, color contrast passes. - [ ] Responsive layout passes manual testing on mobile, tablet, and desktop. - [ ] Build process (`npm run build`) completes without errors and outputs assets to the expected locations.