Skip to content
W3Frontend Free Frontend Code Snippets
Admin Dashboards Bootstrap SassPostCSSChart.jsCoreUI

CoreUI Free Bootstrap Admin Template

A free open‑source Bootstrap admin dashboard template with many UI components, suitable for building web applications.

By coreui coreui/coreui-free-bootstrap-admin-template 12,275 stars

Introduction

CoreUI Free Bootstrap Admin Template is an open‑source admin dashboard built on Bootstrap 5. It provides a collection of ready‑made pages, UI components, and utilities that help developers create responsive, dark‑mode‑compatible admin interfaces quickly.

What this project offers

  • A set of 48 ready HTML pages (authentication, error pages, charts, components, forms, icons, widgets, etc.).
  • SCSS source files and a build pipeline that compiles them to CSS.
  • JavaScript modules for charts, tooltips, popovers, toasts, widgets and more.
  • Integration with CoreUI’s component library, Chart.js, and SimpleBar.
  • Dark‑mode support and responsive layout out of the box.

Main features

  • Authentication pages (login, register, password reset, etc.).
  • Over 30 UI components such as accordions, alerts, badges, carousels, modals, tables, toasts, tooltips, and pagination.
  • Form styles including floating labels, validation, input groups and range controls.
  • Chart page powered by Chart.js.
  • Error pages (404, 500) and a widgets page.
  • Dark‑mode toggle.
  • Responsive design for desktop, tablet and mobile devices.
  • Icon set from CoreUI Icons.

Technology stack

  • Bootstrap 5 – core CSS framework.
  • Sass – used to write SCSS source files (src/scss/).
  • PostCSS – processes compiled CSS (autoprefixing, selector optimisation).
  • Pug – template engine for HTML views (src/pug/).
  • Chart.js – renders charts on the charts page.
  • CoreUI – UI component library (@coreui/coreui).
  • Node.js and npm – build tooling.

Requirements

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

Installation

  1. Download and extract the ZIP file.
# Assuming the ZIP is at /download/coreui-bootstrap-admin.zip
unzip /download/coreui-bootstrap-admin.zip -d coreui-admin
cd coreui-admin
  1. Install project dependencies.
npm install
  1. Build the project. This runs the full build pipeline (npm run build) which:
    • Cleans the dist folder.
    • Compiles SCSS to CSS, adds vendor prefixes and creates minified files.
    • Copies JavaScript files.
    • Copies assets and HTML views.
npm run build
  1. Serve the built files locally (optional, for testing).
npm run serve

The command starts a static server that serves the dist directory. Open http://localhost:5000 (default port) in a browser.

  1. Deploy – after the build finishes, the ready‑to‑publish files are in the dist folder. Upload the entire dist directory to any static‑file host (GitHub Pages, Netlify, Vercel, shared hosting, etc.) or copy it to your web server’s document root.

Configuration

The template uses the following configuration files:

  • package.json – defines npm scripts, dependencies and devDependencies.
  • build/postcss.config.mjs – PostCSS plugins (autoprefixer, selector optimisation).
  • src/scss/style.scss – main SCSS entry point; you can edit variables or import additional styles here.
  • src/js/*.js – JavaScript modules; you can modify or extend functionality.
  • src/pug/ – Pug templates that generate the HTML pages. Changing a Pug file requires rebuilding (npm run build-pug).

Environment variables are not required for the default build.

Customizing the project

  • Styling: Edit SCSS files in src/scss/. After changes run npm run build to regenerate CSS in dist/css/.
  • Templates: Modify Pug files under src/pug/ or edit the generated HTML in src/views/. Re‑run the appropriate build script (npm run build or npm run build-pug).
  • JavaScript: Add or change code in src/js/. The js-sync script copies the files to dist/js/ during the build.
  • Assets: Place images, fonts, or other static files in src/assets/. They are copied to dist/assets/ by the sync-assets script.

Project structure

.
├─ build/                 # Build scripts and PostCSS config
├─ src/
│  ├─ assets/             # Images, icons, favicons
│  ├─ js/                 # JavaScript source files
│  ├─ pug/                # Pug templates
│  ├─ scss/               # SCSS source files
│  └─ views/              # Plain HTML pages (generated output)
├─ dist/                  # Output of the build (ready for deployment)
├─ package.json
└─ README.md

Tips

  • Use npm run localhost to start BrowserSync, which reloads the browser automatically when files in dist/ change.
  • For faster iteration on SCSS, run only the CSS part: npm run css.
  • Linting is available via npm run css-lint and npm run js-lint; fix issues before committing.
  • The build-pug script builds HTML directly from Pug templates, useful if you prefer to work with Pug rather than the pre‑generated HTML files.

License and attribution

The project is licensed under the MIT License. See the full license file at LICENSE.

Original repository: https://github.com/coreui/coreui-free-bootstrap-admin-template

When redistributing, keep the LICENSE file and retain the copyright notice.