Den is a shadcn/ui theme built around a muted yellow primary color (#60573e) with muted violet accents (#573e60). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the muted yellow primary (#60573e) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #030302black |
| Foreground | #000000black | #fcfbf8snow |
| Card | #fcf9f3floralwhite | #070603black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcf9f3floralwhite | #070603black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #60573edarkolivegreen | #60573edarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3e6057darkslategray | #3e6057darkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff1f0whitesmoke | #0e1010black |
| Muted foreground | #545f5cdimgray | #a0aba8darkgray |
| Accent | #573e60darkslateblue | #573e60darkslateblue |
| Accent foreground | #eae3edlavender | #eae3edlavender |
| Destructive | #9d1801darkred | #f42601orangered |
| Destructive foreground | #ffd8d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #60573edarkolivegreen | #60573edarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.82:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Den in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 88.832);
--foreground: oklch(0 0 0);
--muted: oklch(0.955 0.002 177.651);
--muted-foreground: oklch(0.474 0.014 176.822);
--popover: oklch(0.984 0.009 88.852);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.009 88.852);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.458 0.04 88.948);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.461 0.044 174.564);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.065 316.112);
--accent-foreground: oklch(0.924 0.016 316.559);
--destructive: oklch(0.448 0.17 31.898);
--destructive-foreground: oklch(0.913 0.044 29.717);
--ring: oklch(0.458 0.04 88.948);
--chart-1: oklch(0.458 0.04 88.948);
--chart-2: oklch(0.461 0.044 174.564);
--chart-3: oklch(0.404 0.065 316.112);
--chart-4: oklch(0.491 0.047 174.522);
--chart-5: oklch(0.462 0.045 88.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 92.118);
--foreground: oklch(0.987 0.003 88.814);
--muted: oklch(0.172 0.003 177.174);
--muted-foreground: oklch(0.732 0.013 177.2);
--popover: oklch(0.121 0.009 92.118);
--popover-foreground: oklch(0.994 0.002 88.802);
--card: oklch(0.121 0.009 92.118);
--card-foreground: oklch(0.994 0.002 88.802);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.458 0.04 88.948);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.461 0.044 174.564);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.404 0.065 316.112);
--accent-foreground: oklch(0.924 0.016 316.559);
--destructive: oklch(0.618 0.238 31.298);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.458 0.04 88.948);
--chart-1: oklch(0.458 0.04 88.948);
--chart-2: oklch(0.461 0.044 174.564);
--chart-3: oklch(0.404 0.065 316.112);
--chart-4: oklch(0.491 0.047 174.522);
--chart-5: oklch(0.462 0.045 88.883);
}