Anguished is a shadcn/ui theme built around a vivid yellow primary color (#f1e046) with vivid green accents (#adf146). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f1e046) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #0c0b04black | #fdfdfcwhite |
| Card | #ffffffwhite | #030302black |
| Card foreground | #0c0b04black | #fdfdfcwhite |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #0c0b04black | #fdfdfcwhite |
| Primary | #f1e046sandybrown | #f1e046sandybrown |
| Primary foreground | #050400black | #050400black |
| Secondary | #f18a46coral | #f18a46coral |
| Secondary foreground | #050200black | #050200black |
| Muted | #e8d9cfgainsboro | #302117black |
| Muted foreground | #57504cdarkolivegreen | #b3aca8darkgray |
| Accent | #adf146greenyellow | #adf146greenyellow |
| Accent foreground | #030500black | #030500black |
| Destructive | #7e1801maroon | #fd390dorangered |
| Destructive foreground | #fec1b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1e046sandybrown | #f1e046sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 15.13:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.73:1 | AA |
| Accent | 15.06:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 15.13:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 15.06:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Anguished in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.018 103.985);
--muted: oklch(0.894 0.021 56.103);
--muted-foreground: oklch(0.438 0.012 56.065);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.018 103.985);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.018 103.985);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.895 0.166 102.84);
--primary-foreground: oklch(0.107 0.02 105.667);
--secondary: oklch(0.733 0.15 51.837);
--secondary-foreground: oklch(0.093 0.016 70.233);
--accent: oklch(0.882 0.207 129.086);
--accent-foreground: oklch(0.106 0.023 123.348);
--destructive: oklch(0.387 0.14 33.436);
--destructive-foreground: oklch(0.863 0.073 32.937);
--ring: oklch(0.895 0.166 102.84);
--chart-1: oklch(0.895 0.166 102.84);
--chart-2: oklch(0.733 0.15 51.837);
--chart-3: oklch(0.882 0.207 129.086);
--chart-4: oklch(0.751 0.139 52.704);
--chart-5: oklch(0.902 0.17 102.799);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 103.379);
--foreground: oklch(0.994 0.002 101.314);
--muted: oklch(0.264 0.029 54.767);
--muted-foreground: oklch(0.75 0.01 56.245);
--popover: oklch(0.098 0.008 103.379);
--popover-foreground: oklch(0.994 0.002 101.314);
--card: oklch(0.098 0.008 103.379);
--card-foreground: oklch(0.994 0.002 101.314);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.166 102.84);
--primary-foreground: oklch(0.107 0.02 105.667);
--secondary: oklch(0.733 0.15 51.837);
--secondary-foreground: oklch(0.093 0.016 70.233);
--accent: oklch(0.882 0.207 129.086);
--accent-foreground: oklch(0.106 0.023 123.348);
--destructive: oklch(0.646 0.235 32.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.166 102.84);
--chart-1: oklch(0.895 0.166 102.84);
--chart-2: oklch(0.733 0.15 51.837);
--chart-3: oklch(0.882 0.207 129.086);
--chart-4: oklch(0.751 0.139 52.704);
--chart-5: oklch(0.902 0.17 102.799);
}