Miserable is a shadcn/ui theme built around a light green primary color (#d7dfb3) with muted light green accents (#d0d2c6). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the light green primary (#d7dfb3) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf7snow | #090a05black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fafcf3floralwhite | #0c0d07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfdf7snow | #090a05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d7dfb3palegoldenrod | #d7dfb3palegoldenrod |
| Primary foreground | #3c441ddarkolivegreen | #3c441ddarkolivegreen |
| Secondary | #d0d2c6lightgrey | #181914black |
| Secondary foreground | #37392ddarkslategray | #b5b9a7darkgray |
| Muted | #dcdddagainsboro | #252522darkslategray |
| Muted foreground | #42443bdarkslategray | #c2c4bbsilver |
| Accent | #d0d2c6lightgrey | #181914black |
| Accent foreground | #37392ddarkslategray | #b5b9a7darkgray |
| Destructive | #cb110bfirebrick | #f31912red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7dfb3palegoldenrod | #d7dfb3palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 5.77:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 8.76:1 | AAA |
| Muted text | 8.68:1 | AAA |
| Accent | 8.76:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Miserable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 115.724);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.005 115.678);
--muted-foreground: oklch(0.383 0.015 116.294);
--popover: oklch(0.991 0.008 115.724);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.012 115.798);
--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.887 0.059 116.802);
--primary-foreground: oklch(0.37 0.061 118.864);
--secondary: oklch(0.859 0.017 115.938);
--secondary-foreground: oklch(0.339 0.021 116.716);
--accent: oklch(0.859 0.017 115.938);
--accent-foreground: oklch(0.339 0.021 116.716);
--destructive: oklch(0.535 0.213 29.208);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.059 116.802);
--chart-1: oklch(0.887 0.059 116.802);
--chart-2: oklch(0.859 0.017 115.938);
--chart-3: oklch(0.859 0.017 115.938);
--chart-4: oklch(0.88 0.014 115.875);
--chart-5: oklch(0.891 0.063 116.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.012 115.925);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.007 116.035);
--muted-foreground: oklch(0.815 0.012 115.858);
--popover: oklch(0.142 0.012 115.925);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.157 0.014 116.799);
--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.887 0.059 116.802);
--primary-foreground: oklch(0.37 0.061 118.864);
--secondary: oklch(0.212 0.01 116.422);
--secondary-foreground: oklch(0.777 0.024 116.155);
--accent: oklch(0.212 0.01 116.422);
--accent-foreground: oklch(0.777 0.024 116.155);
--destructive: oklch(0.611 0.242 29.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.887 0.059 116.802);
--chart-1: oklch(0.887 0.059 116.802);
--chart-2: oklch(0.212 0.01 116.422);
--chart-3: oklch(0.212 0.01 116.422);
--chart-4: oklch(0.248 0.013 116.504);
--chart-5: oklch(0.891 0.063 116.883);
}