Zany is a shadcn/ui theme built around a yellow primary color (#777127) with purple accents (#712777). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#777127) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0a04black |
| Foreground | #0d0c02black | #fafaf9snow |
| Card | #ffffffwhite | #0b0a04black |
| Card foreground | #0d0c02black | #fafaf9snow |
| Popover | #ffffffwhite | #0b0a04black |
| Popover foreground | #0d0c02black | #fafaf9snow |
| Primary | #777127olivedrab | #777127olivedrab |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #277771seagreen | #277771seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0f0eelavender | #0f1f1dblack |
| Muted foreground | #475251darkslategray | #adb8b7darkgray |
| Accent | #712777rebeccapurple | #712777rebeccapurple |
| Accent foreground | #f2dcf4lavender | #f2dcf4lavender |
| Destructive | #9f3409saddlebrown | #f14e0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #777127olivedrab | #777127olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 5.27:1 | AA |
| Muted text | 6.87:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 5.27:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Zany in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.153 0.025 105.456);
--muted: oklch(0.942 0.016 190.875);
--muted-foreground: oklch(0.428 0.014 190.546);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.153 0.025 105.456);
--card: oklch(1 0 180);
--card-foreground: oklch(0.153 0.025 105.456);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.538 0.094 104.116);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.521 0.077 187.216);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.416 0.146 324.31);
--accent-foreground: oklch(0.92 0.039 323.326);
--destructive: oklch(0.478 0.15 38.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.094 104.116);
--chart-1: oklch(0.538 0.094 104.116);
--chart-2: oklch(0.521 0.077 187.216);
--chart-3: oklch(0.416 0.146 324.31);
--chart-4: oklch(0.556 0.083 187.173);
--chart-5: oklch(0.545 0.098 104.101);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.015 104.466);
--foreground: oklch(0.986 0.001 102.235);
--muted: oklch(0.223 0.021 189.068);
--muted-foreground: oklch(0.773 0.012 190.91);
--popover: oklch(0.144 0.015 104.466);
--popover-foreground: oklch(0.986 0.001 102.235);
--card: oklch(0.144 0.015 104.466);
--card-foreground: oklch(0.986 0.001 102.235);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.538 0.094 104.116);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.521 0.077 187.216);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.416 0.146 324.31);
--accent-foreground: oklch(0.92 0.039 323.326);
--destructive: oklch(0.646 0.209 37.542);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.094 104.116);
--chart-1: oklch(0.538 0.094 104.116);
--chart-2: oklch(0.521 0.077 187.216);
--chart-3: oklch(0.416 0.146 324.31);
--chart-4: oklch(0.556 0.083 187.173);
--chart-5: oklch(0.545 0.098 104.101);
}