Skip to content
W3Frontend Free Frontend Code Snippets
Admin Dashboards Bootstrap 5 SASSPug.jsGruntChart.js

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).

  1. Extract the archive
unzip vali-admin.zip -d vali-admin
cd vali-admin
  1. Install Node.js dependencies
npm install
  1. 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/.

  1. 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.

  1. 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-mode class 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 rtl class to the <html> element.
  • Custom colors – Edit the SASS variables in src/sass/ (e.g., 1-tools/_variables.scss) and rebuild with npm run build.

All configuration is done through the source files in src/; the compiled output is placed in docs/.

Customizing the project

  1. Edit Pug templates – Files are located under src/pug/. Modify the markup as needed and run npm run build to regenerate HTML.
  2. Change styles – Update SASS files in src/sass/. The main entry point is src/sass/main.scss. After editing, run the build command again.
  3. Add new pages – Create a new .pug file in src/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 dev while editing source files; Grunt will watch for changes and automatically rebuild the affected assets.
  • The docs/css/main.min.css file is the minified production CSS; reference it in production for better performance.
  • Keep the LICENSE file 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.