Horrible is a shadcn/ui theme built around a cyan primary color (#247c8a) with green accents (#7c8a24). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#247c8a) on a cyan-tinted background (#030b0c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030b0cblack |
| Foreground | #061213black | #f6f8f8whitesmoke |
| Card | #fcfcfcsnow | #050e10black |
| Card foreground | #050e0fblack | #f9fafbghostwhite |
| Popover | #fcfcfcsnow | #050e10black |
| Popover foreground | #050e0fblack | #f9fafbghostwhite |
| Primary | #247c8ateal | #247c8ateal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #8a247cpurple | #8a247cpurple |
| Secondary foreground | #f9e7f6lavenderblush | #f9e7f6lavenderblush |
| Muted | #e5dce4gainsboro | #231a22black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #7c8a24olivedrab | #7c8a24olivedrab |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d14a15chocolate | #ea602achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #247c8ateal | #247c8ateal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 6.79:1 | AA |
| Muted text | 4.98:1 | AA |
| Accent | 3.80:1 | AA Large |
| Destructive | 4.47:1 | AA Large |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.64:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 3.80:1 | AA Large |
| Destructive | 6.20:1 | AA |
Paste this into your globals.css to use Horrible in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.17 0.017 207.685);
--muted: oklch(0.903 0.016 329.894);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.155 0.015 206.93);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.155 0.015 206.93);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.542 0.083 209.96);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.455 0.169 333.988);
--secondary-foreground: oklch(0.946 0.028 330.047);
--accent: oklch(0.602 0.124 116.949);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.589 0.18 38.663);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.542 0.083 209.96);
--chart-1: oklch(0.542 0.083 209.96);
--chart-2: oklch(0.455 0.169 333.988);
--chart-3: oklch(0.602 0.124 116.949);
--chart-4: oklch(0.483 0.18 334.024);
--chart-5: oklch(0.548 0.085 210.196);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.014 205.522);
--foreground: oklch(0.978 0.002 207.925);
--muted: oklch(0.232 0.022 330.785);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.156 0.016 206.873);
--popover-foreground: oklch(0.985 0.001 207.928);
--card: oklch(0.156 0.016 206.873);
--card-foreground: oklch(0.985 0.001 207.928);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.542 0.083 209.96);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.455 0.169 333.988);
--secondary-foreground: oklch(0.946 0.028 330.047);
--accent: oklch(0.602 0.124 116.949);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.657 0.183 39.983);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.542 0.083 209.96);
--chart-1: oklch(0.542 0.083 209.96);
--chart-2: oklch(0.455 0.169 333.988);
--chart-3: oklch(0.602 0.124 116.949);
--chart-4: oklch(0.483 0.18 334.024);
--chart-5: oklch(0.548 0.085 210.196);
}