A Vue3/Vite starter template to build website with Tailwind, Pinia, DaisyUI, and Markdown.
Inspired by Vitesse ❤
In a brand new repository
npx degit mardix/vue-starter-template .
npm install
# or
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
-
⚡️ Vue 3
-
🎨 Tailwind CSS - Rapidly build modern websites without ever leaving your HTML.
-
DaisyUI
-
Dayjs
-
Lodash
-
Markdown
-
🔥 Use the new
<script setup>syntax -
📥 APIs auto importing - use Composition API and others directly
-
🖨 Server-side generation (SSG) via vite-ssg
-
🦔 Critical CSS via critters
-
🦾 TypeScript, of course
- Iconify - use icons from any icon sets
unplugin-icons- icons as Vue components
- Vue Router
vite-plugin-pages- file system based routingvite-plugin-vue-layouts- layouts for pages
- Pinia - Intuitive, type safe, light and flexible Store for Vue using the composition api
unplugin-vue-components- components auto importunplugin-auto-import- Directly use Vue Composition API and others without importing- VueUse - collection of useful composition APIs
@vueuse/head- manipulate document head reactively- Vue I18n - Internationalization
vite-plugin-vue-i18n- Vite plugin for Vue I18n
vite-plugin-pwa- PWA
- Use Composition API with
<script setup>SFC syntax
- TypeScript
- pnpm - fast, disk space efficient package manager
vite-ssg- Server-side generation- critters - Critical CSS
- VS Code Extensions
- Vite - Fire up Vite server automatically
- Volar - Vue 3
<script setup>IDE support - Iconify IntelliSense - Icon inline display and autocomplete
- TailwindCSS Intellisense - IDE support for Tailwind CSS
- i18n Ally - All in one i18n support
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit mardix/vue-starter-template .
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
# or
npm install
When you use this template, try follow the checklist to update your info properly
- Rename
namefield inpackage.json - Change the author name in
LICENSE - Change the title in
App.vue - Change the favicon in
public - Remove the
.githubfolder which contains the funding info - Clean up the READMEs and remove routes
And, enjoy :)
Just run and visit http://localhost:3000
pnpm devJust run and visit https://localhost
pnpm build && pnpm run https-previewTo build the App, run
pnpm buildAnd you will see the generated file in dist that ready to be served.