Harvest is a shadcn/ui theme built around a neutral gray primary color (#c6cdc8) with muted light green accents (#e4ece7). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c6cdc8) on a green-tinted background (#060f09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f09black |
| Foreground | #020d06black | #fcfdfcwhite |
| Card | #ffffffwhite | #060f09black |
| Card foreground | #020d06black | #fcfdfcwhite |
| Popover | #ffffffwhite | #060f09black |
| Popover foreground | #020d06black | #fcfdfcwhite |
| Primary | #c6cdc8silver | #c6cdc8silver |
| Primary foreground | #2d3430darkslategray | #2d3430darkslategray |
| Secondary | #e4ece7lavender | #272b28darkslategray |
| Secondary foreground | #425c4bdarkslategray | #bfc5c1silver |
| Muted | #d0e7d8gainsboro | #182f21darkslategray |
| Muted foreground | #575757dimgray | #a8a8a8darkgray |
| Accent | #e4ece7lavender | #272b28darkslategray |
| Accent foreground | #425c4bdarkslategray | #bfc5c1silver |
| Destructive | #860404darkred | #f81b1bred |
| Destructive foreground | #fdbfbflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6cdc8silver | #c6cdc8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 6.09:1 | AA |
| Muted text | 5.54:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Harvest in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.025 158.013);
--muted: oklch(0.907 0.032 157.932);
--muted-foreground: oklch(0.456 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.025 158.013);
--card: oklch(1 0 180);
--card-foreground: oklch(0.144 0.025 158.013);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.842 0.01 158.449);
--primary-foreground: oklch(0.316 0.012 157.873);
--secondary: oklch(0.936 0.011 158.473);
--secondary-foreground: oklch(0.45 0.043 156.461);
--accent: oklch(0.936 0.011 158.473);
--accent-foreground: oklch(0.45 0.043 156.461);
--destructive: oklch(0.391 0.157 28.811);
--destructive-foreground: oklch(0.86 0.072 18.656);
--ring: oklch(0.842 0.01 158.449);
--chart-1: oklch(0.842 0.01 158.449);
--chart-2: oklch(0.936 0.011 158.473);
--chart-3: oklch(0.936 0.011 158.473);
--chart-4: oklch(0.957 0.007 158.56);
--chart-5: oklch(0.844 0.015 158.333);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.019 157.378);
--foreground: oklch(0.993 0.002 158.672);
--muted: oklch(0.283 0.041 155.02);
--muted-foreground: oklch(0.733 0 180);
--popover: oklch(0.155 0.019 157.378);
--popover-foreground: oklch(0.993 0.002 158.672);
--card: oklch(0.155 0.019 157.378);
--card-foreground: oklch(0.993 0.002 158.672);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.842 0.01 158.449);
--primary-foreground: oklch(0.316 0.012 157.873);
--secondary: oklch(0.283 0.007 158.14);
--secondary-foreground: oklch(0.817 0.009 158.49);
--accent: oklch(0.283 0.007 158.14);
--accent-foreground: oklch(0.817 0.009 158.49);
--destructive: oklch(0.622 0.245 28.315);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.842 0.01 158.449);
--chart-1: oklch(0.842 0.01 158.449);
--chart-2: oklch(0.283 0.007 158.14);
--chart-3: oklch(0.283 0.007 158.14);
--chart-4: oklch(0.315 0.009 158.115);
--chart-5: oklch(0.844 0.015 158.333);
}