Zesty for shadcn/ui

Zesty is a shadcn/ui theme built around a light blue primary color (#eaf1f6) with light green accents (#f1f6ea). The light mode uses a neutral background (#f7fbfc). Dark mode keeps the light blue primary (#eaf1f6) on a blue-tinted background (#03090c).

Color palette

TokenLightDark
Background
#f7fbfcghostwhite
#03090cblack
Foreground
#000000black
#f8fafbghostwhite
Card
#f7fbfcghostwhite
#03090cblack
Card foreground
#000000black
#f8fafbghostwhite
Popover
#f7fbfcghostwhite
#03090cblack
Popover foreground
#000000black
#f8fafbghostwhite
Primary
#eaf1f6whitesmoke
#eaf1f6whitesmoke
Primary foreground
#162732darkslategray
#162732darkslategray
Secondary
#f6eaf1lavenderblush
#f6eaf1lavenderblush
Secondary foreground
#793560dimgray
#793560dimgray
Muted
#ebe5e9lavender
#1a1418black
Muted foreground
#57424fdarkslategray
#bda8b5darkgray
Accent
#f1f6eahoneydew
#f1f6eahoneydew
Accent foreground
#273216darkslategray
#273216darkslategray
Destructive
#741e02maroon
#fc602ctomato
Destructive foreground
#febfaalightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaf1f6whitesmoke
#eaf1f6whitesmoke

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button13.45:1AAA
Secondary button7.19:1AAA
Muted text7.35:1AAA
Accent12.27:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button13.45:1AAA
Secondary button7.19:1AAA
Muted text8.16:1AAA
Accent12.27:1AAA
Destructive6.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 232.64);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.009 338.922);
  --muted-foreground: oklch(0.406 0.036 340.535);
  --popover: oklch(0.985 0.004 232.64);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.004 232.64);
  --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.955 0.01 232.728);
  --primary-foreground: oklch(0.264 0.03 234.963);
  --secondary: oklch(0.948 0.016 339.084);
  --secondary-foreground: oklch(0.434 0.109 343.751);
  --accent: oklch(0.966 0.016 123.189);
  --accent-foreground: oklch(0.298 0.048 125.727);
  --destructive: oklch(0.373 0.124 36.613);
  --destructive-foreground: oklch(0.856 0.079 39.221);
  --ring: oklch(0.955 0.01 232.728);
  --chart-1: oklch(0.955 0.01 232.728);
  --chart-2: oklch(0.948 0.016 339.084);
  --chart-3: oklch(0.966 0.016 123.189);
  --chart-4: oklch(0.974 0.008 338.897);
  --chart-5: oklch(0.955 0.011 232.74);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.014 226.589);
  --foreground: oklch(0.985 0.003 232.616);
  --muted: oklch(0.2 0.013 340.057);
  --muted-foreground: oklch(0.753 0.031 339.579);
  --popover: oklch(0.133 0.014 226.589);
  --popover-foreground: oklch(0.985 0.003 232.616);
  --card: oklch(0.133 0.014 226.589);
  --card-foreground: oklch(0.985 0.003 232.616);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.955 0.01 232.728);
  --primary-foreground: oklch(0.264 0.03 234.963);
  --secondary: oklch(0.948 0.016 339.084);
  --secondary-foreground: oklch(0.434 0.109 343.751);
  --accent: oklch(0.966 0.016 123.189);
  --accent-foreground: oklch(0.298 0.048 125.727);
  --destructive: oklch(0.685 0.201 37.697);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.955 0.01 232.728);
  --chart-1: oklch(0.955 0.01 232.728);
  --chart-2: oklch(0.948 0.016 339.084);
  --chart-3: oklch(0.966 0.016 123.189);
  --chart-4: oklch(0.974 0.008 338.897);
  --chart-5: oklch(0.955 0.011 232.74);
}