Hedge is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#030203). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030203) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #110416black | #faf9fbghostwhite |
| Card | #ffffffwhite | #030104black |
| Card foreground | #110416black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #030104black |
| Popover foreground | #110416black | #faf9fbghostwhite |
| Primary | #030203black | #030203black |
| Primary foreground | #a18fa8darkgray | #a18fa8darkgray |
| Secondary | #020203black | #020203black |
| Secondary foreground | #948fa8lightslategray | #948fa8lightslategray |
| Muted | #e0dde9gainsboro | #191622black |
| Muted foreground | #3e3a4adarkslategray | #b8b5c5silver |
| Accent | #030203black | #030203black |
| Accent foreground | #a88fa3darkgray | #a88fa3darkgray |
| Destructive | #973911saddlebrown | #e76127chocolate |
| Destructive foreground | #fbe7dfmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.21:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.86:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 6.13:1 | AA |
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.142 0.045 316.498);
--muted: oklch(0.903 0.016 296.005);
--muted-foreground: oklch(0.36 0.028 294.912);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.045 316.498);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.045 316.498);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.09 0.004 317.025);
--primary-foreground: oklch(0.674 0.043 316.422);
--secondary: oklch(0.089 0.004 296.195);
--secondary-foreground: oklch(0.662 0.038 295.263);
--accent: oklch(0.09 0.004 332.808);
--accent-foreground: oklch(0.679 0.042 333.544);
--destructive: oklch(0.472 0.136 40.432);
--destructive-foreground: oklch(0.943 0.025 44.731);
--ring: oklch(0.09 0.004 317.025);
--chart-1: oklch(0.09 0.004 317.025);
--chart-2: oklch(0.089 0.004 296.195);
--chart-3: oklch(0.09 0.004 332.808);
--chart-4: oklch(0.141 0.006 295.95);
--chart-5: oklch(0.09 0.005 317.124);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.02 318.655);
--foreground: oklch(0.984 0.003 316.601);
--muted: oklch(0.21 0.023 294.239);
--muted-foreground: oklch(0.78 0.023 295.8);
--popover: oklch(0.083 0.02 318.655);
--popover-foreground: oklch(0.984 0.003 316.601);
--card: oklch(0.083 0.02 318.655);
--card-foreground: oklch(0.984 0.003 316.601);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.09 0.004 317.025);
--primary-foreground: oklch(0.674 0.043 316.422);
--secondary: oklch(0.089 0.004 296.195);
--secondary-foreground: oklch(0.662 0.038 295.263);
--accent: oklch(0.09 0.004 332.808);
--accent-foreground: oklch(0.679 0.042 333.544);
--destructive: oklch(0.654 0.18 41.052);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.09 0.004 317.025);
--chart-1: oklch(0.09 0.004 317.025);
--chart-2: oklch(0.089 0.004 296.195);
--chart-3: oklch(0.09 0.004 332.808);
--chart-4: oklch(0.141 0.006 295.95);
--chart-5: oklch(0.09 0.005 317.124);
}