Closed Enchanted Lavender for shadcn/ui

Closed Enchanted Lavender is a shadcn/ui theme built around a light violet primary color (#bea5e4) with muted light violet accents (#d7d2df). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the light violet primary (#bea5e4) on a violet-tinted background (#090410).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#090410black
Foreground
#0b0515black
#faf8fcghostwhite
Card
#f7f4fbghostwhite
#0b0514black
Card foreground
#090411black
#fcfbfdsnow
Popover
#f7f4fbghostwhite
#0b0514black
Popover foreground
#090411black
#fcfbfdsnow
Primary
#bea5e4plum
#bea5e4plum
Primary foreground
#271443midnightblue
#271443midnightblue
Secondary
#d7d2dfgainsboro
#262627darkslategray
Secondary foreground
#3e354bdarkslategray
#bfbfc0silver
Muted
#efecf3whitesmoke
#0f0c13black
Muted foreground
#474748darkslategray
#b7b7b8silver
Accent
#d7d2dfgainsboro
#262627darkslategray
Accent foreground
#3e354bdarkslategray
#bfbfc0silver
Destructive
#631e09maroon
#ec5122chocolate
Destructive foreground
#f7b9a6lightpink
#ffffffwhite
Border
#e3e2e4gainsboro
#1e1d20black
Input
#e3e2e4gainsboro
#1e1d20black
Ring
#bea5e4plum
#bea5e4plum

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.59:1AAA
Primary button7.62:1AAA
Secondary button7.82:1AAA
Muted text7.94:1AAA
Accent7.82:1AAA
Destructive7.27:1AAA
Dark mode
Text on background19.18:1AAA
Text on card19.44:1AAA
Primary button7.62:1AAA
Secondary button8.23:1AAA
Muted text9.69:1AAA
Accent8.23:1AAA
Destructive3.63:1AA Large

CSS variables

Paste this into your globals.css to use Closed Enchanted Lavender in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 304.256);
  --foreground: oklch(0.135 0.038 301.953);
  --muted: oklch(0.948 0.01 304.196);
  --muted-foreground: oklch(0.398 0.002 304.256);
  --popover: oklch(0.971 0.009 304.21);
  --popover-foreground: oklch(0.124 0.034 303.74);
  --card: oklch(0.971 0.009 304.21);
  --card-foreground: oklch(0.124 0.034 303.74);
  --border: oklch(0.913 0.004 304.283);
  --input: oklch(0.913 0.004 304.283);
  --primary: oklch(0.765 0.093 302.58);
  --primary-foreground: oklch(0.246 0.085 298.347);
  --secondary: oklch(0.873 0.019 304.041);
  --secondary-foreground: oklch(0.347 0.039 302.725);
  --accent: oklch(0.873 0.019 304.041);
  --accent-foreground: oklch(0.347 0.039 302.725);
  --destructive: oklch(0.34 0.104 36.498);
  --destructive-foreground: oklch(0.838 0.078 37.608);
  --ring: oklch(0.765 0.093 302.58);
  --chart-1: oklch(0.765 0.093 302.58);
  --chart-2: oklch(0.873 0.019 304.041);
  --chart-3: oklch(0.873 0.019 304.041);
  --chart-4: oklch(0.898 0.015 304.11);
  --chart-5: oklch(0.762 0.098 302.47);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.031 303.765);
  --foreground: oklch(0.981 0.006 304.264);
  --muted: oklch(0.16 0.015 302.969);
  --muted-foreground: oklch(0.78 0.002 304.306);
  --popover: oklch(0.137 0.036 302.033);
  --popover-foreground: oklch(0.991 0.003 304.305);
  --card: oklch(0.137 0.036 302.033);
  --card-foreground: oklch(0.991 0.003 304.305);
  --border: oklch(0.234 0.006 303.973);
  --input: oklch(0.234 0.006 303.973);
  --primary: oklch(0.765 0.093 302.58);
  --primary-foreground: oklch(0.246 0.085 298.347);
  --secondary: oklch(0.269 0.001 304.267);
  --secondary-foreground: oklch(0.804 0.002 304.312);
  --accent: oklch(0.269 0.001 304.267);
  --accent-foreground: oklch(0.804 0.002 304.312);
  --destructive: oklch(0.642 0.199 36.389);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.093 302.58);
  --chart-1: oklch(0.765 0.093 302.58);
  --chart-2: oklch(0.269 0.001 304.267);
  --chart-3: oklch(0.269 0.001 304.267);
  --chart-4: oklch(0.3 0.002 304.263);
  --chart-5: oklch(0.762 0.098 302.47);
}