Variable is a shadcn/ui theme built around an orange primary color (#c8aa88) with blue accents (#88a6c8). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#c8aa88) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #000000black |
| Foreground | #140d06black | #ffffffwhite |
| Card | #fbf8f3floralwhite | #030303black |
| Card foreground | #100b05black | #ffffffwhite |
| Popover | #fbf8f3floralwhite | #030303black |
| Popover foreground | #100b05black | #ffffffwhite |
| Primary | #c8aa88tan | #c8aa88tan |
| Primary foreground | #15100ablack | #15100ablack |
| Secondary | #88a6c8darkgray | #88a6c8darkgray |
| Secondary foreground | #0a0f15black | #0a0f15black |
| Muted | #ecedeewhitesmoke | #111213black |
| Muted foreground | #565b61dimgray | #9ea3a9darkgray |
| Accent | #88a6c8darkgray | #88a6c8darkgray |
| Accent foreground | #0a0f15black | #0a0f15black |
| Destructive | #d5150bfirebrick | #ed180cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c8aa88tan | #c8aa88tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.52:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 5.31:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 7.65:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Variable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 71.41);
--foreground: oklch(0.166 0.019 72.02);
--muted: oklch(0.946 0.002 251.467);
--muted-foreground: oklch(0.47 0.012 251.639);
--popover: oklch(0.98 0.007 71.388);
--popover-foreground: oklch(0.152 0.017 74.833);
--card: oklch(0.98 0.007 71.388);
--card-foreground: oklch(0.152 0.017 74.833);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.757 0.058 70.506);
--primary-foreground: oklch(0.176 0.015 70.385);
--secondary: oklch(0.715 0.06 252.042);
--secondary-foreground: oklch(0.166 0.015 252.091);
--accent: oklch(0.715 0.06 252.042);
--accent-foreground: oklch(0.166 0.015 252.091);
--destructive: oklch(0.555 0.219 29.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.058 70.506);
--chart-1: oklch(0.757 0.058 70.506);
--chart-2: oklch(0.715 0.06 252.042);
--chart-3: oklch(0.715 0.06 252.042);
--chart-4: oklch(0.741 0.054 251.97);
--chart-5: oklch(0.759 0.063 70.399);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.181 0.003 251.575);
--muted-foreground: oklch(0.713 0.01 251.566);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.757 0.058 70.506);
--primary-foreground: oklch(0.176 0.015 70.385);
--secondary: oklch(0.715 0.06 252.042);
--secondary-foreground: oklch(0.166 0.015 252.091);
--accent: oklch(0.715 0.06 252.042);
--accent-foreground: oklch(0.166 0.015 252.091);
--destructive: oklch(0.601 0.238 29.483);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.058 70.506);
--chart-1: oklch(0.757 0.058 70.506);
--chart-2: oklch(0.715 0.06 252.042);
--chart-3: oklch(0.715 0.06 252.042);
--chart-4: oklch(0.741 0.054 251.97);
--chart-5: oklch(0.759 0.063 70.399);
}