Zucchini for shadcn/ui

Zucchini is a shadcn/ui theme built around a vivid yellow primary color (#978c12) with vivid indigo accents (#121d97). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#978c12) on a neutral background (#080802).

Color palette

TokenLightDark
Background
#ffffffwhite
#080802black
Foreground
#080802black
#fbfbf9snow
Card
#fcfcfcsnow
#0c0b03black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fcfcfcsnow
#0c0b03black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#978c12olive
#978c12olive
Primary foreground
#000000black
#000000black
Secondary
#121d97darkblue
#121d97darkblue
Secondary foreground
#dfe1fblavender
#dfe1fblavender
Muted
#e9e9f2lavender
#0d0e16black
Muted foreground
#565767dimgray
#989aa9darkgray
Accent
#121d97darkblue
#121d97darkblue
Accent foreground
#dfe1fblavender
#dfe1fblavender
Destructive
#722303maroon
#f44a06orangered
Destructive foreground
#fdc2aalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#978c12olive
#978c12olive

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.08:1AAA
Primary button6.04:1AA
Secondary button9.92:1AAA
Muted text5.90:1AA
Accent9.92:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.32:1AAA
Primary button6.04:1AA
Secondary button9.92:1AAA
Muted text6.88:1AA
Accent9.92:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.017 105.244);
  --muted: oklch(0.937 0.011 282.016);
  --muted-foreground: oklch(0.462 0.025 281.256);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.103 0.014 105.244);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.014 105.244);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.629 0.128 103.632);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.336 0.191 267.363);
  --secondary-foreground: oklch(0.917 0.035 281.551);
  --accent: oklch(0.336 0.191 267.363);
  --accent-foreground: oklch(0.917 0.035 281.551);
  --destructive: oklch(0.376 0.119 38.543);
  --destructive-foreground: oklch(0.861 0.075 42.572);
  --ring: oklch(0.629 0.128 103.632);
  --chart-1: oklch(0.629 0.128 103.632);
  --chart-2: oklch(0.336 0.191 267.363);
  --chart-3: oklch(0.336 0.191 267.363);
  --chart-4: oklch(0.357 0.204 267.185);
  --chart-5: oklch(0.636 0.131 103.548);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.018 105.368);
  --foreground: oklch(0.987 0.003 102.263);
  --muted: oklch(0.168 0.017 280.332);
  --muted-foreground: oklch(0.689 0.023 281.647);
  --popover: oklch(0.149 0.021 105.045);
  --popover-foreground: oklch(0.994 0.002 102.237);
  --card: oklch(0.149 0.021 105.045);
  --card-foreground: oklch(0.994 0.002 102.237);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.629 0.128 103.632);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.336 0.191 267.363);
  --secondary-foreground: oklch(0.917 0.035 281.551);
  --accent: oklch(0.336 0.191 267.363);
  --accent-foreground: oklch(0.917 0.035 281.551);
  --destructive: oklch(0.646 0.215 36.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.629 0.128 103.632);
  --chart-1: oklch(0.629 0.128 103.632);
  --chart-2: oklch(0.336 0.191 267.363);
  --chart-3: oklch(0.336 0.191 267.363);
  --chart-4: oklch(0.357 0.204 267.185);
  --chart-5: oklch(0.636 0.131 103.548);
}