Vue 3 Admin Dashboard with Charts and Dark Theme - Vuestic Admin
A Vue 3 admin dashboard built with Tailwind CSS, Vite, Pinia and Vuestic UI. Ideal for developers needing a fast, responsive, and customizable admin interface.
By epicmaxco epicmaxco/vuestic-admin 10,956 stars
Introduction
Vuestic Admin is an open‑source admin dashboard built with Vue 3, Vite, Pinia and Tailwind CSS. It provides a responsive layout, chart components, i18n support and a dark‑theme option (although the current build does not enable dark mode by default). The project is licensed under the MIT license.
What this project offers
- A ready‑made admin interface with pages for authentication, billing, projects, settings and more.
- Integration of Chart.js (including geo charts) for visualising data.
- State management with Pinia and routing with Vue‑Router.
- Internationalisation via vue‑i18n.
- Accessibility features and responsive design that works on desktop and mobile browsers.
Main features
- Charts – Chart.js and chartjs‑chart‑geo components.
- i18n support – localisation files in
src/i18n. - Pinia state management – stores located in
src/stores. - Responsive layout – Tailwind CSS utilities and custom SCSS.
- Service worker registration – enables offline capability.
- Storybook integration – develop UI components in isolation (
npm run storybook).
Technology stack
- Vue 3 (v3.3.9)
- Vite (v4.4.6)
- Tailwind CSS (v3.4.0)
- TypeScript (v5.2.2)
- Pinia, Vue‑Router, Vue‑I18n
- Chart.js (v4.4.1) and chartjs‑chart‑geo
- Vuestic UI component library
- Sass for custom styles
Requirements
- Node.js 18 or newer
- npm (or Yarn)
Installation
Assuming you have downloaded the source archive vuestic-admin.zip and extracted it to a folder, follow these steps:
- Open a terminal in the project folder
cd path/to/vuestic-admin
- Install dependencies
npm install
(If you prefer Yarn, run yarn instead.)
- Run the development server (optional, for local testing)
npm run dev
The command starts Vite and serves the app at http://localhost:5173.
- Build the production bundle
npm run build
This script runs linting, type‑checking and then executes vite build.
The compiled files are placed in the dist/ directory.
- Preview the built version (optional)
npm run preview
Vite serves the contents of dist/ locally so you can verify the production build.
- Deploy
- Upload the entire
dist/folder to any static‑file host (e.g., Netlify, Vercel, GitHub Pages). - If you need a simple local test, you can serve the folder with the
servepackage that is already a dev dependency:
- Upload the entire
npx serve -s dist
Configuration
Configuration is mainly done through the files in src/:
- Tailwind –
tailwind.config.jsdefines the content paths and theme extensions. - Vite –
vite.config.tssets up plugins such as Vue and the i18n loader. - SCSS – Global styles are in
src/scss/main.scssand can be edited to change colours, fonts, etc. - Environment variables – you can add a
.envfile; Vite will expose variables prefixed withVITE_to the code.
Customizing the project
- Add new pages – create a Vue component in
src/pages/and register a route insrc/router/index.ts. - Extend the UI – Vuestic UI components are imported from
vuestic-ui. Consult the Vuestic UI documentation for component props and theming. - Modify the theme – edit the CSS variables in
src/scss/vuestic-sass/or adjust Tailwind’sextend.colorssection. - Change language files – edit JSON files under
src/i18n/locales/and updatesrc/i18n/index.tsif needed.
Project structure
.
├─ public/ # static assets (icons, manifest, images)
├─ src/
│ ├─ App.vue
│ ├─ main.ts
│ ├─ components/ # reusable UI components
│ ├─ layouts/ # layout wrappers (AppLayout, AuthLayout)
│ ├─ pages/ # view components for each route
│ ├─ router/ # Vue‑Router configuration
│ ├─ stores/ # Pinia stores
│ ├─ i18n/ # localisation files
│ ├─ scss/ # custom Sass styles
│ └─ data/ # sample data (charts, users, etc.)
├─ index.html
├─ package.json
├─ tailwind.config.js
├─ vite.config.ts
└─ tsconfig.json
Tips
- Run
npm run lintbefore committing to keep code style consistent. - Use
npm run storybookto develop components in isolation; the built storybook can be found instorybook-static/afternpm run build-storybook. - The
serve -s ./distscript (npm run start:ci) is useful for quick production checks on CI pipelines.
License and attribution
Vuestic Admin is released under the MIT License. See the full license file in the repository: https://github.com/epicmaxco/vuestic-admin/blob/master/LICENSE
When redistributing or modifying the project, keep the LICENSE file and give credit to the original author (Epicmax) as required by the MIT terms. The original repository is https://github.com/epicmaxco/vuestic-admin.
Use this prompt with an AI coding assistant (Claude Code, Cursor, Copilot, ChatGPT and similar).
- Download the ZIP and extract it where your new project will live.
- Download the ZIP and extract it next to your project, so the assistant can read both.
- Fill in the bracketed parts under “About my project”.
- Paste the prompt into your assistant and review each change it proposes.
# Start a new project with Vuestic Admin ## Your task You are a senior frontend engineer. We are building a new project using Vuestic Admin, an admin dashboard built with Tailwind CSS 3, as the starting point. Keep its design and turn the demo into a clean, real codebase that I can maintain. ## About my project - What I'm building and for whom: [describe it] - Pages I need: [list them] - Stack: [keep it as it is, with its own build, or name one: Vite / Laravel / Next.js / Astro] - Brand: [name, colours, fonts, logo] # Vuestic Admin — project brief ## Source project Vuestic Admin is a Vue 3 admin dashboard template built with Tailwind CSS v3, Vite, Pinia and Vuestic UI. It provides a responsive, dark‑theme capable interface for admin panels. Repository: https://github.com/epicmaxco/vuestic-admin – MIT license (see LICENSE, credit Epicmax). ## Files that matter - **Entry page:** `index.html` (loads the Vite bundle). - **Source code:** `src/` - **Layouts:** `src/layouts/AppLayout.vue`, `src/layouts/AuthLayout.vue` – shell used by most pages. - **Pages:** - `src/pages/404.vue` – not‑found page. - `src/pages/admin/` – main admin sections (e.g., dashboard, users, projects, settings). - `src/pages/auth/` – login / registration pages. - `src/pages/billing/`, `src/pages/faq/`, `src/pages/payments/`, `src/pages/preferences/`, `src/pages/pricing-plans/`, `src/pages/projects/`, `src/pages/settings/`, `src/pages/users/` – each folder contains the Vue view for that route. - **Components:** `src/components/` (navigation, sidebar, navbar, icons, typography, chart wrappers, medium‑editor, timeline items, etc.). - **State:** `src/stores/` (Pinia stores such as `global-store.ts`, `user-store.ts`, `notifications.ts`). - **Routing:** `src/router/index.ts`. - **Internationalisation:** `src/i18n/` (setup and locale files). - **SCSS:** `src/scss/main.scss` and supporting files in `src/scss/vuestic-sass/` and `src/scss/icon‑fonts/`. - **Static assets:** `public/` (favicon, manifest, images like `vuestic-admin-image.png`, `vuestic-admin-logo.png`). - **Configuration:** `vite.config.ts`, `tailwind.config.js`, `postcss.config.js`, `tsconfig.json`. - **Data files:** `src/data/` (sample JSON for users, countries, chart data, GeoJSON). ## Setup and build The project requires a build step with Vite. ```bash # install dependencies npm install # start development server npm run dev # lint and type‑check, then build for production npm run build # preview the production build locally npm run preview ``` The production assets are emitted to the `dist/` folder. ## How it is put together The dashboard uses a **layout component** (`AppLayout.vue`) that contains the top navigation bar, the collapsible sidebar, and a `<router-view>` where page components are rendered. Most pages share this layout; authentication pages use `AuthLayout.vue`. Common UI elements (buttons, cards, tables, charts) come from **Vuestic UI** (`vuestic-ui` v1.9.0) and are styled by Tailwind CSS. Global theme colors, spacing, and typography are defined in `tailwind.config.js` via CSS variables (`--va-primary`, `--va-background-primary`, etc.). JavaScript initialization occurs in `src/main.ts`, where Vue, Pinia, Vue‑Router, Vue‑I18n, and Vuestic UI are installed. Chart components rely on **Chart.js** v4.4.1 (and `chartjs-chart-geo`). The sidebar, dropdowns, and theme toggles are handled by Vuestic UI’s built‑in scripts; no manual initialization is required beyond the Vue app mount. Dark mode is supported through Vuestic UI’s theme system (controlled by CSS variables), though the default build disables it (`dark_mode: false`). RTL is not enabled. ## Watch out for 1. **Tailwind content paths** – `tailwind.config.js` only scans `./index.html` and `./src/**/*.{vue,js,ts,jsx,tsx}`; adding files outside these patterns will not be processed. 2. **Global SCSS import** – `src/scss/main.scss` is imported in the main entry; removing it will break Vuestic UI’s base styles. 3. **Duplicate library loading** – `index.html` loads only the Vite bundle; avoid adding external CDN links for Vue, Chart.js, or Vuestic UI to prevent version conflicts. 4. **Pinia store expectations** – many components assume the presence of stores like `global-store.ts`; removing a store without updating dependent components will cause runtime errors. 5. **Locale files** – Vue‑I18n loads all files under `src/i18n/locales/**`; missing locale files will cause missing‑translation warnings. 6. **Chart.js registration** – custom chart types (geo charts) require the `chartjs-chart-geo` plugin; ensure it is imported where needed, otherwise geo charts will not render. ## Verify - [ ] Development server starts (`npm run dev`) and the home page loads without console errors. - [ ] All main routes under `src/pages/` render their components correctly (dashboard, users, projects, settings, etc.). - [ ] Vuestic UI components (sidebar, navbar, buttons, tables) display with proper styling. - [ ] Chart.js charts (line, bar, geo) appear and are interactive. - [ ] Responsive breakpoints work (check layout at xs, sm, md, lg, xl). - [ ] No duplicate script or style tags appear in the generated `index.html`. - [ ] Production build (`npm run build`) outputs a `dist/` folder that can be served with `npm run preview` without errors. - [ ] License file is present and unchanged (MIT). # How to work ## Step 1 — Get it running as it is Start from the downloaded ZIP or a clone of the repository. Install the dependencies and start the dev server with the exact commands in "Setup and build" above. Confirm it runs without console errors before changing anything. ## Step 2 — Plan the project with me List the pages and sections of Vuestic Admin to keep, rename or remove for my project, the folder structure you propose for my stack, and where the repeated parts will live. Wait for my OK. ## Step 3 — Build it - Give every page its own route, and extract the shared shell (sidebar, top bar, footer) into one layout. - Replace the sample charts, tables and stats with my data sources, or with clearly marked placeholders where I have none yet. - Wire up the sign-in and account screens if the project has them, or remove them. - Put my brand name, colours and fonts where Vuestic Admin defines its theme (see "How it is put together" above), not as one-off overrides. - Keep Tailwind CSS's markup patterns and class conventions so the design stays consistent, and don't change its major version unless I ask. ## Step 4 — Polish and launch - Remove demo content and every CSS/JS file nothing uses any more; optimise images. - Check phone, tablet and desktop widths, labels, alt text, keyboard focus and colour contrast. - Run the production build and tell me which folder to deploy. - Keep the license file and credit the author of Vuestic Admin. ## Ground rules Work in small steps and show me each change. Use only the libraries already in the project unless I agree to add one.




