Skip to content

Commit 15b9b9d

Browse files
committed
chore: init
0 parents  commit 15b9b9d

15 files changed

+9022
-0
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

README.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Nuxt UI Starter
2+
3+
Look at [Nuxt docs](https://nuxt.com/docs/getting-started/introduction) and [Nuxt UI docs](https://ui.nuxt.com) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# npm
11+
npm install
12+
13+
# pnpm
14+
pnpm install
15+
16+
# yarn
17+
yarn install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on `http://localhost:3000`:
26+
27+
```bash
28+
# npm
29+
npm run dev
30+
31+
# pnpm
32+
pnpm run dev
33+
34+
# yarn
35+
yarn dev
36+
37+
# bun
38+
bun run dev
39+
```
40+
41+
## Production
42+
43+
Build the application for production:
44+
45+
```bash
46+
# npm
47+
npm run build
48+
49+
# pnpm
50+
pnpm run build
51+
52+
# yarn
53+
yarn build
54+
55+
# bun
56+
bun run build
57+
```
58+
59+
Locally preview production build:
60+
61+
```bash
62+
# npm
63+
npm run preview
64+
65+
# pnpm
66+
pnpm run preview
67+
68+
# yarn
69+
yarn preview
70+
71+
# bun
72+
bun run preview
73+
```
74+
75+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

app/app.config.ts

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default defineAppConfig({
2+
// https://ui.nuxt.com/getting-started/theme#design-system
3+
ui: {
4+
colors: {
5+
primary: 'emerald',
6+
neutral: 'slate',
7+
},
8+
button: {
9+
defaultVariants: {
10+
// Set default button color to neutral
11+
// color: 'neutral'
12+
}
13+
}
14+
}
15+
})

app/app.vue

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<UApp>
3+
<NuxtPage />
4+
</UApp>
5+
</template>

app/assets/css/main.css

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import "tailwindcss" theme(static);
2+
@import "@nuxt/ui";
3+
4+
@theme {
5+
--font-sans: 'Public Sans', sans-serif;
6+
}

app/pages/index.vue

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<div class="flex flex-col items-center justify-center gap-4 h-screen">
3+
<h1 class="font-bold text-2xl text-(--ui-primary)">
4+
Nuxt UI - Starter
5+
</h1>
6+
7+
<div class="flex items-center gap-2">
8+
<UButton
9+
label="Documentation"
10+
icon="i-lucide-square-play"
11+
to="https://ui.nuxt.com/getting-started/installation/nuxt"
12+
target="_blank"
13+
/>
14+
15+
<UButton
16+
label="GitHub"
17+
color="neutral"
18+
variant="outline"
19+
icon="i-simple-icons-github"
20+
to="https://github.com/nuxt/ui"
21+
target="_blank"
22+
/>
23+
</div>
24+
</div>
25+
</template>

eslint.config.mjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @ts-check
2+
import withNuxt from './.nuxt/eslint.config.mjs'
3+
4+
export default withNuxt(
5+
// Your custom configs here
6+
)

nuxt.config.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// https://nuxt.com/docs/api/configuration/nuxt-config
2+
export default defineNuxtConfig({
3+
devtools: { enabled: true },
4+
5+
modules: [
6+
'@nuxt/ui',
7+
'@nuxt/eslint'
8+
],
9+
10+
css: ['~/assets/css/main.css'],
11+
12+
future: {
13+
compatibilityVersion: 4
14+
},
15+
16+
compatibilityDate: '2024-11-27'
17+
})

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "nuxt-ui-starter",
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+
"lint": "eslint .",
12+
"typecheck": "nuxt typecheck"
13+
},
14+
"dependencies": {
15+
"@iconify-json/lucide": "^1.2.32",
16+
"@iconify-json/simple-icons": "^1.2.29",
17+
"@nuxt/ui": "^3.0.0",
18+
"nuxt": "^3.16.1"
19+
},
20+
"devDependencies": {
21+
"@nuxt/eslint": "^1.2.0",
22+
"eslint": "^9.22.0",
23+
"typescript": "^5.8.2",
24+
"vue-tsc": "^2.2.2"
25+
},
26+
"resolutions": {
27+
"vue-tsc": "2.2.2"
28+
},
29+
"packageManager": "[email protected]"
30+
}

0 commit comments

Comments
 (0)