Headache is a shadcn/ui theme built around a teal primary color (#50d396) with orange accents (#d39650). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#50d396) on a teal-tinted background (#040b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b08black |
| Foreground | #020905black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #060f0ablack |
| Card foreground | #010403black | #ffffffwhite |
| Popover | #ffffffwhite | #040b08black |
| Popover foreground | #020905black | #fcfdfcwhite |
| Primary | #50d396mediumaquamarine | #50d396mediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #9650d3darkorchid | #9650d3darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d9cee3gainsboro | #271c31darkslategray |
| Muted foreground | #5c595fdimgray | #a3a0a6darkgray |
| Accent | #d39650peru | #d39650peru |
| Accent foreground | #000000black | #000000black |
| Destructive | #d04d11chocolate | #ee682bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #50d396mediumaquamarine | #50d396mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 11.10:1 | AAA |
| Secondary button | 4.80:1 | AA |
| Muted text | 4.57:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 11.10:1 | AAA |
| Secondary button | 4.80:1 | AA |
| Muted text | 6.28:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Headache in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.019 167.15);
--muted: oklch(0.868 0.03 309.437);
--muted-foreground: oklch(0.469 0.009 309.584);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.019 167.15);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.015 167.15);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.779 0.146 159.655);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.575 0.197 305.611);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.718 0.114 67.861);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.591 0.177 40.41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.779 0.146 159.655);
--chart-1: oklch(0.779 0.146 159.655);
--chart-2: oklch(0.575 0.197 305.611);
--chart-3: oklch(0.718 0.114 67.861);
--chart-4: oklch(0.602 0.185 306.233);
--chart-5: oklch(0.786 0.152 159.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 166.957);
--foreground: oklch(0.993 0.002 166.858);
--muted: oklch(0.249 0.041 308.113);
--muted-foreground: oklch(0.711 0.009 309.666);
--popover: oklch(0.14 0.015 166.957);
--popover-foreground: oklch(0.993 0.002 166.858);
--card: oklch(0.156 0.017 165.152);
--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.779 0.146 159.655);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.575 0.197 305.611);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.718 0.114 67.861);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.675 0.18 42.443);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.779 0.146 159.655);
--chart-1: oklch(0.779 0.146 159.655);
--chart-2: oklch(0.575 0.197 305.611);
--chart-3: oklch(0.718 0.114 67.861);
--chart-4: oklch(0.602 0.185 306.233);
--chart-5: oklch(0.786 0.152 159.308);
}