Skip to content
W3Frontend Free Frontend Code Snippets
Admin Dashboards Bootstrap 5 HTMLSCSSJavaScriptPug

SB Admin Bootstrap 5 Admin Dashboard Template

A free, responsive admin dashboard built with Bootstrap 5 for developers who need a ready‑made interface.

By StartBootstrap startbootstrap/startbootstrap-sb-admin 3,300 stars

Introduction

SB Admin is a free, responsive admin dashboard template built with Bootstrap 5. It provides a ready‑made interface for developers who need a starter admin panel. The project is open source and released under the MIT license.

What this project offers

  • A set of ready‑to‑use HTML pages for common admin tasks (dashboard, charts, tables, authentication, error pages).
  • A responsive layout that works on mobile and desktop browsers.
  • Integration with Bootstrap 5 components and Font Awesome icons.
  • Source files written in Pug, SCSS and JavaScript, allowing you to customize the design and behavior.

Main features

  • Dashboard overview page with navigation bar and side menu.
  • Charts page with data tables.
  • Tables page with sortable rows.
  • Login, register and password‑reset pages.
  • Error pages (401, 404, 500).
  • Side navigation with collapsible menus and a static navigation layout option.
  • Top navigation bar with user dropdown.
  • Built‑in Font Awesome icons.

Technology stack

  • HTML – final pages in the dist/ folder.
  • SCSS – compiled to dist/css/styles.css.
  • JavaScript – bundled into dist/js/scripts.js.
  • Pug – template language used in the src/pug/ source.
  • Node.js and npm – build tools.
  • Bootstrap 5.2.3 – UI framework.

Requirements

  • Node.js (any recent version).
  • npm (comes with Node.js).
  • A web browser to view the generated pages.

Installation

These steps assume you have downloaded the ZIP file sb-admin-bootstrap5.zip and extracted it to a folder on your computer.

  1. Open a terminal in the extracted folder.
cd path/to/sb-admin-bootstrap5
  1. Install the Node.js dependencies defined in package.json.
npm install
  1. Run the build script to compile Pug, SCSS, JavaScript and copy assets into the dist/ directory.
npm run build

The build process creates the following files in dist/:

  • index.html (dashboard entry point) and the other 10 HTML pages.
  • css/styles.css (compiled stylesheet).
  • js/scripts.js and other JS files.
  • assets/ containing images and demo assets.
  1. Open the dashboard in a browser.
# On macOS or Linux
open dist/index.html

# On Windows
start dist\\index.html

You can also serve the dist/ folder with any static web server if you prefer.

Configuration

The project does not require additional configuration to run. If you need to change the build behavior, edit the scripts in the scripts/ folder or modify the package.json scripts. The source files are located in src/:

  • src/pug/ – Pug templates for pages and layouts.
  • src/scss/ – SCSS files (styles.scss imports variables, layout, navigation, plugins).
  • src/js/ – JavaScript source files.

Customizing the project

  • HTML: Edit the generated files in dist/ for quick tweaks.
  • Pug: Modify files under src/pug/ and re‑run npm run build to regenerate the HTML.
  • SCSS: Change variables in src/scss/_variables.scss or add new styles in src/scss/. Re‑run the build to update dist/css/styles.css.
  • JavaScript: Add or edit scripts in src/js/. After changes, run the build again.

Project structure

LICENSE
README.md
package.json
package-lock.json
dist/
  401.html
  404.html
  500.html
  charts.html
  css/
    styles.css
  index.html
  js/
    datatables-simple-demo.js
    scripts.js
  layout-sidenav-light.html
  layout-static.html
  login.html
  password.html
  register.html
  tables.html
src/
  assets/
    demo/
    img/
  js/
    datatables-simple-demo.js
    scripts.js
  pug/
    layouts/
    pages/
  scss/
    _global.scss
    _variables.scss
    layout/
    navigation/
    plugins/
    styles.scss
scripts/
  build-assets.js
  build-pug.js
  build-scripts.js
  build-scss.js
  clean.js
  start.js
  start-debug.js

Tips

  • Use npm start to build the project and launch a live preview with BrowserSync. The command watches source files and reloads the browser on changes.
  • For debugging, run npm run start:debug to start the server without live‑reload.
  • Keep the dist/ folder under version control only if you want to distribute the pre‑built files; otherwise, commit the source (src/) and let each developer build locally.

License and attribution

The project is licensed under the MIT License. See the full license file at https://github.com/startbootstrap/startbootstrap-sb-admin/blob/master/LICENSE. When redistributing or using the template, keep the LICENSE file and credit the original author as required by the MIT terms.