├── .gitignore ├── README.md ├── app ├── app.config.ts ├── app.vue ├── components │ ├── ColorMode.vue │ ├── FormLogin.vue │ └── app │ │ ├── AppFooter.vue │ │ ├── AppHeader.vue │ │ └── AppLogo.vue ├── layouts │ └── default.vue └── pages │ └── index.vue ├── nuxt.config.ts ├── package.json ├── public └── favicon.ico ├── server └── tsconfig.json ├── tsconfig.json └── uno.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | # Nuxt dev/build outputs 2 | .output 3 | .data 4 | .nuxt 5 | .nitro 6 | .cache 7 | dist 8 | 9 | # Node dependencies 10 | node_modules 11 | 12 | # Logs 13 | logs 14 | *.log 15 | 16 | # Misc 17 | .DS_Store 18 | .fleet 19 | .idea 20 | 21 | # Local env files 22 | .env 23 | .env.* 24 | !.env.example 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Una UI Minimal Starter 2 | 3 | Look at the [Una UI documentation](https://unaui.com/) to learn more. 4 | 5 | ## GitHub Template 6 | 7 | [Create a repo from this template on GitHub](https://github.com/una-ui/starter/generate). 8 | 9 | ## Clone to local 10 | 11 | If you prefer to do it manually 12 | 13 | ```bash 14 | npx degit una-ui/starter starter 15 | cd starter 16 | ``` 17 | 18 | ## Setup 19 | 20 | Make sure to install the dependencies: 21 | 22 | ```bash 23 | # npm 24 | npm install 25 | 26 | # pnpm 27 | pnpm install 28 | 29 | # yarn 30 | yarn install 31 | 32 | # bun 33 | bun install 34 | ``` 35 | 36 | ## Development Server 37 | 38 | Start the development server on `http://localhost:3000`: 39 | 40 | ```bash 41 | # npm 42 | npm run dev 43 | 44 | # pnpm 45 | pnpm run dev 46 | 47 | # yarn 48 | yarn dev 49 | 50 | # bun 51 | bun run dev 52 | ``` 53 | 54 | ## Production 55 | 56 | Build the application for production: 57 | 58 | ```bash 59 | # npm 60 | npm run build 61 | 62 | # pnpm 63 | pnpm run build 64 | 65 | # yarn 66 | yarn build 67 | 68 | # bun 69 | bun run build 70 | ``` 71 | 72 | Locally preview production build: 73 | 74 | ```bash 75 | # npm 76 | npm run preview 77 | 78 | # pnpm 79 | pnpm run preview 80 | 81 | # yarn 82 | yarn preview 83 | 84 | # bun 85 | bun run preview 86 | ``` 87 | -------------------------------------------------------------------------------- /app/app.config.ts: -------------------------------------------------------------------------------- 1 | export default defineAppConfig({ 2 | una: { 3 | // you can use any color provided by tailwindcss 💛, or you can define your own colors via uno.config.ts 4 | primary: 'yellow', 5 | gray: 'stone', 6 | radius: 0.5 7 | } 8 | }) 9 | -------------------------------------------------------------------------------- /app/app.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/components/ColorMode.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/components/FormLogin.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/components/app/AppFooter.vue: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | -------------------------------------------------------------------------------- /app/components/app/AppHeader.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Una UI 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/components/app/AppLogo.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/layouts/default.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/pages/index.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Sign in to your account 11 | 12 | 13 | Powered by https://unaui.com/ 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | No account yet? 22 | 23 | Create an account here 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /nuxt.config.ts: -------------------------------------------------------------------------------- 1 | // https://nuxt.com/docs/api/configuration/nuxt-config 2 | export default defineNuxtConfig({ 3 | modules: [ 4 | '@una-ui/nuxt', 5 | ], 6 | compatibilityDate: '2024-11-01', 7 | future: { 8 | compatibilityVersion: 4 9 | }, 10 | devtools: { 11 | enabled: true, 12 | componentInspector: false 13 | }, 14 | // default settings; you can remove this 15 | una: { 16 | prefix: 'N', 17 | themeable: true, 18 | global: true, 19 | }, 20 | colorMode: { 21 | preference: 'dark', 22 | }, 23 | }) 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "una-ui-app", 3 | "private": true, 4 | "type": "module", 5 | "scripts": { 6 | "build": "nuxt build", 7 | "dev": "nuxt dev", 8 | "generate": "nuxt generate", 9 | "preview": "nuxt preview", 10 | "postinstall": "nuxt prepare" 11 | }, 12 | "devDependencies": { 13 | "@una-ui/nuxt": "npm:@una-ui/nuxt-edge@latest", 14 | "nuxt": "^3.16.0", 15 | "vue": "latest" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/una-ui/starter/75a447df5ec78510754221e305c27951b7fc3ac8/public/favicon.ico -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../.nuxt/tsconfig.server.json" 3 | } 4 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | // https://nuxt.com/docs/guide/concepts/typescript 3 | "extends": "./.nuxt/tsconfig.json", 4 | } 5 | -------------------------------------------------------------------------------- /uno.config.ts: -------------------------------------------------------------------------------- 1 | import { defaultConfig } from '@una-ui/nuxt/una.config' 2 | 3 | export default defaultConfig({ 4 | /** 5 | * UnoCSS Configuration Options 6 | * 7 | * You can extend the default UnoCSS configuration here by adding rules, 8 | * themes, variants, and other options. 9 | * 10 | * @see https://unocss.dev/guide/config-file 11 | * @see https://unocss.dev/config/ 12 | */ 13 | 14 | /** 15 | * Una UI Shortcuts Customization 16 | * 17 | * Shortcuts allow you to create reusable utility combinations or override 18 | * the default Una UI components styling. 19 | * 20 | * Two types of shortcuts: 21 | * 1. Static: Simple string mappings (object format) 22 | * 2. Dynamic: RegExp patterns with functions that return styles 23 | * 24 | * @see https://github.com/una-ui/una-ui/tree/main/packages/preset/src/_shortcuts 25 | * @see https://unocss.dev/config/shortcuts 26 | */ 27 | shortcuts: [ 28 | /** 29 | * Static Shortcuts 30 | * 31 | * Use these to create new utility combinations or override existing ones. 32 | * 33 | * @example 34 | * 'btn-custom': 'py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600', 35 | * 'card': 'p-4 border rounded-lg shadow bg-white dark:bg-gray-800' 36 | */ 37 | { 38 | // add here ... 39 | }, 40 | 41 | /** 42 | * Dynamic Shortcuts 43 | * 44 | * Create pattern-based utilities with variants using RegExp. 45 | * 46 | * @example 47 | * [/^gradient-(\w+)$/, ([, color]) => `bg-gradient-to-r from-${color}-500 to-${color}-700`], 48 | * [/^shadow-(\w+)$/, ([, size]) => size === 'sm' ? 'shadow-sm' : size === 'lg' ? 'shadow-lg' : 'shadow'] 49 | */ 50 | ], 51 | }) 52 | 53 | --------------------------------------------------------------------------------
13 | Powered by https://unaui.com/ 14 |