Skip to content

Commit c3c1039

Browse files
authored
feat(app): redesign cloud settings (anomalyco#1643)
* chore(app): install shadcn/ui * feat(app): redesign cloud settings
1 parent 8764fb7 commit c3c1039

40 files changed

Lines changed: 6118 additions & 1313 deletions

‎apps/app/components.json‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "base-luma",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/index.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"iconLibrary": "lucide",
14+
"rtl": true,
15+
"aliases": {
16+
"components": "@/components",
17+
"utils": "@/lib/utils",
18+
"ui": "@/components/ui",
19+
"lib": "@/lib",
20+
"hooks": "@/hooks"
21+
},
22+
"menuColor": "inverted-translucent",
23+
"menuAccent": "subtle",
24+
"registries": {}
25+
}

‎apps/app/package.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@
3636
},
3737
"dependencies": {
3838
"@ai-sdk/react": "^3.0.148",
39+
"@base-ui/react": "^1.4.1",
3940
"@codemirror/commands": "^6.8.0",
4041
"@codemirror/lang-markdown": "^6.3.3",
4142
"@codemirror/language": "^6.11.0",
4243
"@codemirror/state": "^6.5.2",
4344
"@codemirror/view": "^6.38.0",
45+
"@fontsource-variable/geist": "^5.2.8",
46+
"@fontsource-variable/ibm-plex-sans": "^5.2.8",
4447
"@lexical/react": "^0.35.0",
4548
"@opencode-ai/sdk": "^1.4.9",
4649
"@openwork/types": "workspace:*",
@@ -56,6 +59,8 @@
5659
"@tauri-apps/plugin-process": "~2.3.1",
5760
"@tauri-apps/plugin-updater": "~2.9.0",
5861
"ai": "^6.0.146",
62+
"class-variance-authority": "^0.7.1",
63+
"clsx": "^2.1.1",
5964
"fuzzysort": "^3.1.0",
6065
"jsonc-parser": "^3.2.1",
6166
"lexical": "^0.35.0",
@@ -66,11 +71,15 @@
6671
"react-markdown": "^10.1.0",
6772
"react-router-dom": "^7.14.1",
6873
"remark-gfm": "^4.0.1",
74+
"shadcn": "^4.6.0",
6975
"streamdown": "^2.5.0",
76+
"tailwind-merge": "^3.5.0",
77+
"tw-animate-css": "^1.4.0",
7078
"zustand": "^5.0.12"
7179
},
7280
"devDependencies": {
7381
"@tailwindcss/vite": "^4.1.18",
82+
"@types/node": "^25.6.0",
7483
"@types/react": "^19.2.2",
7584
"@types/react-dom": "^19.2.2",
7685
"@vitejs/plugin-react": "^5.0.4",

‎apps/app/src/app/index.css‎

Lines changed: 186 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,100 @@
33

44
@import "../styles/colors.css";
55

6+
@import "tw-animate-css";
7+
8+
@import "shadcn/tailwind.css";
9+
10+
@import "@fontsource-variable/geist";
11+
12+
@import "@fontsource-variable/ibm-plex-sans";
13+
14+
@custom-variant dark (&:is(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *));
15+
616
:root {
717
color-scheme: light;
8-
--dls-surface: #ffffff;
9-
--dls-sidebar: #f9fafb;
10-
--dls-app-bg: #ffffff;
11-
--dls-border: #f3f4f6;
12-
--dls-accent: #011627;
13-
--dls-accent-hover: #000000;
14-
--dls-accent-rgb: 1 22 39;
15-
--dls-text-primary: #111827;
16-
--dls-text-secondary: #6b7280;
17-
--dls-hover: #f3f4f6;
18-
--dls-active: #eef2f7;
18+
--dls-surface: var(--slate-1);
19+
--dls-sidebar: var(--slate-2);
20+
--dls-app-bg: var(--slate-1);
21+
--dls-background: var(--slate-1);
22+
--dls-canvas: var(--slate-2);
23+
--dls-surface-muted: var(--slate-3);
24+
--dls-border: var(--slate-6);
25+
--dls-accent: var(--blue-9);
26+
--dls-accent-hover: var(--blue-10);
27+
--dls-accent-rgb: 0 144 255;
28+
--dls-secondary-rgb: 96 100 108;
29+
--dls-text-primary: var(--slate-12);
30+
--dls-text-secondary: var(--slate-11);
31+
--dls-hover: var(--slate-3);
32+
--dls-active: var(--slate-5);
1933
--dls-radius: 16px;
2034
--dls-radius-lg: 24px;
2135
--dls-shell-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
2236
--dls-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
37+
--background: var(--slate-1);
38+
--foreground: var(--slate-12);
39+
--card: var(--slate-1);
40+
--card-foreground: var(--slate-12);
41+
--popover: var(--slate-1);
42+
--popover-foreground: var(--slate-12);
43+
--primary-foreground: white;
44+
--secondary: var(--slate-3);
45+
--secondary-foreground: var(--slate-12);
46+
--muted: var(--slate-3);
47+
--muted-foreground: var(--slate-11);
48+
--accent: var(--slate-3);
49+
--accent-foreground: var(--slate-12);
50+
--destructive: var(--red-9);
51+
--border: var(--slate-5);
52+
--input: var(--slate-6);
53+
--ring: var(--slate-8);
54+
--chart-1: var(--sky-9);
55+
--chart-2: var(--blue-9);
56+
--chart-3: var(--indigo-9);
57+
--chart-4: var(--violet-9);
58+
--chart-5: var(--purple-9);
59+
--radius: 0.45rem;
60+
--sidebar: var(--slate-2);
61+
--sidebar-foreground: var(--slate-12);
62+
--sidebar-primary: var(--blue-9);
63+
--sidebar-primary-foreground: white;
64+
--sidebar-accent: var(--slate-3);
65+
--sidebar-accent-foreground: var(--slate-12);
66+
--sidebar-border: var(--slate-6);
67+
--sidebar-ring: var(--slate-8);
2368
}
2469

2570
[data-theme="dark"] {
2671
color-scheme: dark;
27-
--dls-surface: #121212;
28-
--dls-sidebar: #1a1a1a;
29-
--dls-app-bg: #161616;
30-
--dls-border: #262626;
31-
--dls-accent: #3b82f6;
32-
--dls-accent-hover: #2563eb;
33-
--dls-accent-rgb: 59 130 246;
34-
--dls-text-primary: #ededed;
35-
--dls-text-secondary: #9ca3af;
36-
--dls-hover: #1f1f1f;
37-
--dls-active: #2d2d2d;
72+
--dls-surface: var(--slate-1);
73+
--dls-sidebar: var(--slate-2);
74+
--dls-app-bg: var(--slate-1);
75+
--dls-background: var(--slate-1);
76+
--dls-canvas: var(--slate-2);
77+
--dls-surface-muted: var(--slate-3);
78+
--dls-border: var(--slate-6);
79+
--dls-accent: var(--blue-9);
80+
--dls-accent-hover: var(--blue-10);
81+
--dls-accent-rgb: 59 142 247;
82+
--dls-secondary-rgb: 176 180 186;
83+
--dls-text-primary: var(--slate-12);
84+
--dls-text-secondary: var(--slate-11);
85+
--dls-hover: var(--slate-3);
86+
--dls-active: var(--slate-5);
3887
--dls-shell-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
3988
--dls-card-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
4089
}
4190

4291
html,
4392
body {
4493
height: 100%;
94+
overflow: hidden;
4595
}
4696

4797
#root {
4898
height: 100%;
99+
overflow: hidden;
49100
}
50101

