Hen is a shadcn/ui theme built around a muted light purple primary color (#e3d5e6) with muted light teal accents (#d5e6e3). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light purple primary (#e3d5e6) on a purple-tinted background (#0d0410).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0d0410black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #fcf6fdghostwhite | #110514black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf6fdghostwhite | #110514black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e3d5e6gainsboro | #e3d5e6gainsboro |
| Primary foreground | #4f3357darkslategray | #4f3357darkslategray |
| Secondary | #e6e3d5gainsboro | #e6e3d5gainsboro |
| Secondary foreground | #574f33darkolivegreen | #574f33darkolivegreen |
| Muted | #edebe3linen | #1c1a12black |
| Muted foreground | #504e49darkslategray | #b6b4afdarkgray |
| Accent | #d5e6e3gainsboro | #d5e6e3gainsboro |
| Accent foreground | #33574fdarkslategray | #33574fdarkslategray |
| Destructive | #cf3217firebrick | #e95035tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3d5e6gainsboro | #e3d5e6gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.95:1 | AA |
| Accent | 6.23:1 | AA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.42:1 | AAA |
| Accent | 6.23:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Hen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 318.889);
--foreground: oklch(0.084 0.019 320.753);
--muted: oklch(0.939 0.01 93.982);
--muted-foreground: oklch(0.424 0.008 94.06);
--popover: oklch(0.981 0.011 318.887);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.011 318.887);
--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.89 0.027 318.88);
--primary-foreground: oklch(0.369 0.069 318.764);
--secondary: oklch(0.914 0.019 94.074);
--secondary-foreground: oklch(0.428 0.044 94.491);
--accent: oklch(0.912 0.019 181.48);
--accent-foreground: oklch(0.426 0.044 178.755);
--destructive: oklch(0.561 0.196 32.218);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.89 0.027 318.88);
--chart-1: oklch(0.89 0.027 318.88);
--chart-2: oklch(0.914 0.019 94.074);
--chart-3: oklch(0.912 0.019 181.48);
--chart-4: oklch(0.934 0.014 94.025);
--chart-5: oklch(0.889 0.031 318.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.032 319.632);
--foreground: oklch(0.992 0.002 318.89);
--muted: oklch(0.216 0.014 94.419);
--muted-foreground: oklch(0.77 0.007 93.961);
--popover: oklch(0.147 0.037 319.129);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.037 319.129);
--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.89 0.027 318.88);
--primary-foreground: oklch(0.369 0.069 318.764);
--secondary: oklch(0.914 0.019 94.074);
--secondary-foreground: oklch(0.428 0.044 94.491);
--accent: oklch(0.912 0.019 181.48);
--accent-foreground: oklch(0.426 0.044 178.755);
--destructive: oklch(0.637 0.193 32.341);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.89 0.027 318.88);
--chart-1: oklch(0.89 0.027 318.88);
--chart-2: oklch(0.914 0.019 94.074);
--chart-3: oklch(0.912 0.019 181.48);
--chart-4: oklch(0.934 0.014 94.025);
--chart-5: oklch(0.889 0.031 318.878);
}