Terrible is a shadcn/ui theme built around a neutral gray primary color (#b0b0b0) with neutral gray accents (#b0b0b0). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#b0b0b0) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040101black |
| Foreground | #000000black | #f9f6f6whitesmoke |
| Card | #faf4f4whitesmoke | #070303black |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #faf4f4whitesmoke | #070303black |
| Popover foreground | #000000black | #fbf9f9snow |
| Primary | #b0b0b0darkgray | #b0b0b0darkgray |
| Primary foreground | #171717black | #171717black |
| Secondary | #b0b0b0darkgray | #b0b0b0darkgray |
| Secondary foreground | #171717black | #171717black |
| Muted | #ded3d3lightgrey | #2c2121black |
| Muted foreground | #5c4d4ddimgray | #b2a3a3darkgray |
| Accent | #b0b0b0darkgray | #b0b0b0darkgray |
| Accent foreground | #171717black | #171717black |
| Destructive | #612105maroon | #f35512orangered |
| Destructive foreground | #faba9elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b0b0b0darkgray | #b0b0b0darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 7.30:1 | AAA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 8.26:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Terrible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.229);
--foreground: oklch(0 0 0);
--muted: oklch(0.877 0.012 17.383);
--muted-foreground: oklch(0.434 0.02 17.966);
--popover: oklch(0.973 0.006 17.267);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.006 17.267);
--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.757 0 180);
--primary-foreground: oklch(0.204 0 180);
--secondary: oklch(0.757 0 180);
--secondary-foreground: oklch(0.204 0 180);
--accent: oklch(0.757 0 180);
--accent-foreground: oklch(0.204 0 180);
--destructive: oklch(0.341 0.1 40.414);
--destructive-foreground: oklch(0.84 0.084 44.214);
--ring: oklch(0.757 0 180);
--chart-1: oklch(0.757 0 180);
--chart-2: oklch(0.757 0 180);
--chart-3: oklch(0.757 0 180);
--chart-4: oklch(0.781 0 180);
--chart-5: oklch(0.753 0.005 17.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.011 19.708);
--foreground: oklch(0.975 0.003 17.216);
--muted: oklch(0.26 0.017 18.271);
--muted-foreground: oklch(0.729 0.018 17.565);
--popover: oklch(0.106 0.014 19.708);
--popover-foreground: oklch(0.983 0.002 17.196);
--card: oklch(0.106 0.014 19.708);
--card-foreground: oklch(0.983 0.002 17.196);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.757 0 180);
--primary-foreground: oklch(0.204 0 180);
--secondary: oklch(0.757 0 180);
--secondary-foreground: oklch(0.204 0 180);
--accent: oklch(0.757 0 180);
--accent-foreground: oklch(0.204 0 180);
--destructive: oklch(0.656 0.204 38.89);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0 180);
--chart-1: oklch(0.757 0 180);
--chart-2: oklch(0.757 0 180);
--chart-3: oklch(0.757 0 180);
--chart-4: oklch(0.781 0 180);
--chart-5: oklch(0.753 0.005 17.277);
}