Hen for shadcn/ui

Hen is a shadcn/ui theme built around a light teal primary color (#eaf5f4) with muted red accents (#c0b5b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#eaf5f4) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#ffffffwhite
#020807black
Foreground
#040c0bblack
#ffffffwhite
Card
#ffffffwhite
#020807black
Card foreground
#040c0bblack
#ffffffwhite
Popover
#ffffffwhite
#020807black
Popover foreground
#040c0bblack
#ffffffwhite
Primary
#eaf5f4whitesmoke
#eaf5f4whitesmoke
Primary foreground
#18302ddarkslategray
#18302ddarkslategray
Secondary
#cfcfcflightgrey
#141f1eblack
Secondary foreground
#363636darkslategray
#a3c2bfsilver
Muted
#f6eeeelinen
#091110black
Muted foreground
#635f5fdimgray
#9ca0a0darkgray
Accent
#c0b5b5silver
#1f3835darkslategray
Accent foreground
#241e1eblack
#b3d5d2lightsteelblue
Destructive
#880101darkred
#e80202red
Destructive foreground
#febdbdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaf5f4whitesmoke
#eaf5f4whitesmoke

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button12.58:1AAA
Secondary button7.72:1AAA
Muted text5.52:1AA
Accent8.18:1AAA
Destructive6.42:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button12.58:1AAA
Secondary button8.88:1AAA
Muted text7.24:1AAA
Accent7.98:1AAA
Destructive4.71:1AA

CSS variables

Paste this into your globals.css to use Hen in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.015 188.942);
  --muted: oklch(0.956 0.009 17.311);
  --muted-foreground: oklch(0.489 0.005 17.326);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.015 188.942);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.015 188.942);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.962 0.011 189.813);
  --primary-foreground: oklch(0.288 0.031 187.367);
  --secondary: oklch(0.853 0 168.69);
  --secondary-foreground: oklch(0.331 0 180);
  --accent: oklch(0.781 0.013 17.426);
  --accent-foreground: oklch(0.243 0.008 17.729);
  --destructive: oklch(0.395 0.161 29.096);
  --destructive-foreground: oklch(0.859 0.075 18.731);
  --ring: oklch(0.962 0.011 189.813);
  --chart-1: oklch(0.962 0.011 189.813);
  --chart-2: oklch(0.853 0 168.69);
  --chart-3: oklch(0.781 0.013 17.426);
  --chart-4: oklch(0.877 0 180);
  --chart-5: oklch(0.962 0.012 189.79);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 189.341);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.013 188.328);
  --muted-foreground: oklch(0.703 0.004 189.931);
  --popover: oklch(0.125 0.013 189.341);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.013 189.341);
  --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.962 0.011 189.813);
  --primary-foreground: oklch(0.288 0.031 187.367);
  --secondary: oklch(0.227 0.015 188.54);
  --secondary-foreground: oklch(0.79 0.033 189.097);
  --accent: oklch(0.319 0.032 187.61);
  --accent-foreground: oklch(0.848 0.036 189.081);
  --destructive: oklch(0.586 0.24 29.162);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.962 0.011 189.813);
  --chart-1: oklch(0.962 0.011 189.813);
  --chart-2: oklch(0.227 0.015 188.54);
  --chart-3: oklch(0.319 0.032 187.61);
  --chart-4: oklch(0.263 0.018 188.415);
  --chart-5: oklch(0.962 0.012 189.79);
}