Forager is a shadcn/ui theme built around a green primary color (#517d36) with neutral gray accents (#e2e5e1). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#517d36) on a green-tinted background (#091005).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #091005black |
| Foreground | #020401black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #0b1406black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #091005black |
| Popover foreground | #020401black | #fcfdfcwhite |
| Primary | #517d36darkolivegreen | #517d36darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e2e5e1gainsboro | #23291fblack |
| Secondary foreground | #494f45darkslategray | #bbc6b3silver |
| Muted | #eaede9linen | #141612black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #e2e5e1gainsboro | #23291fblack |
| Accent foreground | #494f45darkslategray | #bbc6b3silver |
| Destructive | #c31a04firebrick | #fa2f14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #517d36darkolivegreen | #517d36darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.60:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 8.08:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Forager in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.018 131.357);
--muted: oklch(0.942 0.006 133.029);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.018 131.357);
--card: oklch(0.992 0 161.565);
--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.54 0.113 134.951);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.919 0.006 133.029);
--secondary-foreground: oklch(0.419 0.019 133.3);
--accent: oklch(0.919 0.006 133.029);
--accent-foreground: oklch(0.419 0.019 133.3);
--destructive: oklch(0.522 0.202 30.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.54 0.113 134.951);
--chart-1: oklch(0.54 0.113 134.951);
--chart-2: oklch(0.919 0.006 133.029);
--chart-3: oklch(0.919 0.006 133.029);
--chart-4: oklch(0.941 0.004 133.016);
--chart-5: oklch(0.547 0.12 135.118);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.027 132.573);
--foreground: oklch(0.993 0.002 132.999);
--muted: oklch(0.198 0.009 133.302);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.161 0.027 132.573);
--popover-foreground: oklch(0.993 0.002 132.999);
--card: oklch(0.177 0.031 133.621);
--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.54 0.113 134.951);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.27 0.02 133.523);
--secondary-foreground: oklch(0.812 0.028 133.231);
--accent: oklch(0.27 0.02 133.523);
--accent-foreground: oklch(0.812 0.028 133.231);
--destructive: oklch(0.636 0.238 30.938);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.54 0.113 134.951);
--chart-1: oklch(0.54 0.113 134.951);
--chart-2: oklch(0.27 0.02 133.523);
--chart-3: oklch(0.27 0.02 133.523);
--chart-4: oklch(0.304 0.024 133.552);
--chart-5: oklch(0.547 0.12 135.118);
}