Miserable is a shadcn/ui theme built around a muted orange primary color (#866e56) with muted yellow accents (#858656). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#866e56) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #110a04black | #fafaf9snow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #110a04black | #fafaf9snow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #110a04black | #fafaf9snow |
| Primary | #866e56dimgray | #866e56dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #865656dimgray | #865656dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9cfcelightgrey | #311716black |
| Muted foreground | #564443darkslategray | #bcaaa9darkgray |
| Accent | #858656gray | #858656gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #b91c13firebrick | #eb463dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #866e56dimgray | #866e56dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 4.78:1 | AA |
| Secondary button | 6.02:1 | AA |
| Muted text | 6.17:1 | AA |
| Accent | 5.52:1 | AA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 4.78:1 | AA |
| Secondary button | 6.02:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 5.52:1 | AA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Miserable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.153 0.02 74.029);
--muted: oklch(0.875 0.029 18.889);
--muted-foreground: oklch(0.404 0.025 19.375);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.153 0.02 74.029);
--card: oklch(1 0 180);
--card-foreground: oklch(0.153 0.02 74.029);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.556 0.047 68.492);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.506 0.063 20.592);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.068 109.071);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.504 0.191 29.178);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.556 0.047 68.492);
--chart-1: oklch(0.556 0.047 68.492);
--chart-2: oklch(0.506 0.063 20.592);
--chart-3: oklch(0.607 0.068 109.071);
--chart-4: oklch(0.531 0.067 20.613);
--chart-5: oklch(0.559 0.053 68.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.985 0.001 69.641);
--muted: oklch(0.241 0.042 21.678);
--muted-foreground: oklch(0.752 0.021 18.8);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.985 0.001 69.641);
--card: oklch(0 0 0);
--card-foreground: oklch(0.985 0.001 69.641);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.556 0.047 68.492);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.506 0.063 20.592);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.068 109.071);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.203 27.589);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.556 0.047 68.492);
--chart-1: oklch(0.556 0.047 68.492);
--chart-2: oklch(0.506 0.063 20.592);
--chart-3: oklch(0.607 0.068 109.071);
--chart-4: oklch(0.531 0.067 20.613);
--chart-5: oklch(0.559 0.053 68.269);
}