Skip to content
W3Frontend Free Frontend Code Snippets
Admin Dashboards Bootstrap 5 chart.jsjsvectormaplucidesimplebar

Bootstrap 5 Admin Dashboard with Dark Mode - AdminKit

A free, open‑source Bootstrap 5 admin dashboard with dark mode, charts, tables and icons. Ideal for developers building internal tools.

By adminkit adminkit/adminkit 1,662 stars

Introduction

AdminKit is a free, open‑source admin dashboard template built with Bootstrap 5. It provides a ready‑made interface for developers who need a modern, responsive admin panel with dark‑mode support.

What this project offers

  • A collection of 20 ready HTML pages (dashboard, charts, tables, forms, authentication, etc.).
  • Dark mode that follows the user’s system preference.
  • Integration with Chart.js, Google Maps, and Lucide icons.
  • A responsive sidebar that collapses on small screens.
  • Ready‑to‑use UI components such as alerts, buttons, cards, modals, and typography.

Main features

  • Dark mode with auto detection.
  • Responsive sidebar.
  • Chart.js charts for analytics.
  • Google Maps page.
  • Sign‑in and sign‑up authentication pages.
  • Various UI components (alerts, buttons, cards, forms, modals, typography).
  • Bootstrap‑styled tables.
  • Sample pages for invoices, pricing, user profiles, and a “Upgrade to Pro” promotional page.
  • Icon library powered by Lucide.

Technology stack

  • Framework: Bootstrap 5
  • Build tool: Vite 8
  • Styling: Sass 1.107
  • Charts: Chart.js 4
  • Tooltips & popovers: @popperjs/core 2
  • Icons: Lucide 1
  • Other libraries: jsvectormap, simplebar, vanilla-calendar-pro, Handlebars (used for page templating)

Requirements

  • Node.js ≥ 24
  • npm (comes with Node.js)
  • A web browser for testing the built files

Installation

  1. Download the ZIP archive
/download/adminkit-bootstrap5-dashboard.zip
  1. Extract the archive
unzip adminkit-bootstrap5-dashboard.zip
cd adminkit
  1. Install the Node.js dependencies
npm install
  1. Build the production files (the build script runs Vite)
npm run build
  1. Locate the built output – Vite writes the compiled assets to the dist/ folder. Open dist/index.html in a browser to view the dashboard locally, or upload the entire dist/ directory to any static‑file web host.

Configuration

The project uses a Vite configuration file (vite.config.js) and a PostCSS configuration (postcss.config.mjs). Most settings are ready‑to‑use, but you can adjust:

  • Port for the development server – modify the dev script or pass --port <number> to vite.
  • Environment variables – create a .env file at the project root if you need to inject custom variables; Vite will expose them as import.meta.env.VAR_NAME.

Customizing the project

  • Styling – edit the SCSS files under src/scss/. The main entry point is src/scss/app.scss. After changes, run npm run build again to regenerate the CSS.
  • JavaScript – main scripts are in src/js/. Add or modify modules and rebuild.
  • Pages – HTML pages are Handlebars templates located in src/pages/. You can edit the raw HTML or the Handlebars partials in src/partials/.
  • Icons – the icon list is generated from src/data/icons-lucide.json. Use the provided npm script npm run icons:list to see available icons.

Project structure

src/
  data/                # JSON data used by templates
  helpers/             # Utility functions
  js/                  # JavaScript entry points
  layouts/             # Handlebars layout files
  pages/               # HTML pages (20 files)
  partials/            # Reusable Handlebars components
  scss/                # Sass source files
public/
  img/                 # Images, avatars, icons, screenshots
scripts/               # Build‑time helper scripts
vite.config.js
postcss.config.mjs
package.json
README.md
LICENSE

Tips

  • Run npm start (or npm run dev) to start a local development server with hot‑module replacement. The server opens automatically in your default browser.
  • Use npm run lint to check code quality and npm run format to automatically format files.
  • After editing SCSS or JavaScript, always rebuild with npm run build to update the files in dist/.
  • The built dist/ folder contains only static assets, so it can be served from any static‑file host (GitHub Pages, Netlify, Vercel, etc.).

License and attribution

The project is licensed under the MIT License. See the full license file at the repository: https://github.com/adminkit/adminkit/blob/main/LICENSE. When redistributing or using the template, keep the LICENSE file and give credit to the original authors as required by the MIT terms.