Zesty for shadcn/ui

Zesty is a shadcn/ui theme built around a deep green primary color (#69791b) with deep purple accents (#791b69). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#69791b) on a green-tinted background (#0a0c04).

Color palette

TokenLightDark
Background
#fbfcf8snow
#0a0c04black
Foreground
#0e1104black
#fdfdfcwhite
Card
#f9faf4whitesmoke
#0e0f05black
Card foreground
#0b0c03black
#ffffffwhite
Popover
#f9faf4whitesmoke
#0e0f05black
Popover foreground
#0b0c03black
#ffffffwhite
Primary
#69791bolivedrab
#69791bolivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#1b6979teal
#1b6979teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dae4e7gainsboro
#182325black
Muted foreground
#4a5355darkslategray
#aab4b5darkgray
Accent
#791b69purple
#791b69purple
Accent foreground
#f5d1efmistyrose
#f5d1efmistyrose
Destructive
#a72106firebrick
#e22d08orangered
Destructive foreground
#fee6e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#69791bolivedrab
#69791bolivedrab

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.52:1AAA
Text on card18.80:1AAA
Primary button4.85:1AA
Secondary button6.28:1AA
Muted text6.12:1AA
Accent7.02:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.24:1AAA
Primary button4.85:1AA
Secondary button6.28:1AA
Muted text7.60:1AAA
Accent7.02:1AAA
Destructive4.54:1AA

CSS variables

Paste this into your globals.css to use Zesty in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 114.17);
  --foreground: oklch(0.169 0.027 116.282);
  --muted: oklch(0.913 0.011 211.038);
  --muted-foreground: oklch(0.434 0.012 211.056);
  --popover: oklch(0.984 0.008 114.223);
  --popover-foreground: oklch(0.151 0.024 115.435);
  --card: oklch(0.984 0.008 114.223);
  --card-foreground: oklch(0.151 0.024 115.435);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.544 0.116 118.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.076 214.305);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.409 0.154 335.757);
  --accent-foreground: oklch(0.9 0.055 331.624);
  --destructive: oklch(0.474 0.173 32.388);
  --destructive-foreground: oklch(0.943 0.027 31.121);
  --ring: oklch(0.544 0.116 118.835);
  --chart-1: oklch(0.544 0.116 118.835);
  --chart-2: oklch(0.482 0.076 214.305);
  --chart-3: oklch(0.409 0.154 335.757);
  --chart-4: oklch(0.517 0.082 214.4);
  --chart-5: oklch(0.55 0.119 119.004);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.019 115.086);
  --foreground: oklch(0.994 0.002 114.1);
  --muted: oklch(0.246 0.015 211.218);
  --muted-foreground: oklch(0.762 0.011 211.038);
  --popover: oklch(0.164 0.022 115.948);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.164 0.022 115.948);
  --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.544 0.116 118.835);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.482 0.076 214.305);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.409 0.154 335.757);
  --accent-foreground: oklch(0.9 0.055 331.624);
  --destructive: oklch(0.591 0.219 32.098);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.544 0.116 118.835);
  --chart-1: oklch(0.544 0.116 118.835);
  --chart-2: oklch(0.482 0.076 214.305);
  --chart-3: oklch(0.409 0.154 335.757);
  --chart-4: oklch(0.517 0.082 214.4);
  --chart-5: oklch(0.55 0.119 119.004);
}