Haversack is a shadcn/ui theme built around a teal primary color (#86cac7) with yellow accents (#cac786). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#86cac7) on a teal-tinted background (#070e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e0eblack |
| Foreground | #031716black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #081111black |
| Card foreground | #021211black | #ffffffwhite |
| Popover | #ffffffwhite | #070e0eblack |
| Popover foreground | #031716black | #fcfdfdwhite |
| Primary | #86cac7skyblue | #86cac7skyblue |
| Primary foreground | #091515black | #091515black |
| Secondary | #c786caorchid | #c786caorchid |
| Secondary foreground | #150915black | #150915black |
| Muted | #e9e7e9lavender | #181618black |
| Muted foreground | #575158dimgray | #aea7aedarkgray |
| Accent | #cac786tan | #cac786tan |
| Accent foreground | #151509black | #151509black |
| Destructive | #a71f01firebrick | #e42b01orangered |
| Destructive foreground | #ffe2dbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #86cac7skyblue | #86cac7skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.45:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 10.00:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 10.50:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 10.00:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 7.67:1 | AAA |
| Accent | 10.50:1 | AAA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Haversack in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.185 0.027 190.859);
--muted: oklch(0.93 0.004 324.154);
--muted-foreground: oklch(0.443 0.014 324.306);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.185 0.027 190.859);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.167 0.024 191.198);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.793 0.069 191.876);
--primary-foreground: oklch(0.185 0.017 191.743);
--secondary: oklch(0.709 0.119 325.024);
--secondary-foreground: oklch(0.164 0.03 325.101);
--accent: oklch(0.816 0.084 105.546);
--accent-foreground: oklch(0.191 0.021 105.65);
--destructive: oklch(0.473 0.175 32.796);
--destructive-foreground: oklch(0.935 0.033 32.709);
--ring: oklch(0.793 0.069 191.876);
--chart-1: oklch(0.793 0.069 191.876);
--chart-2: oklch(0.709 0.119 325.024);
--chart-3: oklch(0.816 0.084 105.546);
--chart-4: oklch(0.734 0.108 324.924);
--chart-5: oklch(0.799 0.073 191.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.012 192.279);
--foreground: oklch(0.993 0.001 193.588);
--muted: oklch(0.203 0.006 324.29);
--muted-foreground: oklch(0.737 0.012 324.224);
--popover: oklch(0.155 0.012 192.279);
--popover-foreground: oklch(0.993 0.001 193.588);
--card: oklch(0.17 0.014 192.013);
--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.793 0.069 191.876);
--primary-foreground: oklch(0.185 0.017 191.743);
--secondary: oklch(0.709 0.119 325.024);
--secondary-foreground: oklch(0.164 0.03 325.101);
--accent: oklch(0.816 0.084 105.546);
--accent-foreground: oklch(0.191 0.021 105.65);
--destructive: oklch(0.593 0.223 32.291);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.793 0.069 191.876);
--chart-1: oklch(0.793 0.069 191.876);
--chart-2: oklch(0.709 0.119 325.024);
--chart-3: oklch(0.816 0.084 105.546);
--chart-4: oklch(0.734 0.108 324.924);
--chart-5: oklch(0.799 0.073 191.768);
}