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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 12.58:1 | AAA |
| Secondary button | 8.88:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.71:1 | AA |
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);
}