Hairy is a shadcn/ui theme built around a neutral gray primary color (#2d2f2f) with neutral gray accents (#2d2e2f). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the neutral gray primary (#2d2f2f) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfdmintcream | #030707black |
| Foreground | #020808black | #f5fafamintcream |
| Card | #f7fdfdmintcream | #030707black |
| Card foreground | #020808black | #f5fafamintcream |
| Popover | #f7fdfdmintcream | #030707black |
| Popover foreground | #020808black | #f5fafamintcream |
| Primary | #2d2f2fdarkslategray | #2d2f2fdarkslategray |
| Primary foreground | #c6c8c8silver | #c6c8c8silver |
| Secondary | #2d2f2edarkslategray | #2d2f2edarkslategray |
| Secondary foreground | #c6c8c7silver | #c6c8c7silver |
| Muted | #e7eeealavender | #111814black |
| Muted foreground | #404442darkslategray | #bbbfbdsilver |
| Accent | #2d2e2fdarkslategray | #2d2e2fdarkslategray |
| Accent foreground | #c6c7c8silver | #c6c7c8silver |
| Destructive | #8d1c02darkred | #fb3e13orangered |
| Destructive foreground | #fecec3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d2f2fdarkslategray | #2d2f2fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 9.70:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Hairy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 195.869);
--foreground: oklch(0.126 0.015 194.447);
--muted: oklch(0.943 0.009 164.031);
--muted-foreground: oklch(0.383 0.006 163.857);
--popover: oklch(0.989 0.006 195.869);
--popover-foreground: oklch(0.126 0.015 194.447);
--card: oklch(0.989 0.006 195.869);
--card-foreground: oklch(0.126 0.015 194.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.303 0.003 195.824);
--primary-foreground: oklch(0.831 0.002 195.922);
--secondary: oklch(0.302 0.003 164.021);
--secondary-foreground: oklch(0.831 0.003 164.195);
--accent: oklch(0.3 0.002 246.047);
--accent-foreground: oklch(0.829 0.002 245.994);
--destructive: oklch(0.419 0.152 33.176);
--destructive-foreground: oklch(0.889 0.057 32.823);
--ring: oklch(0.303 0.003 195.824);
--chart-1: oklch(0.303 0.003 195.824);
--chart-2: oklch(0.302 0.003 164.021);
--chart-3: oklch(0.3 0.002 246.047);
--chart-4: oklch(0.333 0.004 164.012);
--chart-5: oklch(0.305 0.006 195.61);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 194.924);
--foreground: oklch(0.981 0.006 195.867);
--muted: oklch(0.2 0.013 162.435);
--muted-foreground: oklch(0.8 0.005 164.116);
--popover: oklch(0.122 0.009 194.924);
--popover-foreground: oklch(0.981 0.006 195.867);
--card: oklch(0.122 0.009 194.924);
--card-foreground: oklch(0.981 0.006 195.867);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.303 0.003 195.824);
--primary-foreground: oklch(0.831 0.002 195.922);
--secondary: oklch(0.302 0.003 164.021);
--secondary-foreground: oklch(0.831 0.003 164.195);
--accent: oklch(0.3 0.002 246.047);
--accent-foreground: oklch(0.829 0.002 245.994);
--destructive: oklch(0.648 0.23 33.096);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.303 0.003 195.824);
--chart-1: oklch(0.303 0.003 195.824);
--chart-2: oklch(0.302 0.003 164.021);
--chart-3: oklch(0.3 0.002 246.047);
--chart-4: oklch(0.333 0.004 164.012);
--chart-5: oklch(0.305 0.006 195.61);
}