Skip to content

Commit c1c1456

Browse files
committed
feature: add shadcn ui components
1 parent 0b45c50 commit c1c1456

22 files changed

+4987
-940
lines changed

ui-react/app/globals.css

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
@import "tailwindcss";
2+
@import "tw-animate-css";
3+
4+
@custom-variant dark (&:is(.dark *));
5+
6+
:root {
7+
--background: oklch(0.13 0 0);
8+
--foreground: oklch(0.98 0 0);
9+
--card: oklch(0.17 0 0);
10+
--card-foreground: oklch(0.98 0 0);
11+
--popover: oklch(0.17 0 0);
12+
--popover-foreground: oklch(0.98 0 0);
13+
--primary: oklch(0.65 0.25 262);
14+
--primary-foreground: oklch(0.98 0 0);
15+
--secondary: oklch(0.23 0 0);
16+
--secondary-foreground: oklch(0.98 0 0);
17+
--muted: oklch(0.23 0 0);
18+
--muted-foreground: oklch(0.6 0 0);
19+
--accent: oklch(0.27 0 0);
20+
--accent-foreground: oklch(0.98 0 0);
21+
--destructive: oklch(0.55 0.22 25);
22+
--destructive-foreground: oklch(0.98 0 0);
23+
--border: oklch(0.27 0 0);
24+
--input: oklch(0.27 0 0);
25+
--ring: oklch(0.65 0.25 262);
26+
--chart-1: oklch(0.65 0.25 262);
27+
--chart-2: oklch(0.7 0.2 180);
28+
--chart-3: oklch(0.75 0.18 80);
29+
--chart-4: oklch(0.6 0.22 310);
30+
--chart-5: oklch(0.68 0.24 30);
31+
--radius: 0.5rem;
32+
--sidebar: oklch(0.985 0 0);
33+
--sidebar-foreground: oklch(0.145 0 0);
34+
--sidebar-primary: oklch(0.205 0 0);
35+
--sidebar-primary-foreground: oklch(0.985 0 0);
36+
--sidebar-accent: oklch(0.97 0 0);
37+
--sidebar-accent-foreground: oklch(0.205 0 0);
38+
--sidebar-border: oklch(0.922 0 0);
39+
--sidebar-ring: oklch(0.708 0 0);
40+
}
41+
42+
.dark {
43+
--background: oklch(0.13 0 0);
44+
--foreground: oklch(0.98 0 0);
45+
--card: oklch(0.17 0 0);
46+
--card-foreground: oklch(0.98 0 0);
47+
--popover: oklch(0.17 0 0);
48+
--popover-foreground: oklch(0.98 0 0);
49+
--primary: oklch(0.65 0.25 262);
50+
--primary-foreground: oklch(0.98 0 0);
51+
--secondary: oklch(0.23 0 0);
52+
--secondary-foreground: oklch(0.98 0 0);
53+
--muted: oklch(0.23 0 0);
54+
--muted-foreground: oklch(0.6 0 0);
55+
--accent: oklch(0.27 0 0);
56+
--accent-foreground: oklch(0.98 0 0);
57+
--destructive: oklch(0.55 0.22 25);
58+
--destructive-foreground: oklch(0.98 0 0);
59+
--border: oklch(0.27 0 0);
60+
--input: oklch(0.27 0 0);
61+
--ring: oklch(0.65 0.25 262);
62+
--chart-1: oklch(0.65 0.25 262);
63+
--chart-2: oklch(0.7 0.2 180);
64+
--chart-3: oklch(0.75 0.18 80);
65+
--chart-4: oklch(0.6 0.22 310);
66+
--chart-5: oklch(0.68 0.24 30);
67+
--sidebar: oklch(0.205 0 0);
68+
--sidebar-foreground: oklch(0.985 0 0);
69+
--sidebar-primary: oklch(0.488 0.243 264.376);
70+
--sidebar-primary-foreground: oklch(0.985 0 0);
71+
--sidebar-accent: oklch(0.269 0 0);
72+
--sidebar-accent-foreground: oklch(0.985 0 0);
73+
--sidebar-border: oklch(0.269 0 0);
74+
--sidebar-ring: oklch(0.439 0 0);
75+
}
76+
77+
@theme inline {
78+
/* optional: --font-sans, --font-serif, --font-mono if they are applied in the layout.tsx */
79+
--color-background: var(--background);
80+
--color-foreground: var(--foreground);
81+
--color-card: var(--card);
82+
--color-card-foreground: var(--card-foreground);
83+
--color-popover: var(--popover);
84+
--color-popover-foreground: var(--popover-foreground);
85+
--color-primary: var(--primary);
86+
--color-primary-foreground: var(--primary-foreground);
87+
--color-secondary: var(--secondary);
88+
--color-secondary-foreground: var(--secondary-foreground);
89+
--color-muted: var(--muted);
90+
--color-muted-foreground: var(--muted-foreground);
91+
--color-accent: var(--accent);
92+
--color-accent-foreground: var(--accent-foreground);
93+
--color-destructive: var(--destructive);
94+
--color-destructive-foreground: var(--destructive-foreground);
95+
--color-border: var(--border);
96+
--color-input: var(--input);
97+
--color-ring: var(--ring);
98+
--color-chart-1: var(--chart-1);
99+
--color-chart-2: var(--chart-2);
100+
--color-chart-3: var(--chart-3);
101+
--color-chart-4: var(--chart-4);
102+
--color-chart-5: var(--chart-5);
103+
--radius-sm: calc(var(--radius) - 4px);
104+
--radius-md: calc(var(--radius) - 2px);
105+
--radius-lg: var(--radius);
106+
--radius-xl: calc(var(--radius) + 4px);
107+
--color-sidebar: var(--sidebar);
108+
--color-sidebar-foreground: var(--sidebar-foreground);
109+
--color-sidebar-primary: var(--sidebar-primary);
110+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
111+
--color-sidebar-accent: var(--sidebar-accent);
112+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
113+
--color-sidebar-border: var(--sidebar-border);
114+
--color-sidebar-ring: var(--sidebar-ring);
115+
}
116+
117+
@layer base {
118+
* {
119+
@apply border-border outline-ring/50;
120+
}
121+
body {
122+
@apply bg-background text-foreground;
123+
}
124+
125+
/* Custom scrollbar styling to match dark theme */
126+
/* Webkit browsers (Chrome, Safari, Edge) */
127+
*::-webkit-scrollbar {
128+
width: 8px;
129+
height: 8px;
130+
}
131+
132+
*::-webkit-scrollbar-track {
133+
background: oklch(0.17 0 0);
134+
border-radius: 4px;
135+
}
136+
137+
*::-webkit-scrollbar-thumb {
138+
background: oklch(0.27 0 0);
139+
border-radius: 4px;
140+
border: 2px solid oklch(0.17 0 0);
141+
}
142+
143+
*::-webkit-scrollbar-thumb:hover {
144+
background: oklch(0.35 0 0);
145+
}
146+
147+
*::-webkit-scrollbar-thumb:active {
148+
background: oklch(0.45 0 0);
149+
}
150+
151+
/* Firefox */
152+
* {
153+
scrollbar-width: thin;
154+
scrollbar-color: oklch(0.27 0 0) oklch(0.17 0 0);
155+
}
156+
}

