Bootstrap 5 Admin Dashboard with Charts and Auth Pages - Sneat
A Bootstrap 5 admin dashboard template with charts, auth pages and many UI components, suitable for developers.
By themeselection themeselection/sneat-bootstrap-html-admin-template-free 1,242 stars
Introduction
Sneat is a free Bootstrap 5 HTML admin dashboard template. It provides a collection of ready‑made pages such as dashboards, authentication screens, UI components, and form layouts. The template is built with modern tools (Node.js, Gulp, Webpack) and is suitable for developers who want a responsive admin interface that can be customized and extended.
What this project offers
- A set of static HTML pages (45 in total) that demonstrate common admin UI patterns.
- Ready‑made charts powered by ApexCharts.
- Authentication pages (login, register, forgot password).
- Various UI components: tables, forms, modals, alerts, pagination, etc.
- Extended UI features like Perfect Scrollbar and Masonry layout.
- Responsive design that works on desktop, tablet, and mobile browsers.
Main features
- Charts – ApexCharts integration for interactive data visualisation.
- Auth Pages – Pre‑styled login, register and password‑reset screens.
- Perfect Scrollbar – Custom scrollbars for better UX.
- Masonry Layout – Grid layout for cards and widgets.
- Highlight.js – Syntax highlighting for code snippets.
- Responsive Design – Works on all screen sizes.
- Multiple Layouts – Fluid, container, blank, with/without menu or navbar.
- Form Elements – Basic inputs, input groups, vertical and horizontal forms.
- Tables – Styled tables with pagination and sorting support.
- UI Components – Buttons, alerts, badges, dropdowns, modals, tooltips, etc.
Technology stack
- Bootstrap 5 (core CSS framework)
- jQuery (DOM manipulation)
- ApexCharts (charts)
- Highlight.js (code highlighting)
- Masonry‑layout (grid layout)
- Perfect‑scrollbar (custom scrollbars)
- Iconify (icon library)
- Gulp 4 (task runner)
- Webpack 5 (module bundler)
- Sass (SCSS source files)
Requirements
- Node.js (LTS)
- npm (or Yarn)
- Gulp CLI (
npm install -g gulp-cli)
Installation
- Download the source – obtain the ZIP file from the repository:
/download/sneat-admin-dashboard.zipand extract it to a folder of your choice. - Open a terminal and navigate to the extracted folder:
cd path/to/sneat-admin-dashboard
- Install project dependencies (the
package.jsonlists all required packages):
npm install --legacy-peer-deps
- Run the build – this compiles SCSS, bundles JavaScript and copies assets to the
distfolder (the exact output folder is defined in the Gulp configuration, typicallydist/):
npm run build
- Preview the built dashboard – start a local development server that serves the built files:
npm run serve
Open http://localhost:3000/ in your browser to see the dashboard.
Alternative production build (minified assets):
npm run build:prod
If you prefer to watch files while developing, run:
npm run watch
Configuration
- Gulp tasks are defined in
gulpfile.js. - Webpack configuration resides in
webpack.config.js. - SCSS variables can be customised in
scss/_custom-variables/_variables.scss. - JavaScript entry points are located in
assets/js/andjs/. - To change the build output directory, edit the
build-config.jsfile.
Customizing the project
- Styling – modify SCSS files under
scss/and runnpm run buildto regenerate CSS. - Icons – add or replace icons using the Iconify JSON files in
fonts/iconify/. - Charts – update chart options in the files under
assets/js/(e.g.,dashboards-analytics.js). - Layout – choose a different HTML layout from the
html/folder (e.g.,layouts-fluid.html).
Project structure
.
├─ assets/
│ ├─ css/
│ ├─ img/
│ └─ js/
├─ html/ # source HTML pages
├─ scss/ # source SCSS files
├─ js/ # additional JS helpers
├─ libs/ # third‑party libraries
├─ gulpfile.js
├─ webpack.config.js
├─ package.json
└─ index.html # entry point for the demo
Tips
- Run
npm run serveduring development; it uses BrowserSync to reload the browser automatically when files change. - Use
npm run format:scssto automatically fix SCSS style issues. - For a production‑ready bundle, always use the
build:prodscripts to enable minification and cache‑busting.
License and attribution
Sneat is released under the MIT License. See the LICENSE file in the repository. When using the template, keep the license file and give credit to the original author. The source repository is: https://github.com/themeselection/sneat-bootstrap-html-admin-template-free.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add Sneat 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 Sneat **Role** You are a senior frontend developer assisting me in adding the Sneat admin template to my existing web application. **Project description** Sneat is a free Bootstrap 5 HTML admin dashboard template. It includes a variety of ready‑made pages (auth, error, maintenance, account settings, UI components, tables, charts, etc.), multiple layout options, responsive design, and UI features such as ApexCharts, Perfect Scrollbar, Masonry layout, Highlight.js, and jQuery. **Source project** - Repository: https://github.com/themeselection/sneat-bootstrap-html-admin-template-free - License: MIT - Framework: Bootstrap 5 (version 5.3.3) - Build tooling: Gulp (via `gulpfile.js`) and Webpack (via `webpack.config.js`) - Main dependencies (from `package.json`): - `bootstrap` ~5.3.3 - `@popperjs/core` ^2.11.8 - `jquery` ~3.7.1 - `apexcharts` ~4.2.0 - `highlight.js` ~11.10.0 - `perfect-scrollbar` ~1.5.6 - `masonry-layout` ~4.2.2 - `@iconify/*` packages for icons **Target project context** - Stack: `[describe your stack, e.g. Laravel 11 + Blade]` - UI insertion point: `[where the UI should go, e.g. inside a <div id="app">]` - Existing CSS framework (if any): `[e.g. Tailwind, Bulma, none]` **Integration objectives** - Bring over the overall layout (header, sidebar, footer) and navigation structure. - Import selected UI components (cards, tables, forms, charts) that I will use. - Reuse the auth pages (login, register, forgot password) if they fit my flow. - Keep the responsive behavior and accessibility features of Sneat. **Required components** - Layout files: `html/layouts-*.html` (container, fluid, blank, without‑menu, without‑navbar). - Navigation: `html/ui-navbar.html`, `html/ui-offcanvas.html`, `html/ui-footer.html`. - Auth pages: `html/auth-login-basic.html`, `html/auth-register-basic.html`, `html/auth-forgot-password-basic.html`. - UI component examples: `html/cards-basic.html`, `html/forms-basic-inputs.html`, `html/tables-basic.html`, `html/ui-buttons.html`, `html/ui-modals.html`, `html/ui-toasts.html`. - Chart page: `html/dashboard.html` (if present) or the scripts under `assets/js/apex-charts/`. - Extended UI: `html/extended-ui-perfect-scrollbar.html`, `html/extended-ui-text-divider.html`. **Layout and styling requirements** - Ensure Bootstrap CSS from Sneat does not conflict with any existing framework. If another framework is present, wrap Sneat’s CSS in a scoped container (e.g., `<div class="sneat-root">`) and adjust selectors or use a CSS prefix. - Import Sneat’s compiled CSS (`assets/css/demo.css` after build) after any existing styles so that overrides work as intended. - Keep the custom SCSS variables (`scss/_custom-variables/`) if I need to adjust colors or spacing to match my design system. **Asset management** - CSS: copy the built `assets/css/demo.css` (or the compiled CSS from the `build` folder) into my project’s stylesheet directory, or reference it via CDN if preferred. - JS: copy `assets/js/main.js` and any component scripts (`assets/js/*.js`) that are required for the pages I use. Do not duplicate libraries that already exist in my project (e.g., jQuery, Bootstrap). - Fonts & icons: copy `assets/vendor/fonts/` and `fonts/iconify/` or load them from the original CDN paths. - Images: copy needed images from `assets/img/` (avatars, backgrounds, illustrations) into my public assets folder. - Use the Gulp `build:copy` task to gather only the necessary assets, then move them manually if I am not using Gulp. **Routing and navigation** - Map each Sneat HTML page to an existing route in my application (e.g., `/admin/login` → `auth-login-basic.html`). - Preserve my current URL structure; create server‑side routes or client‑side router entries that render the Sneat markup inside the designated UI container. - Update navigation links in `ui-navbar.html` to point to my route names. **Responsive requirements** - Keep the responsive meta tag (``) present. - Verify that the grid classes (`col-`, `row`, `container-fluid`) work with my layout and adjust breakpoints if necessary. **Accessibility requirements** - Retain ARIA attributes and keyboard navigation present in Sneat components (modals, dropdowns, off‑canvas). - Ensure color contrast meets WCAG AA; adjust custom variables if my brand colors differ. **Compatibility requirements** - Use Bootstrap 5.3.3 and the matching versions of Popper, jQuery, ApexCharts, etc., as listed in `package.json`. - Run `npm install` and then `npm run build` to generate the compiled assets before copying them. - If my project already uses a bundler (Webpack, Vite, etc.), import the compiled CSS/JS modules instead of running the full Gulp pipeline. **Preserve the existing application** - First, inspect the current codebase to understand its structure, routing, authentication, and state management. - Do not replace any existing authentication, routing, or data‑handling code. - Make only small, isolated changes (add new files, update layout templates, import CSS/JS). - Ask for confirmation before deleting or overwriting any existing files. **Testing and verification checklist** - [ ] Run the existing application locally and confirm it still builds without errors. - [ ] Verify that the Sneat CSS loads and the layout appears as expected inside the target container. - [ ] Check that navigation links route to the correct pages without breaking existing routes. - [ ] Test all imported components (tables, forms, charts, modals, toasts) for functionality. - [ ] Confirm responsive behavior on mobile, tablet, and desktop viewports. - [ ] Run an accessibility audit (e.g., Lighthouse) to ensure ARIA roles and contrast are intact. - [ ] Ensure no duplicate copies of Bootstrap, jQuery, or Popper are loaded (check network tab). - [ ] Validate that existing unit/integration tests still pass after integration. - [ ] Review the final diff to confirm only intended files were added or modified.