M1 UI: shadcn + TeamUp design language
Initialize shadcn/ui (radix-nova, Tailwind v4) in client/ and rebuild the M1 interface on the design language: - Token layer recolored in index.css: light "calm command center" content surface, rationed indigo brand, the deep-indigo sidebar, the load-bearing seat-state triad (--color-seat-human slate / -open amber / -ai indigo) + teal "approved" / amber "held", Hanken Grotesk (variable) as the production font. - App shell: deep-indigo sidebar (Board / Cartable / Org-chart-soon nav + sign out) on a light content area; StatusDot uses the seat-state tokens. - LoginPage: Card-based sign-in / first-owner bootstrap, toast (sonner) errors. - BoardPage: shadcn Card columns (backlog→in progress→in review→done), Badge task types, Select to move, Avatar/Assign-to-me, and the cartable panel — wired to the M1 API. - Path alias @ -> src (tsconfig paths + vite); dropped baseUrl (deprecated in TS 6). Components added via the shadcn CLI: button, card, badge, input, label, select, separator, avatar, skeleton, sonner. Client `npm run build` is green (tsc + vite). Still pending a live click-through. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+143
-2
@@ -1,10 +1,151 @@
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@import "shadcn/tailwind.css";
|
||||
@import "@fontsource-variable/hanken-grotesk";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--radius: 0.625rem;
|
||||
|
||||
/* Light content surface — the "calm command center" body. */
|
||||
--background: oklch(0.99 0.003 280);
|
||||
--foreground: oklch(0.21 0.03 280);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.21 0.03 280);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.21 0.03 280);
|
||||
|
||||
/* Brand: indigo, rationed so it always means something. */
|
||||
--primary: oklch(0.511 0.262 276.966);
|
||||
--primary-foreground: oklch(0.985 0 0);
|
||||
--secondary: oklch(0.967 0.012 280);
|
||||
--secondary-foreground: oklch(0.3 0.05 280);
|
||||
--muted: oklch(0.967 0.006 280);
|
||||
--muted-foreground: oklch(0.52 0.03 280);
|
||||
--accent: oklch(0.95 0.03 280);
|
||||
--accent-foreground: oklch(0.4 0.16 277);
|
||||
--destructive: oklch(0.577 0.245 27.325);
|
||||
--border: oklch(0.92 0.01 280);
|
||||
--input: oklch(0.92 0.01 280);
|
||||
--ring: oklch(0.585 0.233 277.117);
|
||||
|
||||
/* Seat-state triad (load-bearing) + status colors. */
|
||||
--seat-human: oklch(0.554 0.046 257.417); /* slate */
|
||||
--seat-open: oklch(0.769 0.188 70.08); /* amber */
|
||||
--seat-ai: oklch(0.585 0.233 277.117); /* indigo */
|
||||
--approved: oklch(0.704 0.14 182.503); /* teal */
|
||||
--held: oklch(0.769 0.188 70.08); /* amber */
|
||||
|
||||
--chart-1: oklch(0.585 0.233 277.117);
|
||||
--chart-2: oklch(0.704 0.14 182.503);
|
||||
--chart-3: oklch(0.769 0.188 70.08);
|
||||
--chart-4: oklch(0.554 0.046 257.417);
|
||||
--chart-5: oklch(0.5 0.13 300);
|
||||
|
||||
/* Deep-indigo command-center sidebar. */
|
||||
--sidebar: oklch(0.257 0.09 281.288);
|
||||
--sidebar-foreground: oklch(0.93 0.02 280);
|
||||
--sidebar-primary: oklch(0.673 0.182 276.935);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.359 0.144 278.697);
|
||||
--sidebar-accent-foreground: oklch(0.97 0.01 280);
|
||||
--sidebar-border: oklch(0.45 0.12 278 / 35%);
|
||||
--sidebar-ring: oklch(0.585 0.233 277.117);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Hanken Grotesk", system-ui, sans-serif;
|
||||
font-family: "Hanken Grotesk Variable", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--font-sans: "Hanken Grotesk Variable", system-ui, sans-serif;
|
||||
--font-heading: var(--font-sans);
|
||||
|
||||
--color-seat-human: var(--seat-human);
|
||||
--color-seat-open: var(--seat-open);
|
||||
--color-seat-ai: var(--seat-ai);
|
||||
--color-approved: var(--approved);
|
||||
--color-held: var(--held);
|
||||
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-ring: var(--ring);
|
||||
--color-input: var(--input);
|
||||
--color-border: var(--border);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-card: var(--card);
|
||||
--color-foreground: var(--foreground);
|
||||
--color-background: var(--background);
|
||||
--radius-sm: calc(var(--radius) * 0.6);
|
||||
--radius-md: calc(var(--radius) * 0.8);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) * 1.4);
|
||||
--radius-2xl: calc(var(--radius) * 1.8);
|
||||
--radius-3xl: calc(var(--radius) * 2.2);
|
||||
--radius-4xl: calc(var(--radius) * 2.6);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.205 0.03 280);
|
||||
--foreground: oklch(0.985 0 0);
|
||||
--card: oklch(0.257 0.04 281);
|
||||
--card-foreground: oklch(0.985 0 0);
|
||||
--popover: oklch(0.257 0.04 281);
|
||||
--popover-foreground: oklch(0.985 0 0);
|
||||
--primary: oklch(0.673 0.182 276.935);
|
||||
--primary-foreground: oklch(0.205 0.03 280);
|
||||
--secondary: oklch(0.3 0.04 280);
|
||||
--secondary-foreground: oklch(0.985 0 0);
|
||||
--muted: oklch(0.3 0.04 280);
|
||||
--muted-foreground: oklch(0.72 0.03 280);
|
||||
--accent: oklch(0.32 0.06 280);
|
||||
--accent-foreground: oklch(0.985 0 0);
|
||||
--destructive: oklch(0.704 0.191 22.216);
|
||||
--border: oklch(1 0 0 / 10%);
|
||||
--input: oklch(1 0 0 / 15%);
|
||||
--ring: oklch(0.585 0.233 277.117);
|
||||
--sidebar: oklch(0.21 0.07 281);
|
||||
--sidebar-foreground: oklch(0.93 0.02 280);
|
||||
--sidebar-primary: oklch(0.673 0.182 276.935);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.359 0.144 278.697);
|
||||
--sidebar-accent-foreground: oklch(0.97 0.01 280);
|
||||
--sidebar-border: oklch(1 0 0 / 10%);
|
||||
--sidebar-ring: oklch(0.585 0.233 277.117);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
html {
|
||||
@apply font-sans;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user