Deer is a shadcn/ui theme built around a muted green primary color (#899f84) with muted green accents (#849f8c). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the muted green primary (#899f84) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #000000black |
| Foreground | #030802black | #f6faf5whitesmoke |
| Card | #f5fbf4whitesmoke | #030303black |
| Card foreground | #020401black | #f9fcf8mintcream |
| Popover | #f5fbf4whitesmoke | #030303black |
| Popover foreground | #020401black | #f9fcf8mintcream |
| Primary | #899f84darkseagreen | #899f84darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #979f84darkseagreen | #979f84darkseagreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebf1e0beige | #1a1f0eblack |
| Muted foreground | #464743darkslategray | #bbbcb8silver |
| Accent | #849f8clightslategray | #849f8clightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #bf4e0dchocolate | #f07228chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #899f84darkseagreen | #899f84darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 7.12:1 | AAA |
Paste this into your globals.css to use Deer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 139.442);
--foreground: oklch(0.125 0.024 137.571);
--muted: oklch(0.948 0.023 120.449);
--muted-foreground: oklch(0.395 0.007 120.337);
--popover: oklch(0.981 0.011 139.441);
--popover-foreground: oklch(0.099 0.019 137.571);
--card: oklch(0.981 0.011 139.441);
--card-foreground: oklch(0.099 0.019 137.571);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.677 0.045 139.432);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.687 0.038 120.992);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.04 154.689);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.565 0.159 43.872);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.677 0.045 139.432);
--chart-1: oklch(0.677 0.045 139.432);
--chart-2: oklch(0.687 0.038 120.992);
--chart-3: oklch(0.675 0.04 154.689);
--chart-4: oklch(0.71 0.036 120.89);
--chart-5: oklch(0.682 0.056 139.433);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.008 139.442);
--muted: oklch(0.231 0.031 122.495);
--muted-foreground: oklch(0.794 0.006 120.163);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.987 0.005 139.443);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.005 139.443);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.677 0.045 139.432);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.687 0.038 120.992);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.675 0.04 154.689);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.691 0.175 46.253);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.677 0.045 139.432);
--chart-1: oklch(0.677 0.045 139.432);
--chart-2: oklch(0.687 0.038 120.992);
--chart-3: oklch(0.675 0.04 154.689);
--chart-4: oklch(0.71 0.036 120.89);
--chart-5: oklch(0.682 0.056 139.433);
}