create-apppaaaul 2.0.11 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/index.js +0 -0
- package/dist/index.js.map +1 -1
- package/dist/templates/nextjs-ts-clean/.cursor/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/nextjs-ts-clean/.cursor/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/nextjs-ts-clean/.cursor/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/{nextjs-ts-landing-drizzle → nextjs-ts-clean/project/.cursor}/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/{nextjs-ts-landing-drizzle → nextjs-ts-clean/project/.cursor}/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-clean/project/.cursor}/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/nextjs-ts-clean/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-clean/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-clean/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-clean/project/README.md +15 -15
- package/dist/templates/nextjs-ts-clean/project/components.json +20 -20
- package/dist/templates/nextjs-ts-clean/project/eslint.config.mjs +21 -10
- package/dist/templates/nextjs-ts-clean/project/next.config.mjs +13 -13
- package/dist/templates/nextjs-ts-clean/project/package.json +48 -49
- package/dist/templates/nextjs-ts-clean/project/postcss.config.js +3 -3
- package/dist/templates/nextjs-ts-clean/project/src/app/globals.css +228 -228
- package/dist/templates/nextjs-ts-clean/project/src/app/layout.tsx +26 -26
- package/dist/templates/nextjs-ts-clean/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-clean/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-clean/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-clean/project/tailwind.config.ts +94 -94
- package/dist/templates/nextjs-ts-clean/project/tsconfig.json +26 -26
- package/dist/templates/nextjs-ts-landing/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing/project/.vscode/settings.json +8 -8
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-landing-drizzle/project/.cursor}/rules/bootstrap-cursor-rules.mdc +44 -44
- package/dist/templates/{nextjs-ts-landing-prisma → nextjs-ts-landing-drizzle/project/.cursor}/rules/front-end-cursor-rules.mdc +37 -37
- package/dist/templates/nextjs-ts-landing-drizzle/{rules → project/.cursor/rules}/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +57 -57
- package/dist/templates/nextjs-ts-landing-drizzle/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing-drizzle/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-landing-drizzle/project/README.md +15 -15
- package/dist/templates/nextjs-ts-landing-drizzle/project/components.json +20 -20
- package/dist/templates/nextjs-ts-landing-drizzle/project/drizzle.config.ts +11 -11
- package/dist/templates/nextjs-ts-landing-drizzle/project/eslint.config.mjs +183 -0
- package/dist/templates/nextjs-ts-landing-drizzle/project/next.config.mjs +10 -10
- package/dist/templates/nextjs-ts-landing-drizzle/project/package.json +57 -58
- package/dist/templates/nextjs-ts-landing-drizzle/project/postcss.config.js +3 -3
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/globals.css +161 -161
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/layout.tsx +25 -25
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/auth.ts +79 -79
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/index.ts +25 -25
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/db/schema.ts +93 -93
- package/dist/templates/nextjs-ts-landing-drizzle/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-landing-drizzle/project/tailwind.config.ts +80 -80
- package/dist/templates/nextjs-ts-landing-drizzle/project/tsconfig.json +27 -27
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/bootstrap-cursor-rules.mdc +45 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/front-end-cursor-rules.mdc +38 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.cursor/rules/optimized-nextjs-typescript-best-practices-modern-ui-ux.mdc +58 -0
- package/dist/templates/nextjs-ts-landing-prisma/project/.editorconfig +9 -9
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/launch.json +28 -28
- package/dist/templates/nextjs-ts-landing-prisma/project/.vscode/settings.json +8 -8
- package/dist/templates/nextjs-ts-landing-prisma/project/README.md +15 -15
- package/dist/templates/nextjs-ts-landing-prisma/project/components.json +20 -20
- package/dist/templates/nextjs-ts-landing-prisma/project/eslint.config.mjs +25 -14
- package/dist/templates/nextjs-ts-landing-prisma/project/next.config.mjs +10 -10
- package/dist/templates/nextjs-ts-landing-prisma/project/package.json +57 -59
- package/dist/templates/nextjs-ts-landing-prisma/project/postcss.config.mjs +3 -3
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/20250329125127_init/migration.sql +25 -25
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/migrations/migration_lock.toml +2 -2
- package/dist/templates/nextjs-ts-landing-prisma/project/prisma/schema.prisma +24 -24
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/api/auth/[...nextauth]/route.ts +3 -3
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/globals.css +205 -205
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/layout.tsx +26 -26
- package/dist/templates/nextjs-ts-landing-prisma/project/src/app/page.tsx +5 -5
- package/dist/templates/nextjs-ts-landing-prisma/project/src/auth.ts +31 -31
- package/dist/templates/nextjs-ts-landing-prisma/project/src/components/ui/button.tsx +49 -49
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/db.ts +9 -9
- package/dist/templates/nextjs-ts-landing-prisma/project/src/lib/utils.ts +6 -6
- package/dist/templates/nextjs-ts-landing-prisma/project/tailwind.config.ts +80 -80
- package/dist/templates/nextjs-ts-landing-prisma/project/tsconfig.json +27 -27
- package/package.json +43 -43
- package/dist/templates/nextjs-ts-landing/project/.eslintrc.cjs +0 -101
|
@@ -1,229 +1,229 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
@custom-variant dark (&:is(.dark *));
|
|
4
|
-
|
|
5
|
-
@layer base {
|
|
6
|
-
:root {
|
|
7
|
-
--background: 0 0% 100%;
|
|
8
|
-
--foreground: 0 0% 3.9%;
|
|
9
|
-
|
|
10
|
-
--card: 0 0% 100%;
|
|
11
|
-
--card-foreground: 0 0% 3.9%;
|
|
12
|
-
|
|
13
|
-
--popover: 0 0% 100%;
|
|
14
|
-
--popover-foreground: 0 0% 3.9%;
|
|
15
|
-
|
|
16
|
-
--primary: 0 0% 9%;
|
|
17
|
-
--primary-foreground: 0 0% 98%;
|
|
18
|
-
|
|
19
|
-
--secondary: 0 0% 96.1%;
|
|
20
|
-
--secondary-foreground: 0 0% 9%;
|
|
21
|
-
|
|
22
|
-
--muted: 0 0% 96.1%;
|
|
23
|
-
--muted-foreground: 0 0% 45.1%;
|
|
24
|
-
|
|
25
|
-
--accent: 0 0% 96.1%;
|
|
26
|
-
--accent-foreground: 0 0% 9%;
|
|
27
|
-
|
|
28
|
-
--destructive: 0 84.2% 60.2%;
|
|
29
|
-
--destructive-foreground: 0 0% 98%;
|
|
30
|
-
|
|
31
|
-
--border: 0 0% 89.8%;
|
|
32
|
-
--input: 0 0% 89.8%;
|
|
33
|
-
--ring: 0 0% 3.9%;
|
|
34
|
-
|
|
35
|
-
--radius: 0.5rem;
|
|
36
|
-
|
|
37
|
-
--chart-1: 12 76% 61%;
|
|
38
|
-
|
|
39
|
-
--chart-2: 173 58% 39%;
|
|
40
|
-
|
|
41
|
-
--chart-3: 197 37% 24%;
|
|
42
|
-
|
|
43
|
-
--chart-4: 43 74% 66%;
|
|
44
|
-
|
|
45
|
-
--chart-5: 27 87% 67%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media (prefers-color-scheme: dark) {
|
|
49
|
-
:root {
|
|
50
|
-
--background: 240 10% 3.9%;
|
|
51
|
-
--foreground: 0 0% 98%;
|
|
52
|
-
|
|
53
|
-
--card: 240 10% 3.9%;
|
|
54
|
-
--card-foreground: 0 0% 98%;
|
|
55
|
-
|
|
56
|
-
--popover: 240 10% 3.9%;
|
|
57
|
-
--popover-foreground: 0 0% 98%;
|
|
58
|
-
|
|
59
|
-
--primary: 0 0% 98%;
|
|
60
|
-
--primary-foreground: 240 5.9% 10%;
|
|
61
|
-
|
|
62
|
-
--secondary: 240 3.7% 15.9%;
|
|
63
|
-
--secondary-foreground: 0 0% 98%;
|
|
64
|
-
|
|
65
|
-
--muted: 240 3.7% 15.9%;
|
|
66
|
-
--muted-foreground: 240 5% 64.9%;
|
|
67
|
-
|
|
68
|
-
--accent: 240 3.7% 15.9%;
|
|
69
|
-
--accent-foreground: 0 0% 98%;
|
|
70
|
-
|
|
71
|
-
--destructive: 0 62.8% 30.6%;
|
|
72
|
-
--destructive-foreground: 0 0% 98%;
|
|
73
|
-
|
|
74
|
-
--border: 240 3.7% 15.9%;
|
|
75
|
-
--input: 240 3.7% 15.9%;
|
|
76
|
-
--ring: 240 4.9% 83.9%;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
* {
|
|
81
|
-
@apply border-border;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
body {
|
|
85
|
-
@apply bg-background text-foreground;
|
|
86
|
-
}
|
|
87
|
-
.dark {
|
|
88
|
-
--background: 0 0% 3.9%;
|
|
89
|
-
--foreground: 0 0% 98%;
|
|
90
|
-
--card: 0 0% 3.9%;
|
|
91
|
-
--card-foreground: 0 0% 98%;
|
|
92
|
-
--popover: 0 0% 3.9%;
|
|
93
|
-
--popover-foreground: 0 0% 98%;
|
|
94
|
-
--primary: 0 0% 98%;
|
|
95
|
-
--primary-foreground: 0 0% 9%;
|
|
96
|
-
--secondary: 0 0% 14.9%;
|
|
97
|
-
--secondary-foreground: 0 0% 98%;
|
|
98
|
-
--muted: 0 0% 14.9%;
|
|
99
|
-
--muted-foreground: 0 0% 63.9%;
|
|
100
|
-
--accent: 0 0% 14.9%;
|
|
101
|
-
--accent-foreground: 0 0% 98%;
|
|
102
|
-
--destructive: 0 62.8% 30.6%;
|
|
103
|
-
--destructive-foreground: 0 0% 98%;
|
|
104
|
-
--border: 0 0% 14.9%;
|
|
105
|
-
--input: 0 0% 14.9%;
|
|
106
|
-
--ring: 0 0% 83.1%;
|
|
107
|
-
--chart-1: 220 70% 50%;
|
|
108
|
-
--chart-2: 160 60% 45%;
|
|
109
|
-
--chart-3: 30 80% 55%;
|
|
110
|
-
--chart-4: 280 65% 60%;
|
|
111
|
-
--chart-5: 340 75% 55%;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@theme inline {
|
|
116
|
-
--radius-sm: calc(var(--radius) - 4px);
|
|
117
|
-
--radius-md: calc(var(--radius) - 2px);
|
|
118
|
-
--radius-lg: var(--radius);
|
|
119
|
-
--radius-xl: calc(var(--radius) + 4px);
|
|
120
|
-
--color-background: var(--background);
|
|
121
|
-
--color-foreground: var(--foreground);
|
|
122
|
-
--color-card: var(--card);
|
|
123
|
-
--color-card-foreground: var(--card-foreground);
|
|
124
|
-
--color-popover: var(--popover);
|
|
125
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
126
|
-
--color-primary: var(--primary);
|
|
127
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
128
|
-
--color-secondary: var(--secondary);
|
|
129
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
130
|
-
--color-muted: var(--muted);
|
|
131
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
132
|
-
--color-accent: var(--accent);
|
|
133
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
134
|
-
--color-destructive: var(--destructive);
|
|
135
|
-
--color-border: var(--border);
|
|
136
|
-
--color-input: var(--input);
|
|
137
|
-
--color-ring: var(--ring);
|
|
138
|
-
--color-chart-1: var(--chart-1);
|
|
139
|
-
--color-chart-2: var(--chart-2);
|
|
140
|
-
--color-chart-3: var(--chart-3);
|
|
141
|
-
--color-chart-4: var(--chart-4);
|
|
142
|
-
--color-chart-5: var(--chart-5);
|
|
143
|
-
--color-sidebar: var(--sidebar);
|
|
144
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
145
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
146
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
147
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
148
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
149
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
150
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:root {
|
|
154
|
-
--radius: 0.625rem;
|
|
155
|
-
--background: oklch(1 0 0);
|
|
156
|
-
--foreground: oklch(0.145 0 0);
|
|
157
|
-
--card: oklch(1 0 0);
|
|
158
|
-
--card-foreground: oklch(0.145 0 0);
|
|
159
|
-
--popover: oklch(1 0 0);
|
|
160
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
161
|
-
--primary: oklch(0.205 0 0);
|
|
162
|
-
--primary-foreground: oklch(0.985 0 0);
|
|
163
|
-
--secondary: oklch(0.97 0 0);
|
|
164
|
-
--secondary-foreground: oklch(0.205 0 0);
|
|
165
|
-
--muted: oklch(0.97 0 0);
|
|
166
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
167
|
-
--accent: oklch(0.97 0 0);
|
|
168
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
169
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
170
|
-
--border: oklch(0.922 0 0);
|
|
171
|
-
--input: oklch(0.922 0 0);
|
|
172
|
-
--ring: oklch(0.708 0 0);
|
|
173
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
174
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
175
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
176
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
177
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
178
|
-
--sidebar: oklch(0.985 0 0);
|
|
179
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
180
|
-
--sidebar-primary: oklch(0.205 0 0);
|
|
181
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
182
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
183
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
184
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
185
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.dark {
|
|
189
|
-
--background: oklch(0.145 0 0);
|
|
190
|
-
--foreground: oklch(0.985 0 0);
|
|
191
|
-
--card: oklch(0.205 0 0);
|
|
192
|
-
--card-foreground: oklch(0.985 0 0);
|
|
193
|
-
--popover: oklch(0.205 0 0);
|
|
194
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
195
|
-
--primary: oklch(0.922 0 0);
|
|
196
|
-
--primary-foreground: oklch(0.205 0 0);
|
|
197
|
-
--secondary: oklch(0.269 0 0);
|
|
198
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
199
|
-
--muted: oklch(0.269 0 0);
|
|
200
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
201
|
-
--accent: oklch(0.269 0 0);
|
|
202
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
203
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
204
|
-
--border: oklch(1 0 0 / 10%);
|
|
205
|
-
--input: oklch(1 0 0 / 15%);
|
|
206
|
-
--ring: oklch(0.556 0 0);
|
|
207
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
208
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
209
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
210
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
211
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
212
|
-
--sidebar: oklch(0.205 0 0);
|
|
213
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
214
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
215
|
-
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
216
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
217
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
218
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
219
|
-
--sidebar-ring: oklch(0.556 0 0);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
@layer base {
|
|
223
|
-
* {
|
|
224
|
-
@apply border-border outline-ring/50;
|
|
225
|
-
}
|
|
226
|
-
body {
|
|
227
|
-
@apply bg-background text-foreground;
|
|
228
|
-
}
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@custom-variant dark (&:is(.dark *));
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
:root {
|
|
7
|
+
--background: 0 0% 100%;
|
|
8
|
+
--foreground: 0 0% 3.9%;
|
|
9
|
+
|
|
10
|
+
--card: 0 0% 100%;
|
|
11
|
+
--card-foreground: 0 0% 3.9%;
|
|
12
|
+
|
|
13
|
+
--popover: 0 0% 100%;
|
|
14
|
+
--popover-foreground: 0 0% 3.9%;
|
|
15
|
+
|
|
16
|
+
--primary: 0 0% 9%;
|
|
17
|
+
--primary-foreground: 0 0% 98%;
|
|
18
|
+
|
|
19
|
+
--secondary: 0 0% 96.1%;
|
|
20
|
+
--secondary-foreground: 0 0% 9%;
|
|
21
|
+
|
|
22
|
+
--muted: 0 0% 96.1%;
|
|
23
|
+
--muted-foreground: 0 0% 45.1%;
|
|
24
|
+
|
|
25
|
+
--accent: 0 0% 96.1%;
|
|
26
|
+
--accent-foreground: 0 0% 9%;
|
|
27
|
+
|
|
28
|
+
--destructive: 0 84.2% 60.2%;
|
|
29
|
+
--destructive-foreground: 0 0% 98%;
|
|
30
|
+
|
|
31
|
+
--border: 0 0% 89.8%;
|
|
32
|
+
--input: 0 0% 89.8%;
|
|
33
|
+
--ring: 0 0% 3.9%;
|
|
34
|
+
|
|
35
|
+
--radius: 0.5rem;
|
|
36
|
+
|
|
37
|
+
--chart-1: 12 76% 61%;
|
|
38
|
+
|
|
39
|
+
--chart-2: 173 58% 39%;
|
|
40
|
+
|
|
41
|
+
--chart-3: 197 37% 24%;
|
|
42
|
+
|
|
43
|
+
--chart-4: 43 74% 66%;
|
|
44
|
+
|
|
45
|
+
--chart-5: 27 87% 67%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (prefers-color-scheme: dark) {
|
|
49
|
+
:root {
|
|
50
|
+
--background: 240 10% 3.9%;
|
|
51
|
+
--foreground: 0 0% 98%;
|
|
52
|
+
|
|
53
|
+
--card: 240 10% 3.9%;
|
|
54
|
+
--card-foreground: 0 0% 98%;
|
|
55
|
+
|
|
56
|
+
--popover: 240 10% 3.9%;
|
|
57
|
+
--popover-foreground: 0 0% 98%;
|
|
58
|
+
|
|
59
|
+
--primary: 0 0% 98%;
|
|
60
|
+
--primary-foreground: 240 5.9% 10%;
|
|
61
|
+
|
|
62
|
+
--secondary: 240 3.7% 15.9%;
|
|
63
|
+
--secondary-foreground: 0 0% 98%;
|
|
64
|
+
|
|
65
|
+
--muted: 240 3.7% 15.9%;
|
|
66
|
+
--muted-foreground: 240 5% 64.9%;
|
|
67
|
+
|
|
68
|
+
--accent: 240 3.7% 15.9%;
|
|
69
|
+
--accent-foreground: 0 0% 98%;
|
|
70
|
+
|
|
71
|
+
--destructive: 0 62.8% 30.6%;
|
|
72
|
+
--destructive-foreground: 0 0% 98%;
|
|
73
|
+
|
|
74
|
+
--border: 240 3.7% 15.9%;
|
|
75
|
+
--input: 240 3.7% 15.9%;
|
|
76
|
+
--ring: 240 4.9% 83.9%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
* {
|
|
81
|
+
@apply border-border;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
body {
|
|
85
|
+
@apply bg-background text-foreground;
|
|
86
|
+
}
|
|
87
|
+
.dark {
|
|
88
|
+
--background: 0 0% 3.9%;
|
|
89
|
+
--foreground: 0 0% 98%;
|
|
90
|
+
--card: 0 0% 3.9%;
|
|
91
|
+
--card-foreground: 0 0% 98%;
|
|
92
|
+
--popover: 0 0% 3.9%;
|
|
93
|
+
--popover-foreground: 0 0% 98%;
|
|
94
|
+
--primary: 0 0% 98%;
|
|
95
|
+
--primary-foreground: 0 0% 9%;
|
|
96
|
+
--secondary: 0 0% 14.9%;
|
|
97
|
+
--secondary-foreground: 0 0% 98%;
|
|
98
|
+
--muted: 0 0% 14.9%;
|
|
99
|
+
--muted-foreground: 0 0% 63.9%;
|
|
100
|
+
--accent: 0 0% 14.9%;
|
|
101
|
+
--accent-foreground: 0 0% 98%;
|
|
102
|
+
--destructive: 0 62.8% 30.6%;
|
|
103
|
+
--destructive-foreground: 0 0% 98%;
|
|
104
|
+
--border: 0 0% 14.9%;
|
|
105
|
+
--input: 0 0% 14.9%;
|
|
106
|
+
--ring: 0 0% 83.1%;
|
|
107
|
+
--chart-1: 220 70% 50%;
|
|
108
|
+
--chart-2: 160 60% 45%;
|
|
109
|
+
--chart-3: 30 80% 55%;
|
|
110
|
+
--chart-4: 280 65% 60%;
|
|
111
|
+
--chart-5: 340 75% 55%;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@theme inline {
|
|
116
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
117
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
118
|
+
--radius-lg: var(--radius);
|
|
119
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
120
|
+
--color-background: var(--background);
|
|
121
|
+
--color-foreground: var(--foreground);
|
|
122
|
+
--color-card: var(--card);
|
|
123
|
+
--color-card-foreground: var(--card-foreground);
|
|
124
|
+
--color-popover: var(--popover);
|
|
125
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
126
|
+
--color-primary: var(--primary);
|
|
127
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
128
|
+
--color-secondary: var(--secondary);
|
|
129
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
130
|
+
--color-muted: var(--muted);
|
|
131
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
132
|
+
--color-accent: var(--accent);
|
|
133
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
134
|
+
--color-destructive: var(--destructive);
|
|
135
|
+
--color-border: var(--border);
|
|
136
|
+
--color-input: var(--input);
|
|
137
|
+
--color-ring: var(--ring);
|
|
138
|
+
--color-chart-1: var(--chart-1);
|
|
139
|
+
--color-chart-2: var(--chart-2);
|
|
140
|
+
--color-chart-3: var(--chart-3);
|
|
141
|
+
--color-chart-4: var(--chart-4);
|
|
142
|
+
--color-chart-5: var(--chart-5);
|
|
143
|
+
--color-sidebar: var(--sidebar);
|
|
144
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
145
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
146
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
147
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
148
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
149
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
150
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:root {
|
|
154
|
+
--radius: 0.625rem;
|
|
155
|
+
--background: oklch(1 0 0);
|
|
156
|
+
--foreground: oklch(0.145 0 0);
|
|
157
|
+
--card: oklch(1 0 0);
|
|
158
|
+
--card-foreground: oklch(0.145 0 0);
|
|
159
|
+
--popover: oklch(1 0 0);
|
|
160
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
161
|
+
--primary: oklch(0.205 0 0);
|
|
162
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
163
|
+
--secondary: oklch(0.97 0 0);
|
|
164
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
165
|
+
--muted: oklch(0.97 0 0);
|
|
166
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
167
|
+
--accent: oklch(0.97 0 0);
|
|
168
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
169
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
170
|
+
--border: oklch(0.922 0 0);
|
|
171
|
+
--input: oklch(0.922 0 0);
|
|
172
|
+
--ring: oklch(0.708 0 0);
|
|
173
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
174
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
175
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
176
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
177
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
178
|
+
--sidebar: oklch(0.985 0 0);
|
|
179
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
180
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
181
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
182
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
183
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
184
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
185
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.dark {
|
|
189
|
+
--background: oklch(0.145 0 0);
|
|
190
|
+
--foreground: oklch(0.985 0 0);
|
|
191
|
+
--card: oklch(0.205 0 0);
|
|
192
|
+
--card-foreground: oklch(0.985 0 0);
|
|
193
|
+
--popover: oklch(0.205 0 0);
|
|
194
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
195
|
+
--primary: oklch(0.922 0 0);
|
|
196
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
197
|
+
--secondary: oklch(0.269 0 0);
|
|
198
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
199
|
+
--muted: oklch(0.269 0 0);
|
|
200
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
201
|
+
--accent: oklch(0.269 0 0);
|
|
202
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
203
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
204
|
+
--border: oklch(1 0 0 / 10%);
|
|
205
|
+
--input: oklch(1 0 0 / 15%);
|
|
206
|
+
--ring: oklch(0.556 0 0);
|
|
207
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
208
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
209
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
210
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
211
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
212
|
+
--sidebar: oklch(0.205 0 0);
|
|
213
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
214
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
215
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
216
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
217
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
218
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
219
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@layer base {
|
|
223
|
+
* {
|
|
224
|
+
@apply border-border outline-ring/50;
|
|
225
|
+
}
|
|
226
|
+
body {
|
|
227
|
+
@apply bg-background text-foreground;
|
|
228
|
+
}
|
|
229
229
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
|
|
5
|
-
import "./globals.css";
|
|
6
|
-
|
|
7
|
-
export const metadata: Metadata = {
|
|
8
|
-
title: "{{name}}",
|
|
9
|
-
description: "Generated by apppaaaul",
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
13
|
-
return (
|
|
14
|
-
<html lang="en">
|
|
15
|
-
<body className="bg-background container m-auto grid min-h-screen grid-rows-[auto,1fr,auto] px-4 font-sans antialiased">
|
|
16
|
-
<header className="text-xl font-bold leading-[4rem]">
|
|
17
|
-
<Link href="/">{{ name }}</Link>
|
|
18
|
-
</header>
|
|
19
|
-
<main className="py-8">{children}</main>
|
|
20
|
-
<footer className="text-center leading-[4rem] opacity-70">
|
|
21
|
-
© {new Date().getFullYear()} {{ name }}
|
|
22
|
-
</footer>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
|
|
5
|
+
import "./globals.css";
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
title: "{{name}}",
|
|
9
|
+
description: "Generated by apppaaaul",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
13
|
+
return (
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<body className="bg-background container m-auto grid min-h-screen grid-rows-[auto,1fr,auto] px-4 font-sans antialiased">
|
|
16
|
+
<header className="text-xl font-bold leading-[4rem]">
|
|
17
|
+
<Link href="/">{{ name }}</Link>
|
|
18
|
+
</header>
|
|
19
|
+
<main className="py-8">{children}</main>
|
|
20
|
+
<footer className="text-center leading-[4rem] opacity-70">
|
|
21
|
+
© {new Date().getFullYear()} {{ name }}
|
|
22
|
+
</footer>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {Button} from "@/components/ui/button";
|
|
2
|
-
|
|
3
|
-
export default function HomePage() {
|
|
4
|
-
return <Button>👋</Button>;
|
|
5
|
-
}
|
|
1
|
+
import {Button} from "@/components/ui/button";
|
|
2
|
+
|
|
3
|
+
export default function HomePage() {
|
|
4
|
+
return <Button>👋</Button>;
|
|
5
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import {Slot} from "@radix-ui/react-slot";
|
|
3
|
-
import {cva, type VariantProps} from "class-variance-authority";
|
|
4
|
-
|
|
5
|
-
import {cn} from "@/lib/utils";
|
|
6
|
-
|
|
7
|
-
const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
13
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
14
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
15
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
16
|
-
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
17
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
default: "h-10 px-4 py-2",
|
|
21
|
-
sm: "h-9 rounded-md px-3",
|
|
22
|
-
lg: "h-11 rounded-md px-8",
|
|
23
|
-
icon: "h-10 w-10",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
variant: "default",
|
|
28
|
-
size: "default",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
);
|
|
32
|
-
|
|
33
|
-
export interface ButtonProps
|
|
34
|
-
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
35
|
-
VariantProps<typeof buttonVariants> {
|
|
36
|
-
asChild?: boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
40
|
-
({className, variant, size, asChild = false, ...props}, ref) => {
|
|
41
|
-
const Comp = asChild ? Slot : "button";
|
|
42
|
-
|
|
43
|
-
return <Comp ref={ref} className={cn(buttonVariants({variant, size, className}))} {...props} />;
|
|
44
|
-
},
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
Button.displayName = "Button";
|
|
48
|
-
|
|
49
|
-
export {Button, buttonVariants};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import {Slot} from "@radix-ui/react-slot";
|
|
3
|
+
import {cva, type VariantProps} from "class-variance-authority";
|
|
4
|
+
|
|
5
|
+
import {cn} from "@/lib/utils";
|
|
6
|
+
|
|
7
|
+
const buttonVariants = cva(
|
|
8
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
13
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
14
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
15
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
16
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
17
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: "h-10 px-4 py-2",
|
|
21
|
+
sm: "h-9 rounded-md px-3",
|
|
22
|
+
lg: "h-11 rounded-md px-8",
|
|
23
|
+
icon: "h-10 w-10",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export interface ButtonProps
|
|
34
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
35
|
+
VariantProps<typeof buttonVariants> {
|
|
36
|
+
asChild?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
40
|
+
({className, variant, size, asChild = false, ...props}, ref) => {
|
|
41
|
+
const Comp = asChild ? Slot : "button";
|
|
42
|
+
|
|
43
|
+
return <Comp ref={ref} className={cn(buttonVariants({variant, size, className}))} {...props} />;
|
|
44
|
+
},
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
Button.displayName = "Button";
|
|
48
|
+
|
|
49
|
+
export {Button, buttonVariants};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { clsx, type ClassValue } from "clsx"
|
|
2
|
-
import { twMerge } from "tailwind-merge"
|
|
3
|
-
|
|
4
|
-
export function cn(...inputs: ClassValue[]) {
|
|
5
|
-
return twMerge(clsx(inputs))
|
|
6
|
-
}
|
|
1
|
+
import { clsx, type ClassValue } from "clsx"
|
|
2
|
+
import { twMerge } from "tailwind-merge"
|
|
3
|
+
|
|
4
|
+
export function cn(...inputs: ClassValue[]) {
|
|
5
|
+
return twMerge(clsx(inputs))
|
|
6
|
+
}
|