From 428e6f891eb6b3e5a012a95ee95177044e786653 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 25 Feb 2026 13:30:33 +0800 Subject: [PATCH] style(theme): refine palette with precise primary and neutral accent --- app/globals.css | 99 +++++++++++++++++++++++++------------------------ 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/app/globals.css b/app/globals.css index e1256bc..67343bf 100644 --- a/app/globals.css +++ b/app/globals.css @@ -27,6 +27,7 @@ --color-border: var(--border); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); + --color-accent-foreground: var(--accent-foreground); --color-accent: var(--accent); --color-muted-foreground: var(--muted-foreground); --color-muted: var(--muted); @@ -49,75 +50,75 @@ :root { --radius: 0.5rem; - --background: oklch(0.98 0 0); - --foreground: oklch(0.27 0.03 260); + --background: oklch(0.99 0 0); + --foreground: oklch(0.14 0 0); --card: oklch(1 0 0); - --card-foreground: oklch(0.27 0.03 260); + --card-foreground: oklch(0.14 0 0); --popover: oklch(1 0 0); - --popover-foreground: oklch(0.27 0.03 260); - --primary: oklch(0.65 0.22 45); - --primary-foreground: oklch(1 0 0); - --secondary: oklch(0.95 0.01 260); + --popover-foreground: oklch(0.14 0 0); + --primary: oklch(0.701 0.189 46.65); + --primary-foreground: oklch(0.99 0 0); + --secondary: oklch(0.96 0.01 260); --secondary-foreground: oklch(0.35 0.03 260); --muted: oklch(0.96 0.01 260); --muted-foreground: oklch(0.55 0.02 260); - --accent: oklch(0.65 0.22 45); - --accent-foreground: oklch(1 0 0); + --accent: oklch(0.96 0.01 260); + --accent-foreground: oklch(0.35 0.03 260); --destructive: oklch(0.6 0.2 25); - --destructive-foreground: oklch(1 0 0); - --border: oklch(0.92 0.01 260); - --input: oklch(0.92 0.01 260); - --ring: oklch(0.65 0.22 45); - --chart-1: oklch(0.65 0.22 45); + --destructive-foreground: oklch(0.99 0 0); + --border: oklch(0.92 0 0); + --input: oklch(0.92 0 0); + --ring: oklch(0.701 0.189 46.65); + --chart-1: oklch(0.701 0.189 46.65); --chart-2: oklch(0.6 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.98 0 0); - --sidebar-foreground: oklch(0.35 0.03 260); - --sidebar-primary: oklch(0.65 0.22 45); - --sidebar-primary-foreground: oklch(1 0 0); - --sidebar-accent: oklch(0.95 0.01 260); - --sidebar-accent-foreground: oklch(0.35 0.03 260); - --sidebar-border: oklch(0.92 0.01 260); - --sidebar-ring: oklch(0.65 0.22 45); + --sidebar-foreground: oklch(0.25 0 0); + --sidebar-primary: oklch(0.701 0.189 46.65); + --sidebar-primary-foreground: oklch(0.99 0 0); + --sidebar-accent: oklch(0.96 0.02 46.65); + --sidebar-accent-foreground: oklch(0.36 0.1 46.65); + --sidebar-border: oklch(0.92 0 0); + --sidebar-ring: oklch(0.701 0.189 46.65); --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.06); --shadow-card-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.1); } .dark { - --background: oklch(0.15 0.02 260); - --foreground: oklch(0.9 0.01 260); - --card: oklch(0.18 0.02 260); - --card-foreground: oklch(0.9 0.01 260); - --popover: oklch(0.18 0.02 260); - --popover-foreground: oklch(0.9 0.01 260); - --primary: oklch(0.65 0.22 45); - --primary-foreground: oklch(1 0 0); + --background: oklch(0.15 0 0); + --foreground: oklch(0.98 0 0); + --card: oklch(0.18 0 0); + --card-foreground: oklch(0.98 0 0); + --popover: oklch(0.18 0 0); + --popover-foreground: oklch(0.98 0 0); + --primary: oklch(0.701 0.189 46.65); + --primary-foreground: oklch(0.14 0 0); --secondary: oklch(0.22 0.02 260); --secondary-foreground: oklch(0.8 0.01 260); --muted: oklch(0.22 0.02 260); --muted-foreground: oklch(0.6 0.02 260); - --accent: oklch(0.65 0.22 45); - --accent-foreground: oklch(1 0 0); - --destructive: oklch(0.4 0.15 25); - --destructive-foreground: oklch(1 0 0); - --border: oklch(0.25 0.02 260); - --input: oklch(0.25 0.02 260); - --ring: oklch(0.65 0.22 45); - --chart-1: oklch(0.65 0.22 45); - --chart-2: oklch(0.6 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.15 0.02 260); - --sidebar-foreground: oklch(0.8 0.01 260); - --sidebar-primary: oklch(0.65 0.22 45); - --sidebar-primary-foreground: oklch(1 0 0); - --sidebar-accent: oklch(0.22 0.02 260); - --sidebar-accent-foreground: oklch(0.8 0.01 260); - --sidebar-border: oklch(0.25 0.02 260); - --sidebar-ring: oklch(0.65 0.22 45); + --accent: oklch(0.22 0.02 260); + --accent-foreground: oklch(0.8 0.01 260); + --destructive: oklch(0.65 0.2 25); + --destructive-foreground: oklch(0.98 0 0); + --border: oklch(0.25 0 0); + --input: oklch(0.25 0 0); + --ring: oklch(0.701 0.189 46.65); + --chart-1: oklch(0.701 0.189 46.65); + --chart-2: oklch(0.65 0.15 180); + --chart-3: oklch(0.65 0.15 300); + --chart-4: oklch(0.8 0.18 85); + --chart-5: oklch(0.7 0.18 15); + --sidebar: oklch(0.18 0 0); + --sidebar-foreground: oklch(0.85 0 0); + --sidebar-primary: oklch(0.701 0.189 46.65); + --sidebar-primary-foreground: oklch(0.14 0 0); + --sidebar-accent: oklch(0.23 0.06 46.65); + --sidebar-accent-foreground: oklch(0.98 0.01 46.65); + --sidebar-border: oklch(0.25 0 0); + --sidebar-ring: oklch(0.701 0.189 46.65); --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.06); --shadow-card-hover: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.1); }