Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a muted purple primary color (#b58ebe) with muted green accents (#96be8e). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#b58ebe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#000000black
Foreground
#040104black
#f8f6f9whitesmoke
Card
#fbf8fcghostwhite
#030303black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fdfbfdsnow
#000000black
Popover foreground
#040104black
#f8f6f9whitesmoke
Primary
#b58ebedarkgray
#b58ebedarkgray
Primary foreground
#0f0910black
#0f0910black
Secondary
#96be8edarkseagreen
#96be8edarkseagreen
Secondary foreground
#0b1009black
#0b1009black
Muted
#e7eae6linen
#151915black
Muted foreground
#51664ddarkolivegreen
#9eb299darkseagreen
Accent
#96be8edarkseagreen
#96be8edarkseagreen
Accent foreground
#0b1009black
#0b1009black
Destructive
#5d1309maroon
#ea331aorangered
Destructive foreground
#f6aca2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b58ebedarkgray
#b58ebedarkgray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card19.92:1AAA
Primary button7.08:1AAA
Secondary button9.19:1AAA
Muted text5.16:1AA
Accent9.19:1AAA
Destructive7.25:1AAA
Dark mode
Text on background19.54:1AAA
Text on card19.70:1AAA
Primary button7.08:1AAA
Secondary button9.19:1AAA
Muted text7.83:1AAA
Accent9.19:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 319.994);
  --foreground: oklch(0.082 0.026 322.512);
  --muted: oklch(0.934 0.007 139.984);
  --muted-foreground: oklch(0.485 0.046 139.918);
  --popover: oklch(0.991 0.003 319.994);
  --popover-foreground: oklch(0.082 0.026 322.512);
  --card: oklch(0.982 0.006 319.997);
  --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.699 0.082 320.083);
  --primary-foreground: oklch(0.152 0.017 320.093);
  --secondary: oklch(0.76 0.08 139.914);
  --secondary-foreground: oklch(0.165 0.017 139.872);
  --accent: oklch(0.76 0.08 139.914);
  --accent-foreground: oklch(0.165 0.017 139.872);
  --destructive: oklch(0.317 0.109 31.023);
  --destructive-foreground: oklch(0.812 0.09 27.564);
  --ring: oklch(0.699 0.082 320.083);
  --chart-1: oklch(0.699 0.082 320.083);
  --chart-2: oklch(0.76 0.08 139.914);
  --chart-3: oklch(0.76 0.08 139.914);
  --chart-4: oklch(0.78 0.072 139.919);
  --chart-5: oklch(0.696 0.091 320.089);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.004 319.995);
  --muted: oklch(0.209 0.011 139.947);
  --muted-foreground: oklch(0.742 0.042 139.942);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.004 319.995);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.003 319.994);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.082 320.083);
  --primary-foreground: oklch(0.152 0.017 320.093);
  --secondary: oklch(0.76 0.08 139.914);
  --secondary-foreground: oklch(0.165 0.017 139.872);
  --accent: oklch(0.76 0.08 139.914);
  --accent-foreground: oklch(0.165 0.017 139.872);
  --destructive: oklch(0.609 0.221 31.031);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.082 320.083);
  --chart-1: oklch(0.699 0.082 320.083);
  --chart-2: oklch(0.76 0.08 139.914);
  --chart-3: oklch(0.76 0.08 139.914);
  --chart-4: oklch(0.78 0.072 139.919);
  --chart-5: oklch(0.696 0.091 320.089);
}