Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a deep yellow primary color (#111003) with deep blue accents (#030511). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep yellow primary (#111003) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefefbwhite
#070603black
Foreground
#161403black
#f9f8f6whitesmoke
Card
#fefefbwhite
#070603black
Card foreground
#161403black
#f9f8f6whitesmoke
Popover
#fefefbwhite
#070603black
Popover foreground
#161403black
#f9f8f6whitesmoke
Primary
#111003black
#111003black
Primary foreground
#bfac22goldenrod
#bfac22goldenrod
Secondary
#030511black
#030511black
Secondary foreground
#bac0f3lightsteelblue
#bac0f3lightsteelblue
Muted
#d2d4dflightgrey
#20212ddarkslategray
Muted foreground
#45454adarkslategray
#b5b5basilver
Accent
#030511black
#030511black
Accent foreground
#bac0f3lightsteelblue
#bac0f3lightsteelblue
Destructive
#cb3115firebrick
#e83f21orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111003black
#111003black

Contrast

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

Light mode
Text on background18.25:1AAA
Text on card18.25:1AAA
Primary button8.32:1AAA
Secondary button11.54:1AAA
Muted text6.44:1AA
Accent11.54:1AAA
Destructive5.26:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button8.32:1AAA
Secondary button11.54:1AAA
Muted text7.79:1AAA
Accent11.54:1AAA
Destructive4.06: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.995 0.003 100.384);
  --foreground: oklch(0.189 0.032 102.661);
  --muted: oklch(0.871 0.016 280.042);
  --muted-foreground: oklch(0.392 0.008 279.984);
  --popover: oklch(0.995 0.003 100.384);
  --popover-foreground: oklch(0.189 0.032 102.661);
  --card: oklch(0.995 0.003 100.384);
  --card-foreground: oklch(0.189 0.032 102.661);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.169 0.027 103.011);
  --primary-foreground: oklch(0.739 0.146 101.132);
  --secondary: oklch(0.12 0.032 271.87);
  --secondary-foreground: oklch(0.821 0.071 278.825);
  --accent: oklch(0.12 0.032 271.87);
  --accent-foreground: oklch(0.821 0.071 278.825);
  --destructive: oklch(0.553 0.195 32.192);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.169 0.027 103.011);
  --chart-1: oklch(0.169 0.027 103.011);
  --chart-2: oklch(0.12 0.032 271.87);
  --chart-3: oklch(0.12 0.032 271.87);
  --chart-4: oklch(0.149 0.047 272.278);
  --chart-5: oklch(0.17 0.028 103.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.01 102.531);
  --foreground: oklch(0.98 0.003 100.375);
  --muted: oklch(0.253 0.022 278.836);
  --muted-foreground: oklch(0.775 0.007 280.186);
  --popover: oklch(0.124 0.01 102.531);
  --popover-foreground: oklch(0.98 0.003 100.375);
  --card: oklch(0.124 0.01 102.531);
  --card-foreground: oklch(0.98 0.003 100.375);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.169 0.027 103.011);
  --primary-foreground: oklch(0.739 0.146 101.132);
  --secondary: oklch(0.12 0.032 271.87);
  --secondary-foreground: oklch(0.821 0.071 278.825);
  --accent: oklch(0.12 0.032 271.87);
  --accent-foreground: oklch(0.821 0.071 278.825);
  --destructive: oklch(0.617 0.209 32.322);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.169 0.027 103.011);
  --chart-1: oklch(0.169 0.027 103.011);
  --chart-2: oklch(0.12 0.032 271.87);
  --chart-3: oklch(0.12 0.032 271.87);
  --chart-4: oklch(0.149 0.047 272.278);
  --chart-5: oklch(0.17 0.028 103.095);
}