CSS-variable multi-theme system (default + warm) × {light, dark, system}; per-user theme/theme_mode columns; no-flash pre-paint script; useTheme hook + ThemePicker component on /settings.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
200 lines
7.0 KiB
CSS
200 lines
7.0 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
--font-heading: var(--font-sans);
|
|
--font-sans: var(--font-sans);
|
|
--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);
|
|
}
|
|
|
|
:root {
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.145 0 0);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.145 0 0);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.145 0 0);
|
|
--primary: oklch(0.205 0 0);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: oklch(0.97 0 0);
|
|
--secondary-foreground: oklch(0.205 0 0);
|
|
--muted: oklch(0.97 0 0);
|
|
--muted-foreground: oklch(0.556 0 0);
|
|
--accent: oklch(0.97 0 0);
|
|
--accent-foreground: oklch(0.205 0 0);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.922 0 0);
|
|
--input: oklch(0.922 0 0);
|
|
--ring: oklch(0.708 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
--sidebar-primary: oklch(0.205 0 0);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.97 0 0);
|
|
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
--sidebar-border: oklch(0.922 0 0);
|
|
--sidebar-ring: oklch(0.708 0 0);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.145 0 0);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.205 0 0);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.205 0 0);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.922 0 0);
|
|
--primary-foreground: oklch(0.205 0 0);
|
|
--secondary: oklch(0.269 0 0);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.269 0 0);
|
|
--muted-foreground: oklch(0.708 0 0);
|
|
--accent: oklch(0.269 0 0);
|
|
--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.556 0 0);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--sidebar: oklch(0.205 0 0);
|
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.269 0 0);
|
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.556 0 0);
|
|
}
|
|
|
|
/* Warm theme — light */
|
|
[data-theme="warm"] {
|
|
--background: oklch(0.98 0.012 60);
|
|
--foreground: oklch(0.18 0.03 50);
|
|
--card: oklch(0.97 0.014 58);
|
|
--card-foreground: oklch(0.18 0.03 50);
|
|
--popover: oklch(0.97 0.014 58);
|
|
--popover-foreground: oklch(0.18 0.03 50);
|
|
--primary: oklch(0.52 0.18 40);
|
|
--primary-foreground: oklch(0.98 0.01 60);
|
|
--secondary: oklch(0.92 0.02 60);
|
|
--secondary-foreground: oklch(0.25 0.04 45);
|
|
--muted: oklch(0.93 0.018 58);
|
|
--muted-foreground: oklch(0.52 0.04 50);
|
|
--accent: oklch(0.90 0.03 55);
|
|
--accent-foreground: oklch(0.22 0.04 45);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.88 0.025 60);
|
|
--input: oklch(0.88 0.025 60);
|
|
--ring: oklch(0.65 0.12 45);
|
|
--chart-1: oklch(0.72 0.16 40);
|
|
--chart-2: oklch(0.62 0.14 55);
|
|
--chart-3: oklch(0.52 0.12 45);
|
|
--chart-4: oklch(0.45 0.10 40);
|
|
--chart-5: oklch(0.35 0.08 35);
|
|
--radius: 0.625rem;
|
|
--sidebar: oklch(0.94 0.018 58);
|
|
--sidebar-foreground: oklch(0.18 0.03 50);
|
|
--sidebar-primary: oklch(0.52 0.18 40);
|
|
--sidebar-primary-foreground: oklch(0.98 0.01 60);
|
|
--sidebar-accent: oklch(0.90 0.03 55);
|
|
--sidebar-accent-foreground: oklch(0.22 0.04 45);
|
|
--sidebar-border: oklch(0.88 0.025 60);
|
|
--sidebar-ring: oklch(0.65 0.12 45);
|
|
}
|
|
|
|
/* Warm theme — dark */
|
|
[data-theme="warm"].dark {
|
|
--background: oklch(0.16 0.025 45);
|
|
--foreground: oklch(0.95 0.015 60);
|
|
--card: oklch(0.22 0.03 48);
|
|
--card-foreground: oklch(0.95 0.015 60);
|
|
--popover: oklch(0.22 0.03 48);
|
|
--popover-foreground: oklch(0.95 0.015 60);
|
|
--primary: oklch(0.78 0.14 50);
|
|
--primary-foreground: oklch(0.16 0.025 45);
|
|
--secondary: oklch(0.28 0.04 50);
|
|
--secondary-foreground: oklch(0.95 0.015 60);
|
|
--muted: oklch(0.28 0.035 48);
|
|
--muted-foreground: oklch(0.68 0.04 55);
|
|
--accent: oklch(0.30 0.045 50);
|
|
--accent-foreground: oklch(0.95 0.015 60);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 15%);
|
|
--ring: oklch(0.55 0.08 50);
|
|
--chart-1: oklch(0.78 0.14 50);
|
|
--chart-2: oklch(0.65 0.12 55);
|
|
--chart-3: oklch(0.52 0.10 48);
|
|
--chart-4: oklch(0.42 0.08 42);
|
|
--chart-5: oklch(0.32 0.06 38);
|
|
--sidebar: oklch(0.20 0.03 47);
|
|
--sidebar-foreground: oklch(0.95 0.015 60);
|
|
--sidebar-primary: oklch(0.78 0.14 50);
|
|
--sidebar-primary-foreground: oklch(0.16 0.025 45);
|
|
--sidebar-accent: oklch(0.30 0.045 50);
|
|
--sidebar-accent-foreground: oklch(0.95 0.015 60);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.55 0.08 50);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
html {
|
|
@apply font-sans;
|
|
}
|
|
} |