Skip to content
W3Frontend Free Frontend Code Snippets
Admin Dashboards Vue 3ViteSassPostCSS

Vue 3 Admin Dashboard with Charts and Dark Mode - CoreUI

A Vue 3 admin dashboard template built with CoreUI components, suitable for developers needing a ready‑made UI with charts and dark mode.

By coreui coreui/coreui-free-vue-admin-template 3,407 stars

Introduction

CoreUI Free Vue Admin Template is a free, open‑source admin dashboard built with Vue 3 and CoreUI components. It provides a responsive layout, dark‑mode support, and a set of ready‑made pages such as charts, widgets, authentication, and error pages. The project is licensed under the MIT License.

What this project offers

  • A complete admin interface ready for customization.
  • Ready‑made UI components (header, footer, sidebar, breadcrumbs, etc.).
  • Integration with Pinia for state management and Vue Router for navigation.
  • Chart.js based visualizations and a collection of reusable widgets.
  • Dark‑mode toggle and responsive design that works on desktop and mobile devices.

Main features

  • Responsive layout that adapts to any screen size.
  • Dark mode support out of the box.
  • Sidebar navigation with configurable menu items.
  • Header with user dropdown and notification area.
  • Footer component.
  • Charts powered by Chart.js.
  • Various widgets and card components.
  • Authentication pages (login, register, etc.).
  • Error pages (404, 500, etc.).
  • Form components for data entry.

Technology stack

  • Vue 3
  • Vite (build tool)
  • CoreUI component library
  • Pinia (state management)
  • Vue Router
  • Chart.js
  • Sass / PostCSS for styling
  • Popper.js for dropdown positioning

Requirements

  • Node.js (any recent LTS version)
  • npm or Yarn package manager

Installation

Follow these steps after downloading the ZIP file /download/coreui-vue-admin.zip.

  1. Extract the archive
unzip coreui-vue-admin.zip -d coreui-vue-admin
cd coreui-vue-admin
  1. Install dependencies
npm install

or, if you prefer Yarn

yarn install
  1. Run the development server (optional, to see changes live)
npm run dev

The app will be served at http://localhost:3000.

  1. Build the production files
npm run build

The build script vite build creates a dist/ directory containing the compiled HTML, JavaScript, and CSS files.

  1. Preview the built version (optional)
npm run preview

This starts a local server that serves the contents of dist/.

Configuration

  • Vite configuration is located in vite.config.mjs.
  • Environment variables can be added to a .env file; Vite will expose variables prefixed with VITE_.
  • Theme settings (light/dark) are managed in src/stores/theme.js.
  • Sidebar navigation is defined in src/_nav.js.
  • Routing is configured in src/router/index.js.

Adjust these files to match your project requirements.

Customizing the project

  • Styling: edit the SCSS files in src/styles/ (style.scss, examples.scss, and files under vendors/).
  • Components: add or modify Vue components in src/components/.
  • Views: create new pages under src/views/ and register routes in src/router/index.js.
  • State: extend Pinia stores in src/stores/.

All changes are automatically reflected when running the development server.

Project structure

coreui-free-vue-admin-template/
├─ public/               # static assets (icons, manifest, favicons)
├─ src/
│  ├─ assets/            # images, icons, etc.
│  ├─ components/        # UI components (header, footer, sidebar, etc.)
│  ├─ layouts/           # layout containers
│  ├─ styles/            # SCSS files
│  ├─ router/            # Vue Router configuration
│  ├─ stores/            # Pinia stores
│  ├─ views/             # page components (dashboard, charts, auth, etc.)
│  ├─ App.vue
│  ├─ main.js
│  └─ _nav.js            # sidebar navigation definition
├─ index.html            # HTML template
├─ package.json
├─ vite.config.mjs
└─ README.md

Tips

  • Use npm run dev while developing; Vite provides hot‑module replacement for instant feedback.
  • After building, the dist/ folder can be deployed to any static‑file host (Netlify, Vercel, GitHub Pages, etc.).
  • The src/styles/style.scss file imports CoreUI’s base styles; you can add custom variables before the import to override defaults.
  • Pinia stores (sidebar.js, theme.js) are good places to keep UI state such as the collapsed sidebar or current theme.

License and attribution

The project is released under the MIT License. See the full license file at https://github.com/coreui/coreui-free-vue-admin-template/blob/main/LICENSE. When redistributing or modifying the template, keep the LICENSE file and retain the original copyright notice. Credit the original author as required by the license.