Zygomorphic Zambezi for shadcn/ui

Zygomorphic Zambezi is a shadcn/ui theme built around a neutral gray primary color (#6a5b5b) with muted light red accents (#f5f0f1). The light mode uses a neutral background (#fcfaf5). Dark mode switches to a vivid purple primary (#c40dd9) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fcfaf5floralwhite
#040104black
Foreground
#4f3939darkslategray
#fdfcfdwhite
Card
#fcfaf5floralwhite
#040104black
Card foreground
#4f3939darkslategray
#fdfcfdwhite
Popover
#fdfbfewhite
#040104black
Popover foreground
#4f3939darkslategray
#fdfcfdwhite
Primary
#6a5b5bdimgray
#c40dd9darkviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f6f0e1linen
#2b212cdarkslategray
Secondary foreground
#4f3939darkslategray
#c6b6c8silver
Muted
#f6f0e1linen
#100911black
Muted foreground
#ab5d6aindianred
#a19aa2darkgray
Accent
#f5f0f1whitesmoke
#2b212cdarkslategray
Accent foreground
#4f3939darkslategray
#c6b6c8silver
Destructive
#ff4b4btomato
#f64c09orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f4ecd9antiquewhite
#1f2937darkslategray
Input
#f4ecd9antiquewhite
#1f2937darkslategray
Ring
#007aeadodgerblue
#c40dd9darkviolet

Contrast

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

Light mode
Text on background10.18:1AAA
Text on card10.18:1AAA
Primary button6.47:1AA
Secondary button9.34:1AAA
Muted text4.09:1AA Large
Accent9.39:1AAA
Destructive3.30:1AA Large
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button4.75:1AA
Secondary button8.07:1AAA
Muted text7.17:1AAA
Accent8.07:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.007 88.646);
  --foreground: oklch(0.369 0.031 18.683);
  --muted: oklch(0.956 0.021 88.724);
  --muted-foreground: oklch(0.572 0.102 10.188);
  --popover: oklch(0.991 0.004 322.641);
  --popover-foreground: oklch(0.369 0.031 18.683);
  --card: oklch(0.985 0.007 88.646);
  --card-foreground: oklch(0.369 0.031 18.683);
  --border: oklch(0.944 0.027 87.852);
  --input: oklch(0.944 0.027 87.852);
  --primary: oklch(0.485 0.02 17.868);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.956 0.021 88.724);
  --secondary-foreground: oklch(0.369 0.031 18.683);
  --accent: oklch(0.959 0.006 5.614);
  --accent-foreground: oklch(0.369 0.031 18.683);
  --destructive: oklch(0.671 0.217 25.191);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.587 0.192 254.745);
  --chart-1: oklch(0.485 0.02 17.868);
  --chart-2: oklch(0.956 0.021 88.724);
  --chart-3: oklch(0.959 0.006 5.614);
  --chart-4: oklch(0.973 0.013 88.68);
  --chart-5: oklch(0.48 0.028 18.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.021 324.505);
  --foreground: oklch(0.992 0.002 322.636);
  --muted: oklch(0.153 0.02 323.143);
  --muted-foreground: oklch(0.695 0.014 322.706);
  --popover: oklch(0.085 0.021 324.505);
  --popover-foreground: oklch(0.992 0.002 322.636);
  --card: oklch(0.085 0.021 324.505);
  --card-foreground: oklch(0.992 0.002 322.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.592 0.275 322.976);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.263 0.024 322.978);
  --secondary-foreground: oklch(0.796 0.031 322.779);
  --accent: oklch(0.263 0.024 322.978);
  --accent-foreground: oklch(0.796 0.031 322.779);
  --destructive: oklch(0.652 0.215 36.944);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.592 0.275 322.976);
  --chart-1: oklch(0.592 0.275 322.976);
  --chart-2: oklch(0.263 0.024 322.978);
  --chart-3: oklch(0.263 0.024 322.978);
  --chart-4: oklch(0.293 0.028 322.994);
  --chart-5: oklch(0.598 0.279 322.898);
}