Hair is a shadcn/ui theme built around a near-white primary color (#f5fefd) with near-white accents (#fefdf5). The light mode uses a neutral background (#fbfefe). Dark mode keeps the near-white primary (#f5fefd) on a teal-tinted background (#050f0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050f0eblack |
| Foreground | #020807black | #ffffffwhite |
| Card | #f6fdfdmintcream | #061311black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f6fdfdmintcream | #061311black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #f5fefdmintcream | #f5fefdmintcream |
| Primary foreground | #05574cdarkslategray | #05574cdarkslategray |
| Secondary | #fdf5feghostwhite | #fdf5feghostwhite |
| Secondary foreground | #a10ab8darkviolet | #a10ab8darkviolet |
| Muted | #e2cce6gainsboro | #301933darkslategray |
| Muted foreground | #5d4861dimgray | #b49eb7darkgray |
| Accent | #fefdf5ivory | #fefdf5ivory |
| Accent foreground | #574c05darkolivegreen | #574c05darkolivegreen |
| Destructive | #d41908firebrick | #f73322orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5fefdmintcream | #f5fefdmintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 5.45:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 5.34:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 6.48:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Hair in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 187.654);
--foreground: oklch(0.125 0.014 187.223);
--muted: oklch(0.871 0.043 321.727);
--muted-foreground: oklch(0.433 0.049 321.889);
--popover: oklch(0.99 0.008 187.559);
--popover-foreground: oklch(0.099 0.011 187.223);
--card: oklch(0.99 0.008 187.559);
--card-foreground: oklch(0.099 0.011 187.223);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.991 0.01 187.505);
--primary-foreground: oklch(0.411 0.073 180.232);
--secondary: oklch(0.98 0.015 321.634);
--secondary-foreground: oklch(0.515 0.241 321.11);
--accent: oklch(0.994 0.011 99.496);
--accent-foreground: oklch(0.416 0.084 99.393);
--destructive: oklch(0.553 0.217 30.06);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.991 0.01 187.505);
--chart-1: oklch(0.991 0.01 187.505);
--chart-2: oklch(0.98 0.015 321.634);
--chart-3: oklch(0.994 0.011 99.496);
--chart-4: oklch(1.01 0.007 141.572);
--chart-5: oklch(0.992 0.01 187.497);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.017 185.722);
--foreground: oklch(1 0 180);
--muted: oklch(0.257 0.056 322.087);
--muted-foreground: oklch(0.727 0.044 321.755);
--popover: oklch(0.174 0.019 185.033);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.174 0.019 185.033);
--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.991 0.01 187.505);
--primary-foreground: oklch(0.411 0.073 180.232);
--secondary: oklch(0.98 0.015 321.634);
--secondary-foreground: oklch(0.515 0.241 321.11);
--accent: oklch(0.994 0.011 99.496);
--accent-foreground: oklch(0.416 0.084 99.393);
--destructive: oklch(0.634 0.232 29.971);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.991 0.01 187.505);
--chart-1: oklch(0.991 0.01 187.505);
--chart-2: oklch(0.98 0.015 321.634);
--chart-3: oklch(0.994 0.011 99.496);
--chart-4: oklch(1.01 0.007 141.572);
--chart-5: oklch(0.992 0.01 187.497);
}