Whbbit1999/shadcn-vue-admin
소개
Shadcn-vue, Vue 3, Vite로 제작한 관리자 대시보드 UI입니다. 반응형 디자인과 접근성을 고려해 구축했습니다.
웹 및 앱 개발What you can do
- ✅ Light, dark and system appearance, with persistent theme settings
- ✅ Global search command palette
- ✅ Sidebar navigation built with shadcn-vue components
- ✅ Example pages for dashboards, tasks, users, settings, authentication and errors
측정된 스타 증가
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +7
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalShadcn Vue Admin
简体中文 | English
A frontend UI template built with shadcn-vue, Vue 3 and Vite, bringing together common layouts, components and example pages that you can customize and extend. Adapted from shadcn-admin for Vue.

This repository provides frontend examples. Login is mocked, and pages such as Tasks use local sample data. Connect your own authentication and business APIs before using it in production.
✨ Key Features
- ✅ Light, dark and system appearance, with persistent theme settings
- ✅ Global search command palette
- ✅ Sidebar navigation built with shadcn-vue components
- ✅ Example pages for dashboards, tasks, users, settings, authentication and errors
- ✅ Custom component library with shadcn-vue extensions
- ✅ Auto-generated routing system (based on file structure)
- ✅ English and Simplified Chinese locale resources with vue-i18n (some page copy remains hardcoded)
- ✅ Form validation with tanstack/vue-form + Zod
- ✅ Reusable data tables with TanStack Table, query/mutation examples with TanStack Query, and charts with Unovis
- ✅ Animation support (AutoAnimate, Motion-V, TW Animate CSS)
🛠️ Tech Stack & Version Constraints
| Category | Tools & Libraries (Major Versions) |
|---|---|
| Core Framework | Vue 3.5+, TypeScript 6+ |
| UI Components | shadcn-vue, reka-ui 2+, @lucide/vue |
| Build Tool | Vite 8+, @vitejs/plugin-vue 6+ |
| State Management | Pinia 4+, pinia-plugin-persistedstate 4+ |
| Routing | vue-router 5+, vite-plugin-vue-layouts 0.11+ |
| Styling | Tailwind CSS 4+, tw-animate-css 1+ |
| Data Handling | TanStack Vue Query 5+, TanStack Vue Table 9+ |
| Form Validation | TanStack Vue Form, Zod 4+ |
| Animation | @formkit/auto-animate 0.10+, motion-v 2+ |
| Internationalization | vue-i18n 11+ |
| HTTP Client | ofetch |
| Linting & Formatting | ESLint 10+, @antfu/eslint-config 9+ |
🚀 Quick Start
Prerequisites
- Node.js ≥ 22.15, as declared in
package.json; CI uses Node.js 22. - Use the pnpm version specified by
packageManagerinpackage.json(currently 11.28.11). - TypeScript is installed as a project dependency; no global installation is needed.
Installation
Clone the repository
git clone https://github.com/Whbbit1999/shadcn-vue-admin.gitFor users in mainland China, you can also clone from the synced AtomGit mirror:
git clone https://atomgit.com/Whbbit1999/shadcn-vue-admin.gitNavigate to project directory
cd shadcn-vue-adminInstall dependencies
pnpm installStart development server
pnpm dev
Available Scripts
pnpm dev # Start development server
pnpm build # Build for production (vue-tsc + vite build)
pnpm build:analyze # Build with bundle visualizer (ANALYZE=true)
pnpm preview # Preview production build
pnpm lint # ESLint check
pnpm lint:fix # Auto fix lint issues
pnpm test # Run unit tests in watch mode
pnpm test:run # Run unit tests once
pnpm test:coverage # Run unit tests with coverage
pnpm release # Bump version with bumpp
📖 Advanced Guides
Dependency Maintenance
- Dependency ranges are declared in
package.json;pnpm-lock.yamlrecords the resolved versions. CI installs withpnpm install --frozen-lockfile. - Git hooks use
simple-git-hooks: pre-commit runsnano-stagedto fix lint issues in staged files, and pre-push runspnpm build. - Pull request CI runs lint, build and test coverage checks for changes beyond Markdown files.
Theme Customization
Use tweakcn as a starting point for custom themes. Update the base CSS variables in src/assets/index.css under :root and .dark, and adjust the @theme inline mappings when needed. The selectable color themes have their own overrides in src/assets/themes.css; update those too when customizing a selectable theme.
Layout Customization
For pages in pages/errors/ and pages/auth/ that you don’t want to use the default layout:
Create a same-name file in pages/:
src/pages/errors.vue
src/pages/auth.vue
<template>
<router-view />
</template>
<route lang="yml">
meta:
layout: false
</route>
The project already uses this pattern in src/pages/auth.vue and src/pages/errors.vue. For a new directory, add an index.vue if its base path should redirect to a child page:
<script lang="ts" setup>
const router = useRouter()
router.replace('/errors/404')
</script>
API Configuration
When connecting a backend, use .env.example as a reference for your local environment configuration:
VITE_SERVER_API_URL: backend origin.VITE_SERVER_API_PREFIX: API path prefix (defaults to/api).VITE_SERVER_API_TIMEOUT: request timeout in milliseconds (defaults to5000).
src/lib/api-client.ts provides the shared ofetch client, and src/services/api/ contains API examples. The Tasks page currently uses src/pages/tasks/data/tasks.json; the task API examples are not wired into that page.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Credits
- Developer: Whbbit1999
- Original Design: shadcn-admin
관련 프로젝트 살펴보기
불러오는 중…