Dreary is a shadcn/ui theme built around a muted light orange primary color (#d6cabd) with muted light orange accents (#d8d4d0). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted light orange primary (#d6cabd) on an orange-tinted background (#0c0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0c0804black |
| Foreground | #000000black | #f9f7f6whitesmoke |
| Card | #fefdfbsnow | #0c0804black |
| Card foreground | #000000black | #f9f7f6whitesmoke |
| Popover | #fefdfbsnow | #0c0804black |
| Popover foreground | #000000black | #f9f7f6whitesmoke |
| Primary | #d6cabdlightgrey | #d6cabdlightgrey |
| Primary foreground | #3c3125darkslategray | #3c3125darkslategray |
| Secondary | #d8d4d0lightgrey | #1d1c1bblack |
| Secondary foreground | #403b35darkslategray | #b7b5b4silver |
| Muted | #e6ded5gainsboro | #2a2119black |
| Muted foreground | #696159dimgray | #a69e96darkgray |
| Accent | #d8d4d0lightgrey | #1d1c1bblack |
| Accent foreground | #403b35darkslategray | #b7b5b4silver |
| Destructive | #af1804firebrick | #f52105red |
| Destructive foreground | #fee9e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6cabdlightgrey | #d6cabdlightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 18.71:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 8.33:1 | AAA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Dreary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 69.623);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.015 69.481);
--muted-foreground: oklch(0.498 0.016 69.313);
--popover: oklch(0.993 0.003 69.623);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.003 69.623);
--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.845 0.022 69.379);
--primary-foreground: oklch(0.321 0.025 68.623);
--secondary: oklch(0.871 0.007 69.572);
--secondary-foreground: oklch(0.355 0.012 69.298);
--accent: oklch(0.871 0.007 69.572);
--accent-foreground: oklch(0.355 0.012 69.298);
--destructive: oklch(0.482 0.186 30.88);
--destructive-foreground: oklch(0.95 0.024 26.626);
--ring: oklch(0.845 0.022 69.379);
--chart-1: oklch(0.845 0.022 69.379);
--chart-2: oklch(0.871 0.007 69.572);
--chart-3: oklch(0.871 0.007 69.572);
--chart-4: oklch(0.894 0.006 69.588);
--chart-5: oklch(0.846 0.025 69.34);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.014 76.448);
--foreground: oklch(0.978 0.003 69.624);
--muted: oklch(0.256 0.02 68.589);
--muted-foreground: oklch(0.704 0.014 69.44);
--popover: oklch(0.137 0.014 76.448);
--popover-foreground: oklch(0.978 0.003 69.624);
--card: oklch(0.137 0.014 76.448);
--card-foreground: oklch(0.978 0.003 69.624);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.845 0.022 69.379);
--primary-foreground: oklch(0.321 0.025 68.623);
--secondary: oklch(0.227 0.001 69.59);
--secondary-foreground: oklch(0.774 0.003 69.616);
--accent: oklch(0.227 0.001 69.59);
--accent-foreground: oklch(0.774 0.003 69.616);
--destructive: oklch(0.618 0.241 30.618);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.022 69.379);
--chart-1: oklch(0.845 0.022 69.379);
--chart-2: oklch(0.227 0.001 69.59);
--chart-3: oklch(0.227 0.001 69.59);
--chart-4: oklch(0.26 0.002 69.585);
--chart-5: oklch(0.846 0.025 69.34);
}