Hen for shadcn/ui

Hen is a shadcn/ui theme built around a near-black primary color (#0b0f00) with near-black accents (#05000f). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the near-black primary (#0b0f00) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fbfdf7snow
#030302black
Foreground
#030401black
#f8f8f6whitesmoke
Card
#f9fcf3floralwhite
#060703black
Card foreground
#000000black
#fafbf9snow
Popover
#fbfdf7snow
#030302black
Popover foreground
#030401black
#f8f8f6whitesmoke
Primary
#0b0f00black
#0b0f00black
Primary foreground
#98d704lawngreen
#98d704lawngreen
Secondary
#05000fblack
#05000fblack
Secondary foreground
#c3aafdplum
#c3aafdplum
Muted
#e0dfe2gainsboro
#1e1d20black
Muted foreground
#4a4653darkslategray
#b0acb9darkgray
Accent
#05000fblack
#05000fblack
Accent foreground
#c3aafdplum
#c3aafdplum
Destructive
#5d0b09maroon
#d51815firebrick
Destructive foreground
#f6a4a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0f00black
#0b0f00black

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card20.25:1AAA
Primary button11.14:1AAA
Secondary button10.34:1AAA
Muted text6.87:1AA
Accent10.34:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.37:1AAA
Text on card19.48:1AAA
Primary button11.14:1AAA
Secondary button10.34:1AAA
Muted text7.56:1AAA
Accent10.34:1AAA
Destructive5.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 120.181);
  --foreground: oklch(0.103 0.017 119.892);
  --muted: oklch(0.904 0.005 299.944);
  --muted-foreground: oklch(0.402 0.023 299.053);
  --popover: oklch(0.991 0.008 120.181);
  --popover-foreground: oklch(0.103 0.017 119.892);
  --card: oklch(0.986 0.013 120.253);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.158 0.037 120.963);
  --primary-foreground: oklch(0.805 0.21 127.946);
  --secondary: oklch(0.096 0.047 299.582);
  --secondary-foreground: oklch(0.79 0.119 297.409);
  --accent: oklch(0.096 0.047 299.582);
  --accent-foreground: oklch(0.79 0.119 297.409);
  --destructive: oklch(0.309 0.114 27.821);
  --destructive-foreground: oklch(0.798 0.098 20.546);
  --ring: oklch(0.158 0.037 120.963);
  --chart-1: oklch(0.158 0.037 120.963);
  --chart-2: oklch(0.096 0.047 299.582);
  --chart-3: oklch(0.096 0.047 299.582);
  --chart-4: oklch(0.127 0.067 293.528);
  --chart-5: oklch(0.159 0.038 121.012);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.009 119.956);
  --foreground: oklch(0.979 0.003 120.084);
  --muted: oklch(0.232 0.007 299.52);
  --muted-foreground: oklch(0.751 0.02 299.59);
  --popover: oklch(0.098 0.009 119.956);
  --popover-foreground: oklch(0.979 0.003 120.084);
  --card: oklch(0.123 0.011 119.956);
  --card-foreground: oklch(0.986 0.002 120.069);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.158 0.037 120.963);
  --primary-foreground: oklch(0.805 0.21 127.946);
  --secondary: oklch(0.096 0.047 299.582);
  --secondary-foreground: oklch(0.79 0.119 297.409);
  --accent: oklch(0.096 0.047 299.582);
  --accent-foreground: oklch(0.79 0.119 297.409);
  --destructive: oklch(0.557 0.218 28.632);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.158 0.037 120.963);
  --chart-1: oklch(0.158 0.037 120.963);
  --chart-2: oklch(0.096 0.047 299.582);
  --chart-3: oklch(0.096 0.047 299.582);
  --chart-4: oklch(0.127 0.067 293.528);
  --chart-5: oklch(0.159 0.038 121.012);
}