Hen is a shadcn/ui theme built around a teal primary color (#86ead7) with red accents (#ea8698). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#86ead7) on a teal-tinted background (#070e0c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #070e0cblack |
| Foreground | #020d0bblack | #f9fbfamintcream |
| Card | #f8fcfbmintcream | #081110black |
| Card foreground | #010907black | #fcfdfdwhite |
| Popover | #f8fcfbmintcream | #081110black |
| Popover foreground | #010907black | #fcfdfdwhite |
| Primary | #86ead7aquamarine | #86ead7aquamarine |
| Primary foreground | #09342cdarkslategray | #09342cdarkslategray |
| Secondary | #ea8698lightcoral | #ea8698lightcoral |
| Secondary foreground | #340911black | #340911black |
| Muted | #e1dadcgainsboro | #251e1fblack |
| Muted foreground | #514d4edarkslategray | #b2aeafdarkgray |
| Accent | #ea8698lightcoral | #ea8698lightcoral |
| Accent foreground | #340911black | #340911black |
| Destructive | #9d2001darkred | #fe5025orangered |
| Destructive foreground | #ffdad1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86ead7aquamarine | #86ead7aquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.06:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 6.11:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 3.28:1 | AA Large |
Paste this into your globals.css to use Hen in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 184.248);
--foreground: oklch(0.146 0.02 182.957);
--muted: oklch(0.895 0.008 4.553);
--muted-foreground: oklch(0.425 0.004 4.577);
--popover: oklch(0.988 0.005 184.183);
--popover-foreground: oklch(0.127 0.017 184.03);
--card: oklch(0.988 0.005 184.183);
--card-foreground: oklch(0.127 0.017 184.03);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.869 0.098 180.716);
--primary-foreground: oklch(0.294 0.048 177.804);
--secondary: oklch(0.731 0.123 8.824);
--secondary-foreground: oklch(0.222 0.068 14.111);
--accent: oklch(0.731 0.123 8.824);
--accent-foreground: oklch(0.222 0.068 14.111);
--destructive: oklch(0.454 0.165 33.509);
--destructive-foreground: oklch(0.918 0.043 34.326);
--ring: oklch(0.869 0.098 180.716);
--chart-1: oklch(0.869 0.098 180.716);
--chart-2: oklch(0.731 0.123 8.824);
--chart-3: oklch(0.731 0.123 8.824);
--chart-4: oklch(0.758 0.109 8.106);
--chart-5: oklch(0.874 0.102 180.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.012 182.74);
--foreground: oklch(0.986 0.002 184.27);
--muted: oklch(0.242 0.012 5.558);
--muted-foreground: oklch(0.755 0.004 4.441);
--popover: oklch(0.169 0.014 181.995);
--popover-foreground: oklch(0.993 0.001 184.291);
--card: oklch(0.169 0.014 181.995);
--card-foreground: oklch(0.993 0.001 184.291);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.869 0.098 180.716);
--primary-foreground: oklch(0.294 0.048 177.804);
--secondary: oklch(0.731 0.123 8.824);
--secondary-foreground: oklch(0.222 0.068 14.111);
--accent: oklch(0.731 0.123 8.824);
--accent-foreground: oklch(0.222 0.068 14.111);
--destructive: oklch(0.67 0.217 34.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.869 0.098 180.716);
--chart-1: oklch(0.869 0.098 180.716);
--chart-2: oklch(0.731 0.123 8.824);
--chart-3: oklch(0.731 0.123 8.824);
--chart-4: oklch(0.758 0.109 8.106);
--chart-5: oklch(0.874 0.102 180.573);
}