feat: add warm sand theme colors and light / dark mode toggle
This commit is contained in:
@@ -47,75 +47,92 @@
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-scrim: var(--scrim);
|
||||
}
|
||||
|
||||
/* Warm Sand / Amber palette. Neutrals carry a low-chroma warm hue (~60-85°)
|
||||
so surfaces read as paper/espresso rather than flat gray, with a burnt-amber
|
||||
primary as the brand accent. */
|
||||
:root {
|
||||
--radius: 0.625rem;
|
||||
--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);
|
||||
--background: oklch(0.985 0.006 83);
|
||||
--foreground: oklch(0.255 0.012 64);
|
||||
--card: oklch(0.998 0.003 90);
|
||||
--card-foreground: oklch(0.255 0.012 64);
|
||||
--popover: oklch(0.998 0.003 90);
|
||||
--popover-foreground: oklch(0.255 0.012 64);
|
||||
--primary: oklch(0.62 0.128 62);
|
||||
--primary-foreground: oklch(0.99 0.006 90);
|
||||
--secondary: oklch(0.945 0.014 78);
|
||||
--secondary-foreground: oklch(0.32 0.014 60);
|
||||
--muted: oklch(0.945 0.012 78);
|
||||
--muted-foreground: oklch(0.535 0.02 62);
|
||||
--accent: oklch(0.92 0.03 70);
|
||||
--accent-foreground: oklch(0.3 0.035 55);
|
||||
--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.646 0.222 41.116);
|
||||
--chart-2: oklch(0.6 0.118 184.704);
|
||||
--chart-3: oklch(0.398 0.07 227.392);
|
||||
--chart-4: oklch(0.828 0.189 84.429);
|
||||
--chart-5: oklch(0.769 0.188 70.08);
|
||||
--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);
|
||||
--border: oklch(0.9 0.014 75);
|
||||
--input: oklch(0.9 0.014 75);
|
||||
--ring: oklch(0.62 0.128 62);
|
||||
--chart-1: oklch(0.66 0.14 60);
|
||||
--chart-2: oklch(0.7 0.12 95);
|
||||
--chart-3: oklch(0.58 0.09 45);
|
||||
--chart-4: oklch(0.75 0.13 80);
|
||||
--chart-5: oklch(0.6 0.11 30);
|
||||
--sidebar: oklch(0.965 0.01 80);
|
||||
--sidebar-foreground: oklch(0.255 0.012 64);
|
||||
--sidebar-primary: oklch(0.62 0.128 62);
|
||||
--sidebar-primary-foreground: oklch(0.99 0.006 90);
|
||||
--sidebar-accent: oklch(0.92 0.03 70);
|
||||
--sidebar-accent-foreground: oklch(0.3 0.035 55);
|
||||
--sidebar-border: oklch(0.9 0.014 75);
|
||||
--sidebar-ring: oklch(0.62 0.128 62);
|
||||
--scrollbar-thumb: oklch(0.45 0.03 60 / 25%);
|
||||
--scrollbar-thumb-hover: oklch(0.45 0.03 60 / 40%);
|
||||
--scrollbar-thumb-strong: oklch(0.45 0.03 60 / 35%);
|
||||
--scrollbar-thumb-strong-hover: oklch(0.45 0.03 60 / 55%);
|
||||
|
||||
/* Modal/overlay backdrop. A dim scrim behind dialogs reads the same in both
|
||||
themes (matching shadcn's default overlay), so it is intentionally
|
||||
theme-independent. Use with an alpha modifier, e.g. bg-scrim/60. */
|
||||
--scrim: oklch(0 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);
|
||||
--background: oklch(0.19 0.012 58);
|
||||
--foreground: oklch(0.955 0.008 85);
|
||||
--card: oklch(0.232 0.014 56);
|
||||
--card-foreground: oklch(0.955 0.008 85);
|
||||
--popover: oklch(0.232 0.014 56);
|
||||
--popover-foreground: oklch(0.955 0.008 85);
|
||||
--primary: oklch(0.78 0.13 78);
|
||||
--primary-foreground: oklch(0.24 0.03 60);
|
||||
--secondary: oklch(0.285 0.014 54);
|
||||
--secondary-foreground: oklch(0.955 0.008 85);
|
||||
--muted: oklch(0.285 0.014 54);
|
||||
--muted-foreground: oklch(0.72 0.018 72);
|
||||
--accent: oklch(0.33 0.032 56);
|
||||
--accent-foreground: oklch(0.955 0.008 85);
|
||||
--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.488 0.243 264.376);
|
||||
--chart-2: oklch(0.696 0.17 162.48);
|
||||
--chart-3: oklch(0.769 0.188 70.08);
|
||||
--chart-4: oklch(0.627 0.265 303.9);
|
||||
--chart-5: oklch(0.645 0.246 16.439);
|
||||
--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);
|
||||
--border: oklch(0.92 0.03 85 / 10%);
|
||||
--input: oklch(0.92 0.03 85 / 15%);
|
||||
--ring: oklch(0.78 0.13 78);
|
||||
--chart-1: oklch(0.78 0.13 78);
|
||||
--chart-2: oklch(0.7 0.12 50);
|
||||
--chart-3: oklch(0.72 0.11 95);
|
||||
--chart-4: oklch(0.65 0.13 35);
|
||||
--chart-5: oklch(0.6 0.1 60);
|
||||
--sidebar: oklch(0.165 0.012 58);
|
||||
--sidebar-foreground: oklch(0.955 0.008 85);
|
||||
--sidebar-primary: oklch(0.78 0.13 78);
|
||||
--sidebar-primary-foreground: oklch(0.24 0.03 60);
|
||||
--sidebar-accent: oklch(0.33 0.032 56);
|
||||
--sidebar-accent-foreground: oklch(0.955 0.008 85);
|
||||
--sidebar-border: oklch(0.92 0.03 85 / 10%);
|
||||
--sidebar-ring: oklch(0.78 0.13 78);
|
||||
--scrollbar-thumb: oklch(0.92 0.03 85 / 18%);
|
||||
--scrollbar-thumb-hover: oklch(0.92 0.03 85 / 32%);
|
||||
--scrollbar-thumb-strong: oklch(0.92 0.03 85 / 30%);
|
||||
--scrollbar-thumb-strong-hover: oklch(0.92 0.03 85 / 50%);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
@@ -130,7 +147,7 @@
|
||||
/* Scrollbar styling */
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: oklch(1 0 0 / 20%) transparent;
|
||||
scrollbar-color: var(--scrollbar-thumb) transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
@@ -143,12 +160,12 @@
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: oklch(1 0 0 / 20%);
|
||||
background: var(--scrollbar-thumb);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: oklch(1 0 0 / 35%);
|
||||
background: var(--scrollbar-thumb-hover);
|
||||
}
|
||||
|
||||
/* Message cards: more prominent scrollbar than the subtle global default.
|
||||
@@ -160,13 +177,13 @@
|
||||
|
||||
.scrollbar-card::-webkit-scrollbar-thumb,
|
||||
.scrollbar-card ::-webkit-scrollbar-thumb {
|
||||
background: oklch(1 0 0 / 30%);
|
||||
background: var(--scrollbar-thumb-strong);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.scrollbar-card::-webkit-scrollbar-thumb:hover,
|
||||
.scrollbar-card ::-webkit-scrollbar-thumb:hover {
|
||||
background: oklch(1 0 0 / 50%);
|
||||
background: var(--scrollbar-thumb-strong-hover);
|
||||
}
|
||||
|
||||
/* Message layout: the compose editor and the posted card derive their widths
|
||||
|
||||
Reference in New Issue
Block a user