ui-react/biome.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
"quoteStyle": "single"
6464
}
6565
},
66+
"css": {
67+
"parser": {
68+
"tailwindDirectives": true
69+
}
70+
},
6671
"json": {
6772
"formatter": {
6873
"enabled": true,

ui-react/package.json

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,56 @@
1515
"biome:ci": "biome ci ."
1616
},
1717
"dependencies": {
18-
"@radix-ui/react-dialog": "^1.1.15",
1918
"@radix-ui/react-icons": "^1.3.2",
20-
"@radix-ui/react-scroll-area": "^1.2.10",
21-
"@radix-ui/react-select": "^2.2.6",
22-
"@radix-ui/react-slot": "^1.2.4",
2319
"@tauri-apps/api": "^2.9.0",
2420
"class-variance-authority": "^0.7.1",
2521
"clsx": "^2.1.1",
2622
"lucide-react": "^0.553.0",
2723
"react": "^19.1.1",
2824
"react-dom": "^19.1.1",
2925
"tailwind-merge": "^3.4.0",
30-
"tailwindcss-animate": "^1.0.7"
26+
"tailwindcss-animate": "^1.0.7",
27+
"@hookform/resolvers": "^3.10.0",
28+
"@radix-ui/react-accordion": "1.2.2",
29+
"@radix-ui/react-alert-dialog": "1.1.4",
30+
"@radix-ui/react-aspect-ratio": "1.1.1",
31+
"@radix-ui/react-avatar": "1.1.2",
32+
"@radix-ui/react-checkbox": "1.1.3",
33+
"@radix-ui/react-collapsible": "1.1.2",
34+
"@radix-ui/react-context-menu": "2.2.4",
35+
"@radix-ui/react-dialog": "1.1.4",
36+
"@radix-ui/react-dropdown-menu": "2.1.4",
37+
"@radix-ui/react-hover-card": "1.1.4",
38+
"@radix-ui/react-label": "2.1.1",
39+
"@radix-ui/react-menubar": "1.1.4",
40+
"@radix-ui/react-navigation-menu": "1.2.3",
41+
"@radix-ui/react-popover": "1.1.4",
42+
"@radix-ui/react-progress": "1.1.1",
43+
"@radix-ui/react-radio-group": "1.2.2",
44+
"@radix-ui/react-scroll-area": "1.2.2",
45+
"@radix-ui/react-select": "2.1.4",
46+
"@radix-ui/react-separator": "1.1.1",
47+
"@radix-ui/react-slider": "1.2.2",
48+
"@radix-ui/react-slot": "1.1.1",
49+
"@radix-ui/react-switch": "1.1.2",
50+
"@radix-ui/react-tabs": "1.1.2",
51+
"@radix-ui/react-toast": "1.2.4",
52+
"@radix-ui/react-toggle": "1.1.1",
53+
"@radix-ui/react-toggle-group": "1.1.1",
54+
"@radix-ui/react-tooltip": "1.1.6",
55+
"@vercel/analytics": "1.3.1",
56+
"autoprefixer": "^10.4.20",
57+
"cmdk": "1.0.4",
58+
"date-fns": "4.1.0",
59+
"embla-carousel-react": "8.5.1",
60+
"input-otp": "1.4.1",
61+
"react-day-picker": "9.8.0",
62+
"react-hook-form": "^7.60.0",
63+
"react-resizable-panels": "^2.1.7",
64+
"recharts": "2.15.4",
65+
"sonner": "^1.7.4",
66+
"vaul": "^0.9.9",
67+
"zod": "3.25.76"
3168
},
3269
"devDependencies": {
3370
"@biomejs/biome": "^2.3.4",
@@ -44,6 +81,7 @@
4481
"postcss": "^8.5.6",
4582
"tailwindcss": "^4.1.17",
4683
"typescript": "^5.9.3",
84+
"tw-animate-css": "1.3.3",
4785
"vite": "^7.1.7"
4886
}
4987
}

0 commit comments

Comments
 (0)