Zoologist is a shadcn/ui theme built around a yellow primary color (#978949) with purple accents (#894997). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#978949) on a yellow-tinted background (#0f0d05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f0d05black |
| Foreground | #0c0a04black | #f8f8f6whitesmoke |
| Card | #fcfcfcsnow | #131107black |
| Card foreground | #080702black | #fbfaf9snow |
| Popover | #ffffffwhite | #0f0d05black |
| Popover foreground | #0c0a04black | #f8f8f6whitesmoke |
| Primary | #978949peru | #978949peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #499789cadetblue | #499789cadetblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5dddbgainsboro | #222a29darkslategray |
| Muted foreground | #3b4543darkslategray | #bac4c2silver |
| Accent | #894997rebeccapurple | #894997rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #620904maroon | #dc1409red |
| Destructive foreground | #fba29dlightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #978949peru | #978949peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 3.44:1 | AA Large |
| Muted text | 7.16:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 6.90:1 | AA |
| Text on background | 18.24:1 | AAA |
| Text on card | 18.16:1 | AAA |
| Primary button | 6.00:1 | AA |
| Secondary button | 3.44:1 | AA Large |
| Muted text | 8.18:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 5.05:1 | AA |
Paste this into your globals.css to use Zoologist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.145 0.017 99.595);
--muted: oklch(0.891 0.009 184.031);
--muted-foreground: oklch(0.38 0.014 183.322);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.145 0.017 99.595);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.015 99.999);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.629 0.086 96.986);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.624 0.081 179.951);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.514 0.137 320.038);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.318 0.121 29.642);
--destructive-foreground: oklch(0.799 0.107 23.015);
--ring: oklch(0.629 0.086 96.986);
--chart-1: oklch(0.629 0.086 96.986);
--chart-2: oklch(0.624 0.081 179.951);
--chart-3: oklch(0.514 0.137 320.038);
--chart-4: oklch(0.655 0.085 179.922);
--chart-5: oklch(0.636 0.092 96.924);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.018 98.199);
--foreground: oklch(0.979 0.002 96.196);
--muted: oklch(0.278 0.012 183.104);
--muted-foreground: oklch(0.813 0.012 183.93);
--popover: oklch(0.16 0.018 98.199);
--popover-foreground: oklch(0.979 0.002 96.196);
--card: oklch(0.176 0.02 97.527);
--card-foreground: oklch(0.986 0.002 96.185);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.629 0.086 96.986);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.624 0.081 179.951);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.514 0.137 320.038);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.567 0.226 29.496);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.086 96.986);
--chart-1: oklch(0.629 0.086 96.986);
--chart-2: oklch(0.624 0.081 179.951);
--chart-3: oklch(0.514 0.137 320.038);
--chart-4: oklch(0.655 0.085 179.922);
--chart-5: oklch(0.636 0.092 96.924);
}