Vali Admin Bootstrap 5 Dashboard Template
A free, modular admin dashboard built with Bootstrap 5, SASS and Pug.js for developers who need a customizable UI.
By pratikborsadiya pratikborsadiya/vali-admin 1,548 stars
Introduction
Vali Admin is a free, modular admin dashboard template built with Bootstrap 5, SASS, and Pug.js. It provides a responsive, dark‑mode‑ready UI that can be customized for a variety of admin interfaces. The project is open source and distributed under the MIT license.
What this project offers
- A ready‑to‑use set of 17 HTML pages covering common admin screens such as dashboard, login, user profile, invoice, and data tables.
- Pre‑compiled CSS and JavaScript assets in the
docs/folder for quick testing. - Source files in
src/(Pug templates and SASS) that can be rebuilt to suit your design needs. - Integration with Chart.js, DataTables, and jQuery for interactive charts and tables.
- Built‑in dark mode, RTL support, and full responsiveness.
Main features
- Responsive layout that works on desktop, tablet, and mobile devices.
- Dark‑mode support toggled via CSS.
- Right‑to‑left (RTL) layout option.
- Chart.js integration for responsive charts.
- Data tables with sorting, searching, and pagination.
- Seven pre‑built pages (login, user profile, invoice, etc.).
- Reusable UI components and cards.
- Form components and sample forms.
- A page that lists all Bootstrap 5 components.
- A landing page with demo links.
Technology stack
- Bootstrap 5 (core UI framework)
- SASS (stylesheets)
- Pug.js (HTML templating)
- Grunt (task runner)
- Chart.js (charts)
- DataTables (tables)
- jQuery (DOM utilities)
Requirements
- Node.js (any recent version)
- npm (comes with Node.js)
- A modern web browser for viewing the generated pages
Installation
Follow these steps after downloading the ZIP file (/download/vali-admin.zip).
- Extract the archive
unzip vali-admin.zip -d vali-admin
cd vali-admin
- Install Node.js dependencies
npm install
- Build the project (this compiles the Pug templates and SASS files into the
docs/folder)
npm run build
The build script runs grunt build --verbose. After it finishes, the compiled HTML files are in docs/ and the generated CSS files are in docs/css/.
- Open the dashboard locally
# On macOS or Linux
open docs/index.html
# On Windows
start docs\\index.html
You can also start the development server (useful while editing source files) with:
npm run start
The server runs node node-dev-server.js and serves the docs/ directory.
- Deploy to a web host
Upload the entire
docs/folder to your web server’s document root (e.g., via FTP or a static‑site host). No additional server‑side processing is required because the project is purely static HTML, CSS, and JavaScript.
Configuration
- Dark mode – The CSS includes a dark‑mode variant. Toggle it by adding the
dark-modeclass to the<body>element or by using the provided UI switch in the demo pages. - RTL support – To enable right‑to‑left layout, add the
rtlclass to the<html>element. - Custom colors – Edit the SASS variables in
src/sass/(e.g.,1-tools/_variables.scss) and rebuild withnpm run build.
All configuration is done through the source files in src/; the compiled output is placed in docs/.
Customizing the project
- Edit Pug templates – Files are located under
src/pug/. Modify the markup as needed and runnpm run buildto regenerate HTML. - Change styles – Update SASS files in
src/sass/. The main entry point issrc/sass/main.scss. After editing, run the build command again. - Add new pages – Create a new
.pugfile insrc/pug/, reference it in the navigation if required, and rebuild.
The Grunt watch task (npm run dev) can be used during development to automatically recompile on file changes.
Project structure
.
├─ docs/ # Compiled HTML, CSS, JS (ready to serve)
│ ├─ css/
│ │ ├─ main.css
│ │ └─ main.min.css
│ ├─ js/
│ │ ├─ bootstrap.min.js
│ │ ├─ jquery-3.7.0.min.js
│ │ └─ main.js
│ ├─ images/
│ └─ *.html # 17 pre‑built pages
├─ src/ # Source files
│ ├─ pug/ # Pug templates
│ └─ sass/ # SASS source
├─ Gruntfile.js # Grunt configuration
├─ package.json
└─ node-dev-server.js # Simple dev server
Tips
- Use
npm run devwhile editing source files; Grunt will watch for changes and automatically rebuild the affected assets. - The
docs/css/main.min.cssfile is the minified production CSS; reference it in production for better performance. - Keep the
LICENSEfile in your distribution to comply with the MIT license. - When deploying, serve the
docs/folder over HTTPS to avoid mixed‑content warnings for external resources.
License and attribution
The project is licensed under the MIT License. See the full license text in the LICENSE file of the repository.
Original repository: https://github.com/pratikborsadiya/vali-admin
When redistributing, keep the LICENSE file and retain credit to the original author, Pratik Borsadiya, as required by the MIT license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add Vali Admin Bootstrap 5 Dashboard Template 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 Vali Admin Bootstrap 5 Dashboard Template **Role** You are a senior frontend developer assisting me to add the Vali Admin Bootstrap 5 Dashboard Template into my existing web application. **Project description** Vali Admin is a free, modular admin dashboard built with Bootstrap 5, SASS, and Pug.js. It provides a responsive layout, dark‑mode and RTL support, Chart.js charts, DataTables, and a set of pre‑built pages such as login, user profile, invoice, and various UI component demos. **Source project** - Repository: https://github.com/pratikborsadiya/vali-admin - License: MIT - Framework: Bootstrap 5 (dependency `"bootstrap": "^5.3.2"` in `package.json`) - Build tooling: Grunt (`Gruntfile.js`), Sass (`sass`), Pug (`grunt-contrib-pug`) - Runtime assets located in `docs/`: - CSS: `docs/css/main.css`, `docs/css/main.min.css` - JS: `docs/js/bootstrap.min.js`, `docs/js/jquery-3.7.0.min.js`, `docs/js/main.js`, plus any files in `docs/js/plugins/` - Images: `docs/images/banner.jpg` - HTML pages (pre‑built demos) in `docs/`: - `index.html`, `dashboard.html`, `page-login.html`, `page-user.html`, `page-invoice.html`, `page-error.html`, `page-lockscreen.html`, `page-mailbox.html`, `page-profile.html` (named `page-user.html`), `form-components.html`, `form-samples.html`, `bootstrap-components.html`, `table-basic.html`, `table-data-table.html`, `ui-cards.html`, `widgets.html`, `blank-page.html`, `docs.html` **Target project context** - My stack: `[describe your stack, e.g., Laravel 11 + Blade]` - UI insertion point: `[where the admin UI should appear, e.g., inside a <div id="admin-root"></div> in the main layout]` - Existing CSS framework: `[e.g., Tailwind CSS, Bootstrap 4, none]` **Integration objectives** - Bring over the overall layout (sidebar, top navigation, footer) - Import reusable UI components (cards, tables, forms, charts) - Add the pre‑built pages that match my application’s needs (login, user profile, invoice, dashboard) - Preserve my existing authentication, routing, and data layers while using Vali’s visual style. **Required components** - Sidebar and top navigation markup from `docs/dashboard.html` - Header/footer sections from the same file - UI component examples from `docs/bootstrap-components.html`, `docs/form-components.html`, `docs/table-data-table.html`, `docs/ui-cards.html` - Page templates: `page-login.html`, `page-user.html`, `page-invoice.html`, `dashboard.html` (adapt as needed) - Chart.js integration (scripts are already included in `docs/js/main.js`) - DataTables integration (scripts are in `docs/js/main.js` and CSS in `docs/css/main.css`). **Layout and styling requirements** - Keep all Vali CSS scoped to a wrapper element (e.g., `<div class="vali-admin">`) to avoid clashes with my existing styles. - If my project already uses Bootstrap 5, do not load the Vali `bootstrap.min.js` or `main.css` twice; instead import only the custom Vali styles (`main.css`) after my own stylesheet. - For projects using a different framework, load the full Vali CSS and JS as isolated assets. - Preserve dark‑mode and RTL classes (`dark-mode`, `rtl`) as defined in Vali’s CSS. **Asset management** 1. Copy the compiled CSS files from `docs/css/` (`main.css`, `main.min.css`) into my project’s stylesheet directory (e.g., `public/css/vali/`). 2. Copy the JS files from `docs/js/` (`bootstrap.min.js`, `jquery-3.7.0.min.js`, `main.js`, and any plugin files) into my project’s script directory (e.g., `public/js/vali/`). 3. Copy images from `docs/images/` as needed. 4. If my build system already bundles Bootstrap and jQuery, reference only `main.js` and `main.css` to avoid duplicate libraries. 5. Optionally, serve the assets from a CDN by pointing to the same paths (`/css/vali/main.css`, `/js/vali/main.js`). **Routing and navigation** - Map each Vali HTML page to an existing route in my application (e.g., `/admin/dashboard` → `docs/dashboard.html`). - Keep the original URLs if possible; otherwise create server‑side routes that render the copied HTML or Blade/templating equivalents. - Ensure the sidebar links use my router’s URL generation helpers instead of hard‑coded `*.html` paths. **Responsive requirements** - Vali is built with responsive meta tags and Bootstrap’s grid system; ensure the `` tag remains in the final layout. - Test on common breakpoints (mobile ≤ 576 px, tablet ≤ 768 px, desktop) after integration. **Accessibility requirements** - Preserve Vali’s ARIA attributes and semantic HTML. - Verify that all interactive elements (menus, buttons, form controls) have accessible labels. - Test keyboard navigation and screen‑reader reading order. **Compatibility requirements** - Uses Bootstrap 5.3.2 and requires the compiled assets from the `docs/` folder. - Build step is required only if I need to modify source SCSS or Pug files; otherwise I can work with the pre‑built files. - Ensure my environment includes Node.js and npm if I decide to run `npm run build` for custom changes. **Preserve the existing application** - First, inspect the current codebase before editing any file. - Do not replace or rewrite my authentication, routing, state management, or data‑access layers. - Make small, isolated changes (e.g., add a new Blade layout that extends my base layout and includes Vali’s markup). - Ask for confirmation before deleting or moving any existing files. **Testing and verification checklist** - [ ] Verify that the Vali CSS loads without overriding my global styles. - [ ] Confirm that the sidebar and top navigation appear correctly and are functional. - [ ] Test each imported page (dashboard, login, user profile, invoice) in the target routes. - [ ] Check that Chart.js charts render and are responsive. - [ ] Verify DataTables sorting, searching, and pagination work. - [ ] Ensure dark‑mode and RTL toggles (if used) apply correctly. - [ ] Run the application on mobile, tablet, and desktop viewports. - [ ] Perform keyboard navigation through the admin UI. - [ ] Run an accessibility audit (e.g., axe) and fix any violations. - [ ] Confirm that no duplicate copies of Bootstrap or jQuery are loaded. - [ ] Run the existing unit/integration tests to ensure nothing else broke.