Skip to content

Commit 995cb04

Browse files
committed
Shadcn UI
1 parent 6f4cde2 commit 995cb04

File tree

6 files changed

+3660
-67
lines changed

6 files changed

+3660
-67
lines changed

.cursor/mcp.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"mcpServers": {
3+
"shadcn": {
4+
"command": "npx",
5+
"args": [
6+
"shadcn@latest",
7+
"mcp"
8+
]
9+
}
10+
}
11+
}

app/globals.css

Lines changed: 112 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,125 @@
11
@import "tailwindcss";
2+
@import "tw-animate-css";
23

3-
:root {
4-
--background: #ffffff;
5-
--foreground: #171717;
6-
}
4+
@custom-variant dark (&:is(.dark *));
75

86
@theme inline {
97
--color-background: var(--background);
108
--color-foreground: var(--foreground);
119
--font-sans: var(--font-geist-sans);
1210
--font-mono: var(--font-geist-mono);
11+
--color-sidebar-ring: var(--sidebar-ring);
12+
--color-sidebar-border: var(--sidebar-border);
13+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
14+
--color-sidebar-accent: var(--sidebar-accent);
15+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
16+
--color-sidebar-primary: var(--sidebar-primary);
17+
--color-sidebar-foreground: var(--sidebar-foreground);
18+
--color-sidebar: var(--sidebar);
19+
--color-chart-5: var(--chart-5);
20+
--color-chart-4: var(--chart-4);
21+
--color-chart-3: var(--chart-3);
22+
--color-chart-2: var(--chart-2);
23+
--color-chart-1: var(--chart-1);
24+
--color-ring: var(--ring);
25+
--color-input: var(--input);
26+
--color-border: var(--border);
27+
--color-destructive: var(--destructive);
28+
--color-accent-foreground: var(--accent-foreground);
29+
--color-accent: var(--accent);
30+
--color-muted-foreground: var(--muted-foreground);
31+
--color-muted: var(--muted);
32+
--color-secondary-foreground: var(--secondary-foreground);
33+
--color-secondary: var(--secondary);
34+
--color-primary-foreground: var(--primary-foreground);
35+
--color-primary: var(--primary);
36+
--color-popover-foreground: var(--popover-foreground);
37+
--color-popover: var(--popover);
38+
--color-card-foreground: var(--card-foreground);
39+
--color-card: var(--card);
40+
--radius-sm: calc(var(--radius) - 4px);
41+
--radius-md: calc(var(--radius) - 2px);
42+
--radius-lg: var(--radius);
43+
--radius-xl: calc(var(--radius) + 4px);
44+
--radius-2xl: calc(var(--radius) + 8px);
45+
--radius-3xl: calc(var(--radius) + 12px);
46+
--radius-4xl: calc(var(--radius) + 16px);
1347
}
1448

15-
@media (prefers-color-scheme: dark) {
16-
:root {
17-
--background: #0a0a0a;
18-
--foreground: #ededed;
19-
}
49+
:root {
50+
--radius: 0.625rem;
51+
--background: oklch(1 0 0);
52+
--foreground: oklch(0.129 0.042 264.695);
53+
--card: oklch(1 0 0);
54+
--card-foreground: oklch(0.129 0.042 264.695);
55+
--popover: oklch(1 0 0);
56+
--popover-foreground: oklch(0.129 0.042 264.695);
57+
--primary: oklch(0.208 0.042 265.755);
58+
--primary-foreground: oklch(0.984 0.003 247.858);
59+
--secondary: oklch(0.968 0.007 247.896);
60+
--secondary-foreground: oklch(0.208 0.042 265.755);
61+
--muted: oklch(0.968 0.007 247.896);
62+
--muted-foreground: oklch(0.554 0.046 257.417);
63+
--accent: oklch(0.968 0.007 247.896);
64+
--accent-foreground: oklch(0.208 0.042 265.755);
65+
--destructive: oklch(0.577 0.245 27.325);
66+
--border: oklch(0.929 0.013 255.508);
67+
--input: oklch(0.929 0.013 255.508);
68+
--ring: oklch(0.704 0.04 256.788);
69+
--chart-1: oklch(0.646 0.222 41.116);
70+
--chart-2: oklch(0.6 0.118 184.704);
71+
--chart-3: oklch(0.398 0.07 227.392);
72+
--chart-4: oklch(0.828 0.189 84.429);
73+
--chart-5: oklch(0.769 0.188 70.08);
74+
--sidebar: oklch(0.984 0.003 247.858);
75+
--sidebar-foreground: oklch(0.129 0.042 264.695);
76+
--sidebar-primary: oklch(0.208 0.042 265.755);
77+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
78+
--sidebar-accent: oklch(0.968 0.007 247.896);
79+
--sidebar-accent-foreground: oklch(0.208 0.042 265.755);
80+
--sidebar-border: oklch(0.929 0.013 255.508);
81+
--sidebar-ring: oklch(0.704 0.04 256.788);
2082
}
2183

22-
body {
23-
background: var(--background);
24-
color: var(--foreground);
25-
font-family: Arial, Helvetica, sans-serif;
84+
.dark {
85+
--background: oklch(0.129 0.042 264.695);
86+
--foreground: oklch(0.984 0.003 247.858);
87+
--card: oklch(0.208 0.042 265.755);
88+
--card-foreground: oklch(0.984 0.003 247.858);
89+
--popover: oklch(0.208 0.042 265.755);
90+
--popover-foreground: oklch(0.984 0.003 247.858);
91+
--primary: oklch(0.929 0.013 255.508);
92+
--primary-foreground: oklch(0.208 0.042 265.755);
93+
--secondary: oklch(0.279 0.041 260.031);
94+
--secondary-foreground: oklch(0.984 0.003 247.858);
95+
--muted: oklch(0.279 0.041 260.031);
96+
--muted-foreground: oklch(0.704 0.04 256.788);
97+
--accent: oklch(0.279 0.041 260.031);
98+
--accent-foreground: oklch(0.984 0.003 247.858);
99+
--destructive: oklch(0.704 0.191 22.216);
100+
--border: oklch(1 0 0 / 10%);
101+
--input: oklch(1 0 0 / 15%);
102+
--ring: oklch(0.551 0.027 264.364);
103+
--chart-1: oklch(0.488 0.243 264.376);
104+
--chart-2: oklch(0.696 0.17 162.48);
105+
--chart-3: oklch(0.769 0.188 70.08);
106+
--chart-4: oklch(0.627 0.265 303.9);
107+
--chart-5: oklch(0.645 0.246 16.439);
108+
--sidebar: oklch(0.208 0.042 265.755);
109+
--sidebar-foreground: oklch(0.984 0.003 247.858);
110+
--sidebar-primary: oklch(0.488 0.243 264.376);
111+
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
112+
--sidebar-accent: oklch(0.279 0.041 260.031);
113+
--sidebar-accent-foreground: oklch(0.984 0.003 247.858);
114+
--sidebar-border: oklch(1 0 0 / 10%);
115+
--sidebar-ring: oklch(0.551 0.027 264.364);
116+
}
117+
118+
@layer base {
119+
* {
120+
@apply border-border outline-ring/50;
121+
}
122+
body {
123+
@apply bg-background text-foreground;
124+
}
26125
}

components.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"aliases": {
15+
"components": "@/components",
16+
"utils": "@/lib/utils",
17+
"ui": "@/components/ui",
18+
"lib": "@/lib",
19+
"hooks": "@/hooks"
20+
},
21+
"registries": {}
22+
}

lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
}

0 commit comments

Comments
 (0)