Hedge is a shadcn/ui theme built around a vivid purple primary color (#ed35b3) with muted light purple accents (#ebe5e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#ed35b3) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0509black |
| Foreground | #040103black | #ffffffwhite |
| Card | #ffffffwhite | #0a0509black |
| Card foreground | #040103black | #ffffffwhite |
| Popover | #ffffffwhite | #0a0509black |
| Popover foreground | #040103black | #ffffffwhite |
| Primary | #ed35b3deeppink | #ed35b3deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebe5e9lavender | #33242edarkslategray |
| Secondary foreground | #5b4353darkslategray | #cebac8silver |
| Muted | #f2eef0whitesmoke | #110d10black |
| Muted foreground | #54404edarkslategray | #bfabb9silver |
| Accent | #ebe5e9lavender | #33242edarkslategray |
| Accent foreground | #5b4353darkslategray | #cebac8silver |
| Destructive | #81210emaroon | #e84321orangered |
| Destructive foreground | #f9d0c8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ed35b3deeppink | #ed35b3deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.77:1 | AAA |
| Text on card | 20.77:1 | AAA |
| Primary button | 3.63:1 | AA Large |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.20:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 3.63:1 | AA Large |
| Secondary button | 8.02:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Hedge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.021 337.105);
--muted: oklch(0.952 0.006 336.673);
--muted-foreground: oklch(0.397 0.036 338.246);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.021 337.105);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.021 337.105);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.653 0.245 344.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.927 0.01 336.763);
--secondary-foreground: oklch(0.415 0.041 338.382);
--accent: oklch(0.927 0.01 336.763);
--accent-foreground: oklch(0.415 0.041 338.382);
--destructive: oklch(0.402 0.134 33.031);
--destructive-foreground: oklch(0.89 0.048 31.247);
--ring: oklch(0.653 0.245 344.332);
--chart-1: oklch(0.653 0.245 344.332);
--chart-2: oklch(0.927 0.01 336.763);
--chart-3: oklch(0.927 0.01 336.763);
--chart-4: oklch(0.952 0.006 336.691);
--chart-5: oklch(0.657 0.251 344.597);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 336.859);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.009 337.538);
--muted-foreground: oklch(0.762 0.031 337.327);
--popover: oklch(0.126 0.016 336.859);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.016 336.859);
--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.653 0.245 344.332);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.282 0.028 338.397);
--secondary-foreground: oklch(0.811 0.029 337.245);
--accent: oklch(0.282 0.028 338.397);
--accent-foreground: oklch(0.811 0.029 337.245);
--destructive: oklch(0.62 0.207 33.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.245 344.332);
--chart-1: oklch(0.653 0.245 344.332);
--chart-2: oklch(0.282 0.028 338.397);
--chart-3: oklch(0.282 0.028 338.397);
--chart-4: oklch(0.311 0.032 338.466);
--chart-5: oklch(0.657 0.251 344.597);
}