A modern Vue 3 starter template with Vite, Tailwind CSS, ESLint, and Prettier.
- ⚡️ Vue 3 with
<script setup>SFC syntax - 🚀 Vite 7 for blazing fast development
- 🎨 Tailwind CSS 4 with CSS-first configuration
- 📦 Vue Router 4 for routing
- 🔍 ESLint 9 with flat config
- 💅 Prettier 3 with Tailwind CSS plugin
- VS Code + Vue - Official (formerly Volar)
- Prettier - Code formatter
- ESLint
- Tailwind CSS IntelliSense
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview| Script | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run lint |
Lint and auto-fix with ESLint |
npm run lint:check |
Check linting without auto-fix |
npm run format |
Format code with Prettier |
npm run format:check |
Check formatting without auto-fix |
├── public/ # Static assets
├── src/
│ ├── assets/ # Asset files (images, fonts, etc.)
│ │ ├── style.css # Global styles with Tailwind
│ ├── components/ # Vue components
│ ├── views/ # Page components
│ ├── App.vue # Root component
│ ├── main.js # App entry point
│ ├── router.js # Vue Router configuration
├── eslint.config.js # ESLint flat config
└── vite.config.js # Vite configuration with Tailwind plugin
This template uses Tailwind CSS 4 with the new CSS-first configuration approach. Tailwind is integrated directly as a Vite plugin (@tailwindcss/vite), eliminating the need for separate tailwind.config.js and postcss.config.js files.
To customize Tailwind, use CSS variables and the @theme directive in your CSS file. See the Tailwind CSS documentation for more details.