Hedge is a shadcn/ui theme built around a muted light green primary color (#bacabd) with muted light green accents (#e0ebe3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#bacabd) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #050f07black |
| Foreground | #010501black | #f6f8f7whitesmoke |
| Card | #f8fcf9mintcream | #071309black |
| Card foreground | #000000black | #f9fbf9mintcream |
| Popover | #f8fcf9mintcream | #071309black |
| Popover foreground | #000000black | #f9fbf9mintcream |
| Primary | #bacabdsilver | #bacabdsilver |
| Primary foreground | #232e26darkslategray | #232e26darkslategray |
| Secondary | #e0ebe3gainsboro | #212c23darkslategray |
| Secondary foreground | #3d5c44darkslategray | #b6c9basilver |
| Muted | #dbe1dcgainsboro | #1e241fblack |
| Muted foreground | #5f6d62dimgray | #92a095darkseagreen |
| Accent | #e0ebe3gainsboro | #212c23darkslategray |
| Accent foreground | #3d5c44darkslategray | #b6c9basilver |
| Destructive | #c12d0bfirebrick | #f3502btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bacabdsilver | #bacabdsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 6.08:1 | AA |
| Muted text | 4.10:1 | AA Large |
| Accent | 6.08:1 | AA |
| Destructive | 5.77:1 | AA |
| Text on background | 18.24:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Hedge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 152.577);
--foreground: oklch(0.099 0.021 151.533);
--muted: oklch(0.904 0.01 152.443);
--muted-foreground: oklch(0.52 0.024 151.855);
--popover: oklch(0.987 0.005 152.536);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 152.536);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.823 0.024 152.144);
--primary-foreground: oklch(0.289 0.021 151.418);
--secondary: oklch(0.929 0.015 152.358);
--secondary-foreground: oklch(0.443 0.053 150.525);
--accent: oklch(0.929 0.015 152.358);
--accent-foreground: oklch(0.443 0.053 150.525);
--destructive: oklch(0.531 0.189 33.07);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.024 152.144);
--chart-1: oklch(0.823 0.024 152.144);
--chart-2: oklch(0.929 0.015 152.358);
--chart-3: oklch(0.929 0.015 152.358);
--chart-4: oklch(0.95 0.011 152.441);
--chart-5: oklch(0.825 0.03 152.034);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.023 151.273);
--foreground: oklch(0.978 0.003 152.563);
--muted: oklch(0.254 0.014 151.747);
--muted-foreground: oklch(0.692 0.023 152.088);
--popover: oklch(0.171 0.027 150.46);
--popover-foreground: oklch(0.986 0.002 152.581);
--card: oklch(0.171 0.027 150.46);
--card-foreground: oklch(0.986 0.002 152.581);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.823 0.024 152.144);
--primary-foreground: oklch(0.289 0.021 151.418);
--secondary: oklch(0.279 0.023 151.257);
--secondary-foreground: oklch(0.817 0.029 152.041);
--accent: oklch(0.279 0.023 151.257);
--accent-foreground: oklch(0.817 0.029 152.041);
--destructive: oklch(0.652 0.205 33.968);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.823 0.024 152.144);
--chart-1: oklch(0.823 0.024 152.144);
--chart-2: oklch(0.279 0.023 151.257);
--chart-3: oklch(0.279 0.023 151.257);
--chart-4: oklch(0.312 0.027 151.193);
--chart-5: oklch(0.825 0.03 152.034);
}