Zesty is a shadcn/ui theme built around a vivid pink primary color (#bc1a76) with vivid green accents (#1abc60). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid pink primary (#bc1a76) on a pink-tinted background (#0c0408).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #0c0408black |
| Foreground | #000000black | #ffffffwhite |
| Card | #faf5f8whitesmoke | #10050bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf5f8whitesmoke | #10050bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #bc1a76mediumvioletred | #bc1a76mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1abc60mediumseagreen | #1abc60mediumseagreen |
| Secondary foreground | #010905black | #010905black |
| Muted | #d9e3ddgainsboro | #1c2620black |
| Muted foreground | #4d5651darkslategray | #a9b2addarkgray |
| Accent | #1abc60mediumseagreen | #1abc60mediumseagreen |
| Accent foreground | #010905black | #010905black |
| Destructive | #dc2509orangered | #f0290aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bc1a76mediumvioletred | #bc1a76mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.85:1 | AA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 5.90:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.15:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Zesty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 341.927);
--foreground: oklch(0 0 0);
--muted: oklch(0.906 0.013 161.456);
--muted-foreground: oklch(0.444 0.015 160.953);
--popover: oklch(0.974 0.007 341.988);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.007 341.988);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.531 0.206 353.12);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.7 0.181 151.278);
--secondary-foreground: oklch(0.126 0.022 161.783);
--accent: oklch(0.7 0.181 151.278);
--accent-foreground: oklch(0.126 0.022 161.783);
--destructive: oklch(0.576 0.218 31.197);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.206 353.12);
--chart-1: oklch(0.531 0.206 353.12);
--chart-2: oklch(0.7 0.181 151.278);
--chart-3: oklch(0.7 0.181 151.278);
--chart-4: oklch(0.736 0.191 151.211);
--chart-5: oklch(0.535 0.21 353.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.023 342.081);
--foreground: oklch(1 0 180);
--muted: oklch(0.257 0.018 160.045);
--muted-foreground: oklch(0.755 0.013 161.372);
--popover: oklch(0.136 0.026 343.823);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.026 343.823);
--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.531 0.206 353.12);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.7 0.181 151.278);
--secondary-foreground: oklch(0.126 0.022 161.783);
--accent: oklch(0.7 0.181 151.278);
--accent-foreground: oklch(0.126 0.022 161.783);
--destructive: oklch(0.613 0.233 31.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.206 353.12);
--chart-1: oklch(0.531 0.206 353.12);
--chart-2: oklch(0.7 0.181 151.278);
--chart-3: oklch(0.7 0.181 151.278);
--chart-4: oklch(0.736 0.191 151.211);
--chart-5: oklch(0.535 0.21 353.606);
}