Lady for shadcn/ui

Lady is a shadcn/ui theme built around a deep violet primary color (#0e0312) with deep purple accents (#12030f). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#0e0312) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#070208black
#fdfcfdwhite
Card
#fdfbfewhite
#000000black
Card foreground
#070208black
#fdfcfdwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#070208black
#fdfcfdwhite
Primary
#0e0312black
#0e0312black
Primary foreground
#e3b8f5thistle
#e3b8f5thistle
Secondary
#060312black
#060312black
Secondary foreground
#c5b8f5lightsteelblue
#c5b8f5lightsteelblue
Muted
#e0dee7gainsboro
#1a1821black
Muted foreground
#413d4cdarkslategray
#b6b3c2silver
Accent
#12030fblack
#12030fblack
Accent foreground
#e85ecaorchid
#e85ecaorchid
Destructive
#c94c08chocolate
#f55c0aorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e0312black
#0e0312black

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button11.98:1AAA
Secondary button11.24:1AAA
Muted text7.93:1AAA
Accent6.60:1AA
Destructive4.66:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button11.98:1AAA
Secondary button11.24:1AAA
Muted text8.57:1AAA
Accent6.60:1AA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 316.599);
  --foreground: oklch(0.103 0.027 318.852);
  --muted: oklch(0.906 0.012 296.084);
  --muted-foreground: oklch(0.37 0.026 295.031);
  --popover: oklch(0.991 0.003 316.599);
  --popover-foreground: oklch(0.103 0.027 318.852);
  --card: oklch(0.991 0.003 316.599);
  --card-foreground: oklch(0.103 0.027 318.852);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.129 0.043 317.38);
  --primary-foreground: oklch(0.84 0.096 316.269);
  --secondary: oklch(0.115 0.04 293.381);
  --secondary-foreground: oklch(0.813 0.086 294.34);
  --accent: oklch(0.135 0.042 335.439);
  --accent-foreground: oklch(0.693 0.208 336.961);
  --destructive: oklch(0.578 0.172 41.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.129 0.043 317.38);
  --chart-1: oklch(0.129 0.043 317.38);
  --chart-2: oklch(0.115 0.04 293.381);
  --chart-3: oklch(0.135 0.042 335.439);
  --chart-4: oklch(0.144 0.056 288.963);
  --chart-5: oklch(0.128 0.045 317.434);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 316.601);
  --muted: oklch(0.214 0.018 294.791);
  --muted-foreground: oklch(0.773 0.022 295.82);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 316.601);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 316.601);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.129 0.043 317.38);
  --primary-foreground: oklch(0.84 0.096 316.269);
  --secondary: oklch(0.115 0.04 293.381);
  --secondary-foreground: oklch(0.813 0.086 294.34);
  --accent: oklch(0.135 0.042 335.439);
  --accent-foreground: oklch(0.693 0.208 336.961);
  --destructive: oklch(0.668 0.201 41.26);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.129 0.043 317.38);
  --chart-1: oklch(0.129 0.043 317.38);
  --chart-2: oklch(0.115 0.04 293.381);
  --chart-3: oklch(0.135 0.042 335.439);
  --chart-4: oklch(0.144 0.056 288.963);
  --chart-5: oklch(0.128 0.045 317.434);
}