Hairy is a shadcn/ui theme built around a light green primary color (#a7f1c2) with light pink accents (#f1a7d6). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the light green primary (#a7f1c2) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #000000black |
| Foreground | #010402black | #f8fbfamintcream |
| Card | #fbfdfcwhite | #000000black |
| Card foreground | #010402black | #f8fbfamintcream |
| Popover | #fbfdfcwhite | #000000black |
| Popover foreground | #010402black | #f8fbfamintcream |
| Primary | #a7f1c2powderblue | #a7f1c2powderblue |
| Primary foreground | #0e5829darkgreen | #0e5829darkgreen |
| Secondary | #f1a7d6plum | #f1a7d6plum |
| Secondary foreground | #580e3dindigo | #580e3dindigo |
| Muted | #ece9eblinen | #161315black |
| Muted foreground | #67515fdimgray | #ae98a6darkgray |
| Accent | #f1a7d6plum | #f1a7d6plum |
| Accent foreground | #580e3dindigo | #580e3dindigo |
| Destructive | #b71106firebrick | #e91607red |
| Destructive foreground | #fff1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7f1c2powderblue | #a7f1c2powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 20.17:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Hairy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 158.661);
--foreground: oklch(0.099 0.016 158.457);
--muted: oklch(0.937 0.005 338.834);
--muted-foreground: oklch(0.462 0.036 340.319);
--popover: oklch(0.994 0.003 158.661);
--popover-foreground: oklch(0.099 0.016 158.457);
--card: oklch(0.994 0.003 158.661);
--card-foreground: oklch(0.099 0.016 158.457);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.897 0.097 156.085);
--primary-foreground: oklch(0.405 0.103 150.334);
--secondary: oklch(0.813 0.104 341.289);
--secondary-foreground: oklch(0.316 0.116 347.105);
--accent: oklch(0.813 0.104 341.289);
--accent-foreground: oklch(0.316 0.116 347.105);
--destructive: oklch(0.495 0.195 29.818);
--destructive-foreground: oklch(0.969 0.015 22.387);
--ring: oklch(0.897 0.097 156.085);
--chart-1: oklch(0.897 0.097 156.085);
--chart-2: oklch(0.813 0.104 341.289);
--chart-3: oklch(0.813 0.104 341.289);
--chart-4: oklch(0.84 0.088 340.837);
--chart-5: oklch(0.899 0.101 155.975);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.004 158.635);
--muted: oklch(0.19 0.007 339.544);
--muted-foreground: oklch(0.704 0.032 339.679);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.004 158.635);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.004 158.635);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.897 0.097 156.085);
--primary-foreground: oklch(0.405 0.103 150.334);
--secondary: oklch(0.813 0.104 341.289);
--secondary-foreground: oklch(0.316 0.116 347.105);
--accent: oklch(0.813 0.104 341.289);
--accent-foreground: oklch(0.316 0.116 347.105);
--destructive: oklch(0.591 0.235 29.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.897 0.097 156.085);
--chart-1: oklch(0.897 0.097 156.085);
--chart-2: oklch(0.813 0.104 341.289);
--chart-3: oklch(0.813 0.104 341.289);
--chart-4: oklch(0.84 0.088 340.837);
--chart-5: oklch(0.899 0.101 155.975);
}