Dark Horizon is a shadcn/ui theme built around a vivid red primary color (#e95379) with neutral gray accents (#333333). The light mode uses a neutral background (#0d0d0d). Dark mode keeps the vivid red primary (#e95379) on a neutral background (#0d0d0d).
| Token | Light | Dark |
|---|---|---|
| Background | #0d0d0dblack | #0d0d0dblack |
| Foreground | #bababasilver | #bababasilver |
| Card | #080808black | #080808black |
| Card foreground | #c7c7c7silver | #c7c7c7silver |
| Popover | #050505black | #050505black |
| Popover foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Primary | #e95379indianred | #e95379indianred |
| Primary foreground | #000000black | #000000black |
| Secondary | #532d36darkslategray | #532d36darkslategray |
| Secondary foreground | #e4cdd3lightgrey | #e4cdd3lightgrey |
| Muted | #2b2222darkslategray | #2b2222darkslategray |
| Muted foreground | #b09b9brosybrown | #b09b9brosybrown |
| Accent | #333333darkslategray | #333333darkslategray |
| Accent foreground | #cccccclightgrey | #cccccclightgrey |
| Destructive | #e9312bcrimson | #e9312bcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1a1a1ablack | #1a1a1ablack |
| Input | #212121black | #212121black |
| Ring | #e95379indianred | #e95379indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.03:1 | AAA |
| Text on card | 11.87:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.26:1 | AA Large |
| Text on background | 10.03:1 | AAA |
| Text on card | 11.87:1 | AAA |
| Primary button | 5.98:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Dark Horizon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.158 0 169.695);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.116 0 180);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.132 0 165.964);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.653 0.185 8.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.058 4.424);
--secondary-foreground: oklch(0.87 0.027 0.719);
--accent: oklch(0.321 0 180);
--accent-foreground: oklch(0.845 0 164.055);
--destructive: oklch(0.608 0.219 28.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.185 8.687);
--chart-1: oklch(0.653 0.185 8.687);
--chart-2: oklch(0.348 0.058 4.424);
--chart-3: oklch(0.321 0 180);
--chart-4: oklch(0.375 0.063 4.525);
--chart-5: oklch(0.654 0.192 9.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0 169.695);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.116 0 180);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.132 0 165.964);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.216 0 180);
--input: oklch(0.248 0 173.29);
--primary: oklch(0.653 0.185 8.687);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.348 0.058 4.424);
--secondary-foreground: oklch(0.87 0.027 0.719);
--accent: oklch(0.321 0 180);
--accent-foreground: oklch(0.845 0 164.055);
--destructive: oklch(0.608 0.219 28.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.185 8.687);
--chart-1: oklch(0.653 0.185 8.687);
--chart-2: oklch(0.348 0.058 4.424);
--chart-3: oklch(0.321 0 180);
--chart-4: oklch(0.375 0.063 4.525);
--chart-5: oklch(0.654 0.192 9.109);
}