Wretched is a shadcn/ui theme built around a vivid green primary color (#99fb18) with muted green accents (#c1ceb1). The light mode uses a neutral background (#fafdf7). Dark mode keeps the vivid green primary (#99fb18) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf7mintcream | #030302black |
| Foreground | #080d02black | #ffffffwhite |
| Card | #f8fbf3whitesmoke | #050703black |
| Card foreground | #060901black | #ffffffwhite |
| Popover | #fafdf7mintcream | #030302black |
| Popover foreground | #080d02black | #ffffffwhite |
| Primary | #99fb18greenyellow | #99fb18greenyellow |
| Primary foreground | #284601darkgreen | #284601darkgreen |
| Secondary | #dadfd2gainsboro | #2f3725darkslategray |
| Secondary foreground | #414b35darkslategray | #c8d2bcsilver |
| Muted | #f3f5f0whitesmoke | #0d0f0ablack |
| Muted foreground | #4d5346darkslategray | #b3b9acdarkgray |
| Accent | #c1ceb1silver | #404f2bdarkolivegreen |
| Accent foreground | #272f1ddarkslategray | #d8e2calightgrey |
| Destructive | #a73301saddlebrown | #f94b01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #99fb18greenyellow | #99fb18greenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 6.78:1 | AA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 6.72:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 9.57:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Wretched in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 125.841);
--foreground: oklch(0.151 0.03 125.207);
--muted: oklch(0.966 0.007 125.833);
--muted-foreground: oklch(0.432 0.021 126.393);
--popover: oklch(0.99 0.008 125.841);
--popover-foreground: oklch(0.151 0.03 125.207);
--card: oklch(0.984 0.011 125.893);
--card-foreground: oklch(0.131 0.026 124.629);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.894 0.246 132.538);
--primary-foreground: oklch(0.358 0.098 131.772);
--secondary: oklch(0.896 0.018 126.017);
--secondary-foreground: oklch(0.396 0.037 127.055);
--accent: oklch(0.833 0.042 126.429);
--accent-foreground: oklch(0.292 0.032 127.317);
--destructive: oklch(0.491 0.16 38.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.246 132.538);
--chart-1: oklch(0.894 0.246 132.538);
--chart-2: oklch(0.896 0.018 126.017);
--chart-3: oklch(0.833 0.042 126.429);
--chart-4: oklch(0.917 0.015 125.955);
--chart-5: oklch(0.902 0.25 132.743);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 125.16);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.01 126.607);
--muted-foreground: oklch(0.777 0.018 126.052);
--popover: oklch(0.098 0.01 125.16);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.013 125.16);
--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.894 0.246 132.538);
--primary-foreground: oklch(0.358 0.098 131.772);
--secondary: oklch(0.324 0.033 127.181);
--secondary-foreground: oklch(0.851 0.032 126.252);
--accent: oklch(0.404 0.059 127.92);
--accent-foreground: oklch(0.899 0.034 126.244);
--destructive: oklch(0.656 0.219 37.05);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.894 0.246 132.538);
--chart-1: oklch(0.894 0.246 132.538);
--chart-2: oklch(0.324 0.033 127.181);
--chart-3: oklch(0.404 0.059 127.92);
--chart-4: oklch(0.357 0.037 127.229);
--chart-5: oklch(0.902 0.25 132.743);
}