Headache for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.11:1AAA
Text on card20.14:1AAA
Primary button11.10:1AAA
Secondary button4.80:1AA
Muted text4.57:1AA
Accent8.23:1AAA
Destructive4.42:1AA Large
Dark mode
Text on background19.48:1AAA
Text on card19.47:1AAA
Primary button11.10:1AAA
Secondary button4.80:1AA
Muted text6.28:1AA
Accent8.23:1AAA
Destructive6.66:1AA

CSS variables

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);
}