├── assets └── .gitkeep ├── plugins └── .gitkeep ├── public └── .gitkeep ├── components └── .gitkeep ├── composables └── .gitkeep ├── server └── api │ └── .gitkeep ├── tsconfig.json ├── .gitignore ├── .stackblitzrc ├── app.vue ├── nuxt.config.ts ├── windi.config.js ├── package.json ├── layouts └── default.vue ├── pages └── index.vue └── README.md /assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /composables/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server/api/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./.nuxt/tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | .nuxt 4 | nuxt.d.ts 5 | .output 6 | -------------------------------------------------------------------------------- /.stackblitzrc: -------------------------------------------------------------------------------- 1 | { 2 | "installDependencies": true, 3 | "startCommand": "npm run dev" 4 | } 5 | -------------------------------------------------------------------------------- /app.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /nuxt.config.ts: -------------------------------------------------------------------------------- 1 | import { defineNuxtConfig } from 'nuxt' 2 | 3 | export default defineNuxtConfig({ 4 | buildModules: [ 5 | '@vueuse/core/nuxt', 6 | 'nuxt-windicss', 7 | ], 8 | windicss: { 9 | analyze: true 10 | }, 11 | }) 12 | -------------------------------------------------------------------------------- /windi.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'windicss/helpers' 2 | import colors from 'windicss/colors' 3 | import plugin from 'windicss/plugin' 4 | 5 | export default defineConfig({ 6 | darkMode: false, // or 'media' or 'class' 7 | theme: { 8 | colors: { 9 | ...colors, 10 | }, 11 | extend: { 12 | }, 13 | }, 14 | plugins: [], 15 | }) 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "build": "nuxt build", 5 | "dev": "nuxt dev", 6 | "generate": "nuxt generate", 7 | "preview": "nuxt preview" 8 | }, 9 | "devDependencies": { 10 | "@vueuse/core": "^6.8.0", 11 | "nuxt-windicss": "^2.0.0", 12 | "nuxt": "npm:nuxt3@latest" 13 | }, 14 | "dependencies": {} 15 | } 16 | -------------------------------------------------------------------------------- /layouts/default.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 20 | -------------------------------------------------------------------------------- /pages/index.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | {{ header }} 9 | with VueUse and Windi CSS. 10 | 11 | 12 | Edit layouts/default.vue and windi.config.js. 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nuxt 3 Minimal Starter with VueUse and WindiCSS 2 | 3 | Documents 4 | 5 | * [Nuxt 3](https://v3.nuxtjs.org) 6 | * [VueUse](https://vueuse.org/) 7 | * [Windi CSS](https://windicss.org/) 8 | * [Pinia](https://pinia.esm.dev/) (switch `pinia` branch) 9 | 10 | ## Clone 11 | 12 | ```bash 13 | git remote rename origin template # origin → template 14 | gh repo create # Create your remote repository by GitHub CLI 15 | git push -u origin main # Push to your repository 16 | ``` 17 | 18 | `template:main` : This repository 19 | `origin:main` : Your remote repository 20 | 21 | > `gh` command by [GitHub CLI](https://cli.github.com/) 22 | > or `git remote add origin ~~~` 23 | 24 | ## Setup 25 | 26 | Make sure to install the dependencies 27 | 28 | ```bash 29 | yarn install 30 | ``` 31 | 32 | ## Development 33 | 34 | Start the development server on http://localhost:3000 35 | 36 | ```bash 37 | yarn dev 38 | ``` 39 | 40 | ## Production 41 | 42 | Build the application for production: 43 | 44 | ```bash 45 | yarn build 46 | ``` 47 | 48 | Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/). --------------------------------------------------------------------------------
12 | Edit layouts/default.vue and windi.config.js. 13 |