51102
html {
@@ -105,7 +156,7 @@ body {
105156
justify-content: center;
106157
border-radius: 9999px;
107158
background: var(--dls-accent);
108-
color: #ffffff;
159+
color: white;
109160
box-shadow: 0 8px 20px -16px rgba(var(--dls-accent-rgb), 0.45);
110161
}
111162

@@ -160,53 +211,53 @@ body {
160211
}
161212

162213
.ow-status-pill-positive {
163-
border: 1px solid rgba(16, 185, 129, 0.16);
164-
background: #ecfdf5;
165-
color: #047857;
214+
border: 1px solid var(--green-a6);
215+
background: var(--green-3);
216+
color: var(--green-11);
166217
}
167218

168219
.ow-status-pill-warning {
169-
border: 1px solid rgba(245, 158, 11, 0.16);
170-
background: #fffbeb;
171-
color: #b45309;
220+
border: 1px solid var(--amber-a6);
221+
background: var(--amber-3);
222+
color: var(--amber-11);
172223
}
173224

174225
.ow-status-pill-neutral {
175-
border: 1px solid #e5e7eb;
176-
background: #f9fafb;
177-
color: #6b7280;
226+
border: 1px solid var(--slate-6);
227+
background: var(--slate-2);
228+
color: var(--slate-11);
178229
}
179230

180231
.ow-icon-tile {
181232
display: inline-flex;
182233
align-items: center;
183234
justify-content: center;
184235
border-radius: 0.85rem;
185-
background: #f4f6f8;
186-
color: #011627;
236+
background: var(--slate-3);
237+
color: var(--slate-12);
187238
}
188239

189240
.ow-icon-tile-muted {
190241
display: inline-flex;
191242
align-items: center;
192243
justify-content: center;
193244
border-radius: 0.85rem;
194-
background: #f1f5f9;
195-
color: #6b7280;
245+
background: var(--slate-3);
246+
color: var(--slate-11);
196247
}
197248

198249
.ow-input {
199250
appearance: none;
200251
width: 100%;
201252
border: 0;
202253
border-radius: 0.9rem;
203-
background: #fbfbfc;
204-
box-shadow: inset 0 0 0 1px #eceef1;
254+
background: var(--slate-1);
255+
box-shadow: inset 0 0 0 1px var(--slate-6);
205256
color: var(--dls-text-primary);
206257
}
207258

208259
.ow-input::placeholder {
209-
color: #9ca3af;
260+
color: var(--slate-11);
210261
}
211262

212263
.ow-input:focus {
@@ -256,22 +307,22 @@ select:disabled {
256307
/* Highlight animation for just-saved command */
257308
@keyframes command-highlight {
258309
0% {
259-
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
260-
border-color: rgba(99, 102, 241, 0.8);
310+
box-shadow: 0 0 0 0 var(--indigo-a9);
311+
border-color: var(--indigo-a9);
261312
}
262313
50% {
263-
box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
264-
border-color: rgba(99, 102, 241, 0.4);
314+
box-shadow: 0 0 0 8px var(--indigo-a1);
315+
border-color: var(--indigo-a7);
265316
}
266317
100% {
267-
box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
268-
border-color: rgba(255, 255, 255, 0.08);
318+
box-shadow: 0 0 0 0 var(--indigo-a1);
319+
border-color: var(--slate-a3);
269320
}
270321
}
271322

272323
.command-just-saved {
273324
animation: command-highlight 2s ease-out;
274-
border-color: rgba(99, 102, 241, 0.8);
325+
border-color: var(--indigo-a9);
275326
}
276327

277328
@keyframes progress-shimmer {
@@ -317,3 +368,92 @@ select:disabled {
317368
background-color: rgba(var(--dls-accent-rgb), 0.6);
318369
}
319370
}
371+
372+
.dark,
373+
[data-theme="dark"] {
374+
--background: var(--slate-1);
375+
--foreground: var(--slate-12);
376+
--card: var(--slate-2);
377+
--card-foreground: var(--slate-12);
378+
--popover: var(--slate-2);
379+
--popover-foreground: var(--slate-12);
380+
--primary-foreground: var(--slate-12);
381+
--secondary: var(--slate-3);
382+
--secondary-foreground: var(--slate-12);
383+
--muted: var(--slate-3);
384+
--muted-foreground: var(--slate-10);
385+
--accent: var(--slate-3);
386+
--accent-foreground: var(--slate-12);
387+
--destructive: var(--red-9);
388+
--border: var(--slate-3);
389+
--input: var(--slate-6);
390+
--ring: var(--slate-8);
391+
--chart-1: var(--sky-9);
392+
--chart-2: var(--blue-9);
393+
--chart-3: var(--indigo-9);
394+
--chart-4: var(--violet-9);
395+
--chart-5: var(--purple-9);
396+
--sidebar: var(--slate-2);
397+
--sidebar-foreground: var(--slate-12);
398+
--sidebar-primary: var(--blue-9);
399+
--sidebar-primary-foreground: var(--slate-12);
400+
--sidebar-accent: var(--slate-3);
401+
--sidebar-accent-foreground: var(--slate-12);
402+
--sidebar-border: var(--slate-6);
403+
--sidebar-ring: var(--slate-8);
404+
}
405+
406+
@theme inline {
407+
--font-sans: 'Geist Variable', sans-serif;
408+
--font-heading: 'IBM Plex Sans Variable', sans-serif;
409+
--color-sidebar-ring: var(--sidebar-ring);
410+
--color-sidebar-border: var(--sidebar-border);
411+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
412+
--color-sidebar-accent: var(--sidebar-accent);
413+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
414+
--color-sidebar-primary: var(--sidebar-primary);
415+
--color-sidebar-foreground: var(--sidebar-foreground);
416+
--color-sidebar: var(--sidebar);
417+
--color-chart-5: var(--chart-5);
418+
--color-chart-4: var(--chart-4);
419+
--color-chart-3: var(--chart-3);
420+
--color-chart-2: var(--chart-2);
421+
--color-chart-1: var(--chart-1);
422+
--color-ring: var(--ring);
423+
--color-input: var(--input);
424+
--color-border: var(--border);
425+
--color-destructive: var(--destructive);
426+
--color-accent-foreground: var(--accent-foreground);
427+
--color-accent: var(--accent);
428+
--color-muted-foreground: var(--muted-foreground);
429+
--color-muted: var(--muted);
430+
--color-secondary-foreground: var(--secondary-foreground);
431+
--color-secondary: var(--secondary);
432+
--color-primary-foreground: var(--primary-foreground);
433+
--color-primary: var(--dls-accent);
434+
--color-popover-foreground: var(--popover-foreground);
435+
--color-popover: var(--popover);
436+
--color-card-foreground: var(--card-foreground);
437+
--color-card: var(--card);
438+
--color-foreground: var(--foreground);
439+
--color-background: var(--background);
440+
--radius-sm: calc(var(--radius) * 0.6);
441+
--radius-md: calc(var(--radius) * 0.8);
442+
--radius-lg: var(--radius);
443+
--radius-xl: calc(var(--radius) * 1.4);
444+
--radius-2xl: calc(var(--radius) * 1.8);
445+
--radius-3xl: calc(var(--radius) * 2.2);
446+
--radius-4xl: calc(var(--radius) * 2.6);
447+
}
448+
449+
@layer base {
450+
* {
451+
@apply border-border outline-ring/50;
452+
}
453+
body {
454+
@apply bg-background text-foreground;
455+
}
456+
html {
457+
@apply font-sans;
458+
}
459+
}

0 commit comments

Comments
 (0)