Change dark and light theme like ubuntu

This commit is contained in:
2026-02-12 13:12:15 +01:00
parent 2cc52a3fab
commit 19a9014f61

View File

@@ -44,72 +44,114 @@
} }
:root { :root {
--radius: 0.625rem; --radius: 0.125rem;
--background: oklch(1 0 0); /* ---------- Base background (warm light) ---------- */
--foreground: oklch(0.129 0.042 264.695); --background: oklch(0.97 0.01 95);
--card: oklch(1 0 0); --foreground: oklch(0.22 0.02 30);
--card-foreground: oklch(0.129 0.042 264.695);
--popover: oklch(1 0 0); /* ---------- Surfaces ---------- */
--popover-foreground: oklch(0.129 0.042 264.695); --card: oklch(0.99 0.005 95);
--primary: oklch(0.208 0.042 265.755); --card-foreground: oklch(0.22 0.02 30);
--primary-foreground: oklch(0.984 0.003 247.858);
--secondary: oklch(0.968 0.007 247.896); --popover: oklch(1 0.004 95);
--secondary-foreground: oklch(0.208 0.042 265.755); --popover-foreground: oklch(0.22 0.02 30);
--muted: oklch(0.968 0.007 247.896);
--muted-foreground: oklch(0.554 0.046 257.417); /* ---------- Ubuntu orange primary ---------- */
--accent: oklch(0.968 0.007 247.896); --primary: oklch(0.62 0.2 45);
--accent-foreground: oklch(0.208 0.042 265.755); --primary-foreground: oklch(0.99 0.005 95);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.929 0.013 255.508); /* ---------- Secondary / muted warm grays ---------- */
--input: oklch(0.929 0.013 255.508); --secondary: oklch(0.92 0.01 90);
--ring: oklch(0.704 0.04 256.788); --secondary-foreground: oklch(0.3 0.02 35);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704); --muted: oklch(0.94 0.008 90);
--chart-3: oklch(0.398 0.07 227.392); --muted-foreground: oklch(0.45 0.015 35);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08); --accent: oklch(0.9 0.015 85);
--sidebar: oklch(0.984 0.003 247.858); --accent-foreground: oklch(0.3 0.02 35);
--sidebar-foreground: oklch(0.129 0.042 264.695);
--sidebar-primary: oklch(0.208 0.042 265.755); /* ---------- Destructive ---------- */
--sidebar-primary-foreground: oklch(0.984 0.003 247.858); --destructive: oklch(0.58 0.23 25);
--sidebar-accent: oklch(0.968 0.007 247.896);
--sidebar-accent-foreground: oklch(0.208 0.042 265.755); /* ---------- Borders / inputs ---------- */
--sidebar-border: oklch(0.929 0.013 255.508); --border: oklch(0.85 0.01 90);
--sidebar-ring: oklch(0.704 0.04 256.788); --input: oklch(0.88 0.01 90);
--ring: oklch(0.62 0.2 45 / 0.5);
/* ---------- Charts ---------- */
--chart-1: oklch(0.62 0.2 45); /* orange */
--chart-2: oklch(0.55 0.16 150); /* green */
--chart-3: oklch(0.7 0.17 85); /* yellow */
--chart-4: oklch(0.6 0.18 300); /* purple */
--chart-5: oklch(0.6 0.2 20); /* red */
/* ---------- Sidebar ---------- */
--sidebar: oklch(0.95 0.01 90);
--sidebar-foreground: oklch(0.28 0.02 30);
--sidebar-primary: oklch(0.62 0.2 45);
--sidebar-primary-foreground: oklch(0.99 0.005 95);
--sidebar-accent: oklch(0.9 0.015 85);
--sidebar-accent-foreground: oklch(0.3 0.02 35);
--sidebar-border: oklch(0.85 0.01 90);
--sidebar-ring: oklch(0.62 0.2 45 / 0.5);
} }
.dark { .dark {
--background: oklch(0.129 0.042 264.695); /* ---------- Base background (warm charcoal) ---------- */
--foreground: oklch(0.984 0.003 247.858); --background: oklch(0.11 0.015 30);
--card: oklch(0.208 0.042 265.755); --foreground: oklch(0.97 0.01 95);
--card-foreground: oklch(0.984 0.003 247.858);
--popover: oklch(0.208 0.042 265.755); /* ---------- Surfaces ---------- */
--popover-foreground: oklch(0.984 0.003 247.858); --card: oklch(0.16 0.018 32);
--primary: oklch(0.929 0.013 255.508); --card-foreground: oklch(0.97 0.01 95);
--primary-foreground: oklch(0.208 0.042 265.755);
--secondary: oklch(0.279 0.041 260.031); --popover: oklch(0.18 0.02 32);
--secondary-foreground: oklch(0.984 0.003 247.858); --popover-foreground: oklch(0.97 0.01 95);
--muted: oklch(0.279 0.041 260.031);
--muted-foreground: oklch(0.704 0.04 256.788); /* ---------- Ubuntu orange primary ---------- */
--accent: oklch(0.279 0.041 260.031); --primary: oklch(0.68 0.19 45);
--accent-foreground: oklch(0.984 0.003 247.858); --primary-foreground: oklch(0.98 0.01 95);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%); /* ---------- Secondary / muted warm grays ---------- */
--input: oklch(1 0 0 / 15%); --secondary: oklch(0.22 0.02 30);
--ring: oklch(0.551 0.027 264.364); --secondary-foreground: oklch(0.92 0.015 95);
--chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48); --muted: oklch(0.22 0.02 30);
--chart-3: oklch(0.769 0.188 70.08); --muted-foreground: oklch(0.68 0.02 90);
--chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439); --accent: oklch(0.26 0.025 35);
--sidebar: oklch(0.208 0.042 265.755); --accent-foreground: oklch(0.95 0.01 95);
--sidebar-foreground: oklch(0.984 0.003 247.858);
--sidebar-primary: oklch(0.488 0.243 264.376); /* ---------- Destructive (Ubuntu red tone) ---------- */
--sidebar-primary-foreground: oklch(0.984 0.003 247.858); --destructive: oklch(0.62 0.22 25);
--sidebar-accent: oklch(0.279 0.041 260.031);
--sidebar-accent-foreground: oklch(0.984 0.003 247.858); /* ---------- Borders / inputs ---------- */
--sidebar-border: oklch(1 0 0 / 10%); --border: oklch(0.3 0.015 35 / 0.6);
--sidebar-ring: oklch(0.551 0.027 264.364); --input: oklch(0.3 0.015 35 / 0.8);
--ring: oklch(0.68 0.19 45 / 0.6);
/* ---------- Charts ---------- */
--chart-1: oklch(0.68 0.19 45); /* orange */
--chart-2: oklch(0.7 0.15 150); /* green */
--chart-3: oklch(0.78 0.16 85); /* yellow */
--chart-4: oklch(0.66 0.18 300); /* purple */
--chart-5: oklch(0.7 0.18 20); /* red */
/* ---------- Sidebar (slightly darker & warmer) ---------- */
--sidebar: oklch(0.14 0.018 30);
--sidebar-foreground: oklch(0.95 0.01 95);
--sidebar-primary: oklch(0.68 0.19 45);
--sidebar-primary-foreground: oklch(0.98 0.01 95);
--sidebar-accent: oklch(0.24 0.02 32);
--sidebar-accent-foreground: oklch(0.95 0.01 95);
--sidebar-border: oklch(0.3 0.015 35 / 0.5);
--sidebar-ring: oklch(0.68 0.19 45 / 0.6);
} }
/* === CUSTOM COLOR THEME === */ /* === CUSTOM COLOR THEME === */