Terrible is a shadcn/ui theme built around a vivid green primary color (#299801) with vivid green accents (#019824). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#299801) on a green-tinted background (#060b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #060b04black |
| Foreground | #060c04black | #fcfdfbsnow |
| Card | #f8fdf7mintcream | #060b04black |
| Card foreground | #060c04black | #fcfdfbsnow |
| Popover | #f8fdf7mintcream | #060b04black |
| Popover foreground | #060c04black | #fcfdfbsnow |
| Primary | #299801forestgreen | #299801forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #759801olive | #759801olive |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9eed8beige | #222711black |
| Muted foreground | #42453bdarkslategray | #c2c4basilver |
| Accent | #019824forestgreen | #019824forestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ac2402firebrick | #fd4517orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #299801forestgreen | #299801forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 3.35:1 | AA Large |
| Muted text | 8.24:1 | AAA |
| Accent | 3.79:1 | AA Large |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 3.35:1 | AA Large |
| Muted text | 8.68:1 | AAA |
| Accent | 3.79:1 | AA Large |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Terrible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 137.211);
--foreground: oklch(0.142 0.024 135.659);
--muted: oklch(0.94 0.03 117.657);
--muted-foreground: oklch(0.384 0.017 117.881);
--popover: oklch(0.989 0.009 137.211);
--popover-foreground: oklch(0.142 0.024 135.659);
--card: oklch(0.989 0.009 137.211);
--card-foreground: oklch(0.142 0.024 135.659);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.595 0.193 140.407);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.631 0.157 124.467);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.591 0.188 144.575);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.484 0.176 33.354);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.595 0.193 140.407);
--chart-1: oklch(0.595 0.193 140.407);
--chart-2: oklch(0.631 0.157 124.467);
--chart-3: oklch(0.591 0.188 144.575);
--chart-4: oklch(0.676 0.169 124.56);
--chart-5: oklch(0.601 0.196 140.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.019 135.893);
--foreground: oklch(0.994 0.003 137.197);
--muted: oklch(0.262 0.039 119.933);
--muted-foreground: oklch(0.817 0.014 117.393);
--popover: oklch(0.141 0.019 135.893);
--popover-foreground: oklch(0.994 0.003 137.197);
--card: oklch(0.141 0.019 135.893);
--card-foreground: oklch(0.994 0.003 137.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.595 0.193 140.407);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.631 0.157 124.467);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.591 0.188 144.575);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.657 0.226 33.965);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.595 0.193 140.407);
--chart-1: oklch(0.595 0.193 140.407);
--chart-2: oklch(0.631 0.157 124.467);
--chart-3: oklch(0.591 0.188 144.575);
--chart-4: oklch(0.676 0.169 124.56);
--chart-5: oklch(0.601 0.196 140.496);
}