Espalier for shadcn/ui

Espalier is a shadcn/ui theme built around a vivid teal primary color (#1fecef) with muted red accents (#bbafaf). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#1fecef) on a teal-tinted background (#050f0f).

Color palette

TokenLightDark
Background
#fbfefewhite
#050f0fblack
Foreground
#000000black
#ffffffwhite
Card
#fbfefewhite
#050f0fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefewhite
#050f0fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#1fecefaqua
#1fecefaqua
Primary foreground
#043d3edarkslategray
#043d3edarkslategray
Secondary
#cccccclightgrey
#202222black
Secondary foreground
#333333darkslategray
#b9bbbcsilver
Muted
#f5ebeblinen
#0a1414black
Muted foreground
#594646darkolivegreen
#a6b9b9darkgray
Accent
#bbafafdarkgray
#2d3434darkslategray
Accent foreground
#1e1a1ablack
#c5cecelightgrey
Destructive
#ce3309firebrick
#f54514orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1fecefaqua
#1fecefaqua

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button8.20:1AAA
Secondary button7.86:1AAA
Muted text7.50:1AAA
Accent8.10:1AAA
Destructive5.12:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button8.20:1AAA
Secondary button8.30:1AAA
Muted text9.12:1AAA
Accent7.91:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 198.316);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.947 0.011 17.344);
  --muted-foreground: oklch(0.413 0.026 18.265);
  --popover: oklch(0.994 0.003 198.316);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 198.316);
  --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.857 0.142 196.769);
  --primary-foreground: oklch(0.328 0.054 196.677);
  --secondary: oklch(0.845 0 164.055);
  --secondary-foreground: oklch(0.321 0 180);
  --accent: oklch(0.764 0.014 17.455);
  --accent-foreground: oklch(0.222 0.007 17.698);
  --destructive: oklch(0.559 0.196 34.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.142 196.769);
  --chart-1: oklch(0.857 0.142 196.769);
  --chart-2: oklch(0.845 0 164.055);
  --chart-3: oklch(0.764 0.014 17.455);
  --chart-4: oklch(0.869 0 165.964);
  --chart-5: oklch(0.866 0.145 196.79);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.016 196.971);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.014 197.309);
  --muted-foreground: oklch(0.772 0.021 197.974);
  --popover: oklch(0.158 0.016 196.971);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.016 196.971);
  --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.857 0.142 196.769);
  --primary-foreground: oklch(0.328 0.054 196.677);
  --secondary: oklch(0.25 0.002 198.246);
  --secondary-foreground: oklch(0.791 0.003 198.305);
  --accent: oklch(0.319 0.01 197.889);
  --accent-foreground: oklch(0.844 0.009 198.199);
  --destructive: oklch(0.644 0.219 34.603);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.142 196.769);
  --chart-1: oklch(0.857 0.142 196.769);
  --chart-2: oklch(0.25 0.002 198.246);
  --chart-3: oklch(0.319 0.01 197.889);
  --chart-4: oklch(0.282 0.002 198.239);
  --chart-5: oklch(0.866 0.145 196.79);
}