Hunter is a shadcn/ui theme built around a green primary color (#38a81f) with red accents (#a81f38). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#38a81f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #000000black |
| Foreground | #081504black | #fcfdfcwhite |
| Card | #f8fdf6mintcream | #030303black |
| Card foreground | #061104black | #ffffffwhite |
| Popover | #f8fdf6mintcream | #030303black |
| Popover foreground | #061104black | #ffffffwhite |
| Primary | #38a81fforestgreen | #38a81fforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1f38a8darkslateblue | #1f38a8darkslateblue |
| Secondary foreground | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Muted | #d8dceegainsboro | #111527black |
| Muted foreground | #404454darkslategray | #abafbfdarkgray |
| Accent | #a81f38brown | #a81f38brown |
| Accent foreground | #fefbfbsnow | #fefbfbsnow |
| Destructive | #8c2708saddlebrown | #f35d30tomato |
| Destructive foreground | #fcd6cabisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #38a81fforestgreen | #38a81fforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.50:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 3.09:1 | AA Large |
| Secondary button | 9.28:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 6.49:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 3.09:1 | AA Large |
| Secondary button | 9.28:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Hunter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.006 139.986);
--foreground: oklch(0.178 0.039 138.928);
--muted: oklch(0.896 0.025 275.779);
--muted-foreground: oklch(0.389 0.027 275.15);
--popover: oklch(0.989 0.011 139.981);
--popover-foreground: oklch(0.161 0.034 138.481);
--card: oklch(0.989 0.011 139.981);
--card-foreground: oklch(0.161 0.034 138.481);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.643 0.196 140.674);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.403 0.181 267.208);
--secondary-foreground: oklch(0.989 0.004 276.115);
--accent: oklch(0.479 0.171 17.396);
--accent-foreground: oklch(0.99 0.004 4.415);
--destructive: oklch(0.428 0.141 35.643);
--destructive-foreground: oklch(0.904 0.046 37.598);
--ring: oklch(0.643 0.196 140.674);
--chart-1: oklch(0.643 0.196 140.674);
--chart-2: oklch(0.403 0.181 267.208);
--chart-3: oklch(0.479 0.171 17.396);
--chart-4: oklch(0.425 0.192 267.122);
--chart-5: oklch(0.651 0.201 140.761);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 139.989);
--muted: oklch(0.202 0.037 273.044);
--muted-foreground: oklch(0.756 0.023 275.755);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.643 0.196 140.674);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.403 0.181 267.208);
--secondary-foreground: oklch(0.989 0.004 276.115);
--accent: oklch(0.479 0.171 17.396);
--accent-foreground: oklch(0.99 0.004 4.415);
--destructive: oklch(0.668 0.193 36.908);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.643 0.196 140.674);
--chart-1: oklch(0.643 0.196 140.674);
--chart-2: oklch(0.403 0.181 267.208);
--chart-3: oklch(0.479 0.171 17.396);
--chart-4: oklch(0.425 0.192 267.122);
--chart-5: oklch(0.651 0.201 140.761);
}