Zany is a shadcn/ui theme built around a green primary color (#b1d336) with green accents (#63d336). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#b1d336) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #030401black |
| Foreground | #070802black | #fdfdfcwhite |
| Card | #fdfefbwhite | #030401black |
| Card foreground | #070802black | #fdfdfcwhite |
| Popover | #fdfefbwhite | #030401black |
| Popover foreground | #070802black | #fdfdfcwhite |
| Primary | #b1d336yellowgreen | #b1d336yellowgreen |
| Primary foreground | #2a320bblack | #2a320bblack |
| Secondary | #d3a736goldenrod | #d3a736goldenrod |
| Secondary foreground | #32270bblack | #32270bblack |
| Muted | #e0dfdcgainsboro | #23221fblack |
| Muted foreground | #524d42darkolivegreen | #bdb9adsilver |
| Accent | #63d336limegreen | #63d336limegreen |
| Accent foreground | #16320bblack | #16320bblack |
| Destructive | #c2240ffirebrick | #da2810firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1d336yellowgreen | #b1d336yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 5.89:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.51:1 | AA |
| Muted text | 8.09:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 4.88:1 | AA |
Paste this into your globals.css to use Zany in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 116.417);
--foreground: oklch(0.131 0.021 116.811);
--muted: oklch(0.903 0.005 88.825);
--muted-foreground: oklch(0.423 0.02 89.002);
--popover: oklch(0.996 0.005 116.417);
--popover-foreground: oklch(0.131 0.021 116.811);
--card: oklch(0.996 0.005 116.417);
--card-foreground: oklch(0.131 0.021 116.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.178 121.389);
--primary-foreground: oklch(0.3 0.06 120.639);
--secondary: oklch(0.748 0.135 86.217);
--secondary-foreground: oklch(0.279 0.046 87.358);
--accent: oklch(0.771 0.216 138.578);
--accent-foreground: oklch(0.286 0.072 138.096);
--destructive: oklch(0.527 0.196 30.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.178 121.389);
--chart-1: oklch(0.814 0.178 121.389);
--chart-2: oklch(0.748 0.135 86.217);
--chart-3: oklch(0.771 0.216 138.578);
--chart-4: oklch(0.763 0.13 86.946);
--chart-5: oklch(0.824 0.183 121.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.012 116.698);
--foreground: oklch(0.993 0.001 116.352);
--muted: oklch(0.253 0.006 88.934);
--muted-foreground: oklch(0.785 0.017 88.917);
--popover: oklch(0.101 0.012 116.698);
--popover-foreground: oklch(0.993 0.001 116.352);
--card: oklch(0.101 0.012 116.698);
--card-foreground: oklch(0.993 0.001 116.352);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.178 121.389);
--primary-foreground: oklch(0.3 0.06 120.639);
--secondary: oklch(0.748 0.135 86.217);
--secondary-foreground: oklch(0.279 0.046 87.358);
--accent: oklch(0.771 0.216 138.578);
--accent-foreground: oklch(0.286 0.072 138.096);
--destructive: oklch(0.574 0.214 30.946);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.178 121.389);
--chart-1: oklch(0.814 0.178 121.389);
--chart-2: oklch(0.748 0.135 86.217);
--chart-3: oklch(0.771 0.216 138.578);
--chart-4: oklch(0.763 0.13 86.946);
--chart-5: oklch(0.824 0.183 121.581);
}