Zoo is a shadcn/ui theme built around a near-white primary color (#f5fff6) with near-white accents (#fff5fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f5fff6) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010401black |
| Foreground | #061406black | #ffffffwhite |
| Card | #ffffffwhite | #010401black |
| Card foreground | #061406black | #ffffffwhite |
| Popover | #ffffffwhite | #010401black |
| Popover foreground | #061406black | #ffffffwhite |
| Primary | #f5fff6mintcream | #f5fff6mintcream |
| Primary foreground | #045808darkgreen | #045808darkgreen |
| Secondary | #fff5fesnow | #fff5fesnow |
| Secondary foreground | #580454indigo | #580454indigo |
| Muted | #ecdaeblavender | #251324black |
| Muted foreground | #585558dimgray | #aaa7aadarkgray |
| Accent | #fff5fesnow | #fff5fesnow |
| Accent foreground | #580454indigo | #580454indigo |
| Destructive | #b12310firebrick | #eb3b24orangered |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5fff6mintcream | #f5fff6mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 12.66:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 12.66:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 12.66:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 12.66:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Zoo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.035 145.192);
--muted: oklch(0.908 0.03 327.339);
--muted-foreground: oklch(0.454 0.007 327.178);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.035 145.192);
--card: oklch(1 0 180);
--card-foreground: oklch(0.172 0.035 145.192);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.989 0.015 146.894);
--primary-foreground: oklch(0.4 0.131 143.055);
--secondary: oklch(0.981 0.015 327.182);
--secondary-foreground: oklch(0.323 0.142 330.762);
--accent: oklch(0.981 0.015 327.182);
--accent-foreground: oklch(0.323 0.142 330.762);
--destructive: oklch(0.495 0.18 31.026);
--destructive-foreground: oklch(0.981 0.008 26.496);
--ring: oklch(0.989 0.015 146.894);
--chart-1: oklch(0.989 0.015 146.894);
--chart-2: oklch(0.981 0.015 327.182);
--chart-3: oklch(0.981 0.015 327.182);
--chart-4: oklch(1.01 0.008 146.968);
--chart-5: oklch(0.989 0.016 146.889);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.015 145.848);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.042 328.65);
--muted-foreground: oklch(0.731 0.006 327.115);
--popover: oklch(0.096 0.015 145.848);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.015 145.848);
--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.989 0.015 146.894);
--primary-foreground: oklch(0.4 0.131 143.055);
--secondary: oklch(0.981 0.015 327.182);
--secondary-foreground: oklch(0.323 0.142 330.762);
--accent: oklch(0.981 0.015 327.182);
--accent-foreground: oklch(0.323 0.142 330.762);
--destructive: oklch(0.618 0.215 31.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.989 0.015 146.894);
--chart-1: oklch(0.989 0.015 146.894);
--chart-2: oklch(0.981 0.015 327.182);
--chart-3: oklch(0.981 0.015 327.182);
--chart-4: oklch(1.01 0.008 146.968);
--chart-5: oklch(0.989 0.016 146.889);
}