Hatchet is a shadcn/ui theme built around a muted light yellow primary color (#e9e7d8) with muted light green accents (#e3e9d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#e9e7d8) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #ffffffwhite | #030302black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #030302black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #e9e7d8antiquewhite | #e9e7d8antiquewhite |
| Primary foreground | #1a190fblack | #1a190fblack |
| Secondary | #e9ded8gainsboro | #e9ded8gainsboro |
| Secondary foreground | #5b4233darkolivegreen | #5b4233darkolivegreen |
| Muted | #f5eeeblinen | #140e0ablack |
| Muted foreground | #65605ddimgray | #a29d9adarkgray |
| Accent | #e3e9d8gainsboro | #e3e9d8gainsboro |
| Accent foreground | #161a0fblack | #161a0fblack |
| Destructive | #79320bsaddlebrown | #e55e15chocolate |
| Destructive foreground | #f9d2bepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9e7d8antiquewhite | #e9e7d8antiquewhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 14.15:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 5.41:1 | AA |
| Accent | 14.21:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 14.15:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 14.21:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Hatchet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.102 0.014 103.001);
--muted: oklch(0.954 0.008 52.463);
--muted-foreground: oklch(0.492 0.008 52.37);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.102 0.014 103.001);
--card: oklch(1 0 180);
--card-foreground: oklch(0.102 0.014 103.001);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.02 99.65);
--primary-foreground: oklch(0.21 0.018 100.418);
--secondary: oklch(0.908 0.015 52.364);
--secondary-foreground: oklch(0.403 0.042 51.207);
--accent: oklch(0.924 0.024 123.324);
--accent-foreground: oklch(0.21 0.022 124.646);
--destructive: oklch(0.41 0.111 44.163);
--destructive-foreground: oklch(0.892 0.052 49.97);
--ring: oklch(0.925 0.02 99.65);
--chart-1: oklch(0.925 0.02 99.65);
--chart-2: oklch(0.908 0.015 52.364);
--chart-3: oklch(0.924 0.024 123.324);
--chart-4: oklch(0.931 0.011 52.422);
--chart-5: oklch(0.927 0.022 99.681);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.008 101.712);
--foreground: oklch(0.994 0.002 99.366);
--muted: oklch(0.171 0.013 51.619);
--muted-foreground: oklch(0.7 0.007 52.443);
--popover: oklch(0.098 0.008 101.712);
--popover-foreground: oklch(0.994 0.002 99.366);
--card: oklch(0.098 0.008 101.712);
--card-foreground: oklch(0.994 0.002 99.366);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.02 99.65);
--primary-foreground: oklch(0.21 0.018 100.418);
--secondary: oklch(0.908 0.015 52.364);
--secondary-foreground: oklch(0.403 0.042 51.207);
--accent: oklch(0.924 0.024 123.324);
--accent-foreground: oklch(0.21 0.022 124.646);
--destructive: oklch(0.645 0.183 42.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.02 99.65);
--chart-1: oklch(0.925 0.02 99.65);
--chart-2: oklch(0.908 0.015 52.364);
--chart-3: oklch(0.924 0.024 123.324);
--chart-4: oklch(0.931 0.011 52.422);
--chart-5: oklch(0.927 0.022 99.681);
}