Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a neutral gray primary color (#948493) with muted light purple accents (#d8bbd6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#948493) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a050ablack
Foreground
#0c040bblack
#f8f6f8whitesmoke
Card
#ffffffwhite
#0a050ablack
Card foreground
#0c040bblack
#f8f6f8whitesmoke
Popover
#ffffffwhite
#0a050ablack
Popover foreground
#0c040bblack
#f8f6f8whitesmoke
Primary
#948493gray
#948493gray
Primary foreground
#000000black
#000000black
Secondary
#e7dae6gainsboro
#2d242ddarkslategray
Secondary foreground
#563954darkslategray
#c9bbc8silver
Muted
#ece9eclavender
#161316black
Muted foreground
#685067dimgray
#af97aedarkgray
Accent
#d8bbd6thistle
#422f41darkslategray
Accent foreground
#3e233cdarkslategray
#d9c9d8thistle
Destructive
#81100emaroon
#ea413etomato
Destructive foreground
#f9c9c8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#948493gray
#948493gray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button6.00:1AA
Secondary button7.38:1AAA
Muted text5.94:1AA
Accent7.94:1AAA
Destructive7.08:1AAA
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button6.00:1AA
Secondary button8.12:1AAA
Muted text6.91:1AA
Accent7.80:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.027 328.491);
  --muted: oklch(0.937 0.006 327.098);
  --muted-foreground: oklch(0.464 0.047 327.929);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.027 328.491);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.027 328.491);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.633 0.029 327.457);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.902 0.02 327.246);
  --secondary-foreground: oklch(0.388 0.058 328.33);
  --accent: oklch(0.825 0.049 327.576);
  --accent-foreground: oklch(0.302 0.056 328.623);
  --destructive: oklch(0.387 0.146 28.086);
  --destructive-foreground: oklch(0.877 0.055 19.39);
  --ring: oklch(0.633 0.029 327.457);
  --chart-1: oklch(0.633 0.029 327.457);
  --chart-2: oklch(0.902 0.02 327.246);
  --chart-3: oklch(0.825 0.049 327.576);
  --chart-4: oklch(0.927 0.015 327.189);
  --chart-5: oklch(0.631 0.042 327.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.016 327.849);
  --foreground: oklch(0.976 0.004 327.072);
  --muted: oklch(0.191 0.009 327.467);
  --muted-foreground: oklch(0.706 0.042 327.578);
  --popover: oklch(0.128 0.016 327.849);
  --popover-foreground: oklch(0.976 0.004 327.072);
  --card: oklch(0.128 0.016 327.849);
  --card-foreground: oklch(0.976 0.004 327.072);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.633 0.029 327.457);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.275 0.02 327.691);
  --secondary-foreground: oklch(0.807 0.023 327.3);
  --accent: oklch(0.333 0.041 328.103);
  --accent-foreground: oklch(0.854 0.026 327.321);
  --destructive: oklch(0.624 0.206 26.243);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.633 0.029 327.457);
  --chart-1: oklch(0.633 0.029 327.457);
  --chart-2: oklch(0.275 0.02 327.691);
  --chart-3: oklch(0.333 0.041 328.103);
  --chart-4: oklch(0.305 0.023 327.718);
  --chart-5: oklch(0.631 0.042 327.633);
}