Zesty is a shadcn/ui theme built around a muted blue primary color (#5a6277) with muted green accents (#62775a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#5a6277) on a neutral background (#020408).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020408black |
| Foreground | #02050eblack | #ffffffwhite |
| Card | #fbfcfewhite | #020408black |
| Card foreground | #02050eblack | #ffffffwhite |
| Popover | #fbfcfewhite | #020408black |
| Popover foreground | #02050eblack | #ffffffwhite |
| Primary | #5a6277dimgray | #5a6277dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #775a62dimgray | #775a62dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f7edf0whitesmoke | #12080bblack |
| Muted foreground | #68555adimgray | #aa979ddarkgray |
| Accent | #62775adimgray | #62775adimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #940a0adarkred | #ea1010red |
| Destructive foreground | #fcd4d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5a6277dimgray | #5a6277dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 4.86:1 | AA |
| Destructive | 6.72:1 | AA |
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.13:1 | AA |
| Muted text | 7.16:1 | AAA |
| Accent | 4.86:1 | AA |
| Destructive | 4.59:1 | AA |
Paste this into your globals.css to use Zesty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 268.77);
--foreground: oklch(0.115 0.024 257.7);
--muted: oklch(0.955 0.012 358.061);
--muted-foreground: oklch(0.47 0.026 359.26);
--popover: oklch(0.99 0.003 268.77);
--popover-foreground: oklch(0.115 0.024 257.7);
--card: oklch(0.99 0.003 268.77);
--card-foreground: oklch(0.115 0.024 257.7);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.498 0.035 268.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.5 0.04 359.929);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.051 136.92);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.423 0.167 28.417);
--destructive-foreground: oklch(0.904 0.045 18.013);
--ring: oklch(0.498 0.035 268.154);
--chart-1: oklch(0.498 0.035 268.154);
--chart-2: oklch(0.5 0.04 359.929);
--chart-3: oklch(0.544 0.051 136.92);
--chart-4: oklch(0.526 0.043 359.948);
--chart-5: oklch(0.493 0.043 267.973);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.015 261.108);
--foreground: oklch(1 0 180);
--muted: oklch(0.149 0.02 0.494);
--muted-foreground: oklch(0.695 0.024 358.665);
--popover: oklch(0.105 0.015 261.108);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.105 0.015 261.108);
--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.498 0.035 268.154);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.5 0.04 359.929);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.544 0.051 136.92);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.592 0.237 28.723);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.498 0.035 268.154);
--chart-1: oklch(0.498 0.035 268.154);
--chart-2: oklch(0.5 0.04 359.929);
--chart-3: oklch(0.544 0.051 136.92);
--chart-4: oklch(0.526 0.043 359.948);
--chart-5: oklch(0.493 0.043 267.973);
}