Haircut is a shadcn/ui theme built around a light green primary color (#e9f3c4) with light purple accents (#f3c4e9). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#e9f3c4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #0e1103black | #fdfdfcwhite |
| Card | #fbfcf8snow | #000000black |
| Card foreground | #0e1103black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #0e1103black | #fdfdfcwhite |
| Primary | #e9f3c4lightgoldenrodyellow | #e9f3c4lightgoldenrodyellow |
| Primary foreground | #151905black | #151905black |
| Secondary | #c4e9f3paleturquoise | #c4e9f3paleturquoise |
| Secondary foreground | #051519black | #051519black |
| Muted | #eceeeewhitesmoke | #111213black |
| Muted foreground | #47585cdarkslategray | #a3b3b8darkgray |
| Accent | #f3c4e9thistle | #f3c4e9thistle |
| Accent foreground | #6e175bpurple | #6e175bpurple |
| Destructive | #ab0503darkred | #fb1c18red |
| Destructive foreground | #ffe1e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9f3c4lightgoldenrodyellow | #e9f3c4lightgoldenrodyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 15.38:1 | AAA |
| Secondary button | 14.40:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 15.38:1 | AAA |
| Secondary button | 14.40:1 | AAA |
| Muted text | 8.64:1 | AAA |
| Accent | 7.15:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Haircut in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 116.443);
--foreground: oklch(0.17 0.03 118.492);
--muted: oklch(0.947 0.002 216.02);
--muted-foreground: oklch(0.447 0.022 216.369);
--popover: oklch(0.99 0.006 116.443);
--popover-foreground: oklch(0.17 0.03 118.492);
--card: oklch(0.99 0.006 116.443);
--card-foreground: oklch(0.17 0.03 118.492);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.944 0.062 117.539);
--primary-foreground: oklch(0.205 0.037 119.598);
--secondary: oklch(0.91 0.041 216.323);
--secondary-foreground: oklch(0.184 0.024 217.331);
--accent: oklch(0.872 0.072 333.839);
--accent-foreground: oklch(0.379 0.142 338.436);
--destructive: oklch(0.467 0.189 29.286);
--destructive-foreground: oklch(0.935 0.032 18.908);
--ring: oklch(0.944 0.062 117.539);
--chart-1: oklch(0.944 0.062 117.539);
--chart-2: oklch(0.91 0.041 216.323);
--chart-3: oklch(0.872 0.072 333.839);
--chart-4: oklch(0.929 0.032 216.224);
--chart-5: oklch(0.947 0.065 117.589);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 116.363);
--muted: oklch(0.183 0.003 216.086);
--muted-foreground: oklch(0.757 0.02 216.153);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 116.363);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 116.363);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.944 0.062 117.539);
--primary-foreground: oklch(0.205 0.037 119.598);
--secondary: oklch(0.91 0.041 216.323);
--secondary-foreground: oklch(0.184 0.024 217.331);
--accent: oklch(0.872 0.072 333.839);
--accent-foreground: oklch(0.379 0.142 338.436);
--destructive: oklch(0.629 0.248 28.748);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.944 0.062 117.539);
--chart-1: oklch(0.944 0.062 117.539);
--chart-2: oklch(0.91 0.041 216.323);
--chart-3: oklch(0.872 0.072 333.839);
--chart-4: oklch(0.929 0.032 216.224);
--chart-5: oklch(0.947 0.065 117.589);
}