Zesty for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.42:1AAA
Primary button5.90:1AA
Secondary button8.10:1AAA
Muted text5.77:1AA
Accent8.10:1AAA
Destructive4.85:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.05:1AAA
Primary button5.90:1AA
Secondary button8.10:1AAA
Muted text7.15:1AAA
Accent8.10:1AAA
Destructive4.18:1AA Large

CSS variables

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);
}