From 1989d2bc093d53c3003fe44f236cca38373aebe0 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 25 Feb 2026 02:23:28 +0800 Subject: [PATCH] style(theme): switch to proto2 oklch palette and card shadows --- app/globals.css | 130 +++++++++++++++++++++++++----------------------- 1 file changed, 68 insertions(+), 62 deletions(-) diff --git a/app/globals.css b/app/globals.css index af79657..14a4f88 100644 --- a/app/globals.css +++ b/app/globals.css @@ -26,7 +26,7 @@ --color-input: var(--input); --color-border: var(--border); --color-destructive: var(--destructive); - --color-accent-foreground: var(--accent-foreground); + --color-destructive-foreground: var(--destructive-foreground); --color-accent: var(--accent); --color-muted-foreground: var(--muted-foreground); --color-muted: var(--muted); @@ -48,72 +48,78 @@ } :root { - --radius: 0.625rem; - --background: oklch(0.985 0.005 266); - --foreground: oklch(0.14 0.05 266); + --radius: 0.75rem; + --background: oklch(0.99 0.01 45); + --foreground: oklch(0.14 0.01 45); --card: oklch(1 0 0); - --card-foreground: oklch(0.14 0.05 266); + --card-foreground: oklch(0.14 0.01 45); --popover: oklch(1 0 0); - --popover-foreground: oklch(0.14 0.05 266); - --primary: oklch(0.55 0.22 266); - --primary-foreground: oklch(0.98 0 0); - --secondary: oklch(0.96 0.03 266); - --secondary-foreground: oklch(0.35 0.1 266); - --muted: oklch(0.96 0.02 266); - --muted-foreground: oklch(0.55 0.05 266); - --accent: oklch(0.95 0.04 266); - --accent-foreground: oklch(0.35 0.1 266); - --destructive: oklch(0.6 0.2 25); - --border: oklch(0.92 0.02 266); - --input: oklch(0.92 0.02 266); - --ring: oklch(0.55 0.22 266); - --chart-1: oklch(0.55 0.22 266); - --chart-2: oklch(0.65 0.18 190); - --chart-3: oklch(0.7 0.18 145); - --chart-4: oklch(0.75 0.18 70); - --chart-5: oklch(0.65 0.22 340); - --sidebar: oklch(0.985 0.005 266); - --sidebar-foreground: oklch(0.14 0.05 266); - --sidebar-primary: oklch(0.55 0.22 266); - --sidebar-primary-foreground: oklch(0.98 0 0); - --sidebar-accent: oklch(0.95 0.04 266); - --sidebar-accent-foreground: oklch(0.35 0.1 266); - --sidebar-border: oklch(0.92 0.02 266); - --sidebar-ring: oklch(0.55 0.22 266); + --popover-foreground: oklch(0.14 0.01 45); + --primary: oklch(0.65 0.22 45); + --primary-foreground: oklch(0.98 0.01 45); + --secondary: oklch(0.94 0.02 45); + --secondary-foreground: oklch(0.25 0.02 45); + --muted: oklch(0.94 0.02 45); + --muted-foreground: oklch(0.45 0.02 45); + --accent: oklch(0.94 0.02 45); + --accent-foreground: oklch(0.25 0.02 45); + --destructive: oklch(0.60 0.20 25); + --destructive-foreground: oklch(0.98 0.01 45); + --border: oklch(0.90 0.02 45); + --input: oklch(0.90 0.02 45); + --ring: oklch(0.65 0.22 45); + --chart-1: oklch(0.65 0.22 45); + --chart-2: oklch(0.60 0.15 180); + --chart-3: oklch(0.55 0.15 300); + --chart-4: oklch(0.75 0.18 85); + --chart-5: oklch(0.65 0.18 15); + --sidebar: oklch(0.97 0.01 45); + --sidebar-foreground: oklch(0.25 0.02 45); + --sidebar-primary: oklch(0.65 0.22 45); + --sidebar-primary-foreground: oklch(0.98 0.01 45); + --sidebar-accent: oklch(0.93 0.02 45); + --sidebar-accent-foreground: oklch(0.14 0.01 45); + --sidebar-border: oklch(0.90 0.02 45); + --sidebar-ring: oklch(0.65 0.22 45); + --shadow-card: 0 2px 8px -2px rgba(0,0,0,0.04), 0 4px 16px -4px rgba(0,0,0,0.02); + --shadow-card-hover: 0 8px 24px -4px rgba(0,0,0,0.08), 0 12px 32px -8px rgba(0,0,0,0.04); } .dark { - --background: oklch(0.12 0.04 266); - --foreground: oklch(0.98 0.01 266); - --card: oklch(0.16 0.04 266); - --card-foreground: oklch(0.98 0.01 266); - --popover: oklch(0.16 0.04 266); - --popover-foreground: oklch(0.98 0.01 266); - --primary: oklch(0.65 0.2 266); - --primary-foreground: oklch(0.98 0 0); - --secondary: oklch(0.22 0.05 266); - --secondary-foreground: oklch(0.9 0.02 266); - --muted: oklch(0.22 0.05 266); - --muted-foreground: oklch(0.7 0.04 266); - --accent: oklch(0.25 0.06 266); - --accent-foreground: oklch(0.98 0.01 266); - --destructive: oklch(0.6 0.2 25); - --border: oklch(0.22 0.05 266); - --input: oklch(0.22 0.05 266); - --ring: oklch(0.65 0.2 266); - --chart-1: oklch(0.65 0.2 266); - --chart-2: oklch(0.65 0.18 190); - --chart-3: oklch(0.7 0.18 145); - --chart-4: oklch(0.75 0.18 70); - --chart-5: oklch(0.65 0.22 340); - --sidebar: oklch(0.14 0.04 266); - --sidebar-foreground: oklch(0.98 0.01 266); - --sidebar-primary: oklch(0.65 0.2 266); - --sidebar-primary-foreground: oklch(0.98 0 0); - --sidebar-accent: oklch(0.25 0.06 266); - --sidebar-accent-foreground: oklch(0.98 0.01 266); - --sidebar-border: oklch(0.22 0.05 266); - --sidebar-ring: oklch(0.65 0.2 266); + --background: oklch(0.15 0.01 45); + --foreground: oklch(0.98 0.01 45); + --card: oklch(0.18 0.01 45); + --card-foreground: oklch(0.98 0.01 45); + --popover: oklch(0.18 0.01 45); + --popover-foreground: oklch(0.98 0.01 45); + --primary: oklch(0.70 0.22 45); + --primary-foreground: oklch(0.14 0.01 45); + --secondary: oklch(0.25 0.02 45); + --secondary-foreground: oklch(0.98 0.01 45); + --muted: oklch(0.25 0.02 45); + --muted-foreground: oklch(0.70 0.02 45); + --accent: oklch(0.25 0.02 45); + --accent-foreground: oklch(0.98 0.01 45); + --destructive: oklch(0.65 0.20 25); + --destructive-foreground: oklch(0.98 0.01 45); + --border: oklch(0.25 0.02 45); + --input: oklch(0.25 0.02 45); + --ring: oklch(0.70 0.22 45); + --chart-1: oklch(0.70 0.22 45); + --chart-2: oklch(0.65 0.15 180); + --chart-3: oklch(0.65 0.15 300); + --chart-4: oklch(0.80 0.18 85); + --chart-5: oklch(0.70 0.18 15); + --sidebar: oklch(0.18 0.01 45); + --sidebar-foreground: oklch(0.85 0.02 45); + --sidebar-primary: oklch(0.70 0.22 45); + --sidebar-primary-foreground: oklch(0.14 0.01 45); + --sidebar-accent: oklch(0.25 0.02 45); + --sidebar-accent-foreground: oklch(0.98 0.01 45); + --sidebar-border: oklch(0.25 0.02 45); + --sidebar-ring: oklch(0.70 0.22 45); + --shadow-card: 0 2px 8px -2px rgba(0,0,0,0.04), 0 4px 16px -4px rgba(0,0,0,0.02); + --shadow-card-hover: 0 8px 24px -4px rgba(0,0,0,0.08), 0 12px 32px -8px rgba(0,0,0,0.04); } @layer base {