Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a muted green primary color (#7b7e67) with muted green accents (#c3c5b4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#7b7e67) on a green-tinted background (#0b0c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0c03black
Foreground
#080901black
#fbfbf9snow
Card
#fcfcfcsnow
#0e1004black
Card foreground
#040501black
#fdfdfcwhite
Popover
#ffffffwhite
#0b0c03black
Popover foreground
#080901black
#fbfbf9snow
Primary
#7b7e67gray
#7b7e67gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d5d5d2lightgrey
#2b2c26darkslategray
Secondary foreground
#3c3d38darkslategray
#c5c7bdsilver
Muted
#eff1e4beige
#191b0eblack
Muted foreground
#646756dimgray
#a7a998darkgray
Accent
#c3c5b4silver
#444634darkslategray
Accent foreground
#27281fdarkslategray
#dadcd0lightgrey
Destructive
#c54307chocolate
#f15209orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7b7e67gray
#7b7e67gray

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button4.17:1AA Large
Secondary button7.46:1AAA
Muted text5.07:1AA
Accent8.50:1AAA
Destructive5.02:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.80:1AAA
Primary button4.17:1AA Large
Secondary button8.23:1AAA
Muted text7.31:1AAA
Accent6.94:1AA
Destructive3.51: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.135 0.025 114.529);
  --muted: oklch(0.953 0.016 113.625);
  --muted-foreground: oklch(0.506 0.026 114.269);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.025 114.529);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.107 0.02 114.529);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.584 0.034 114.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.873 0.005 113.407);
  --secondary-foreground: oklch(0.358 0.008 113.722);
  --accent: oklch(0.818 0.024 113.848);
  --accent-foreground: oklch(0.274 0.017 114.437);
  --destructive: oklch(0.561 0.175 39.283);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.584 0.034 114.39);
  --chart-1: oklch(0.584 0.034 114.39);
  --chart-2: oklch(0.873 0.005 113.407);
  --chart-3: oklch(0.818 0.024 113.848);
  --chart-4: oklch(0.896 0.004 113.387);
  --chart-5: oklch(0.593 0.044 114.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.022 114.713);
  --foreground: oklch(0.987 0.003 113.357);
  --muted: oklch(0.214 0.023 115.299);
  --muted-foreground: oklch(0.728 0.024 113.922);
  --popover: oklch(0.15 0.022 114.713);
  --popover-foreground: oklch(0.987 0.003 113.357);
  --card: oklch(0.168 0.026 115.489);
  --card-foreground: oklch(0.994 0.001 113.331);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.584 0.034 114.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.29 0.012 114.052);
  --secondary-foreground: oklch(0.825 0.014 113.612);
  --accent: oklch(0.387 0.03 114.745);
  --accent-foreground: oklch(0.891 0.017 113.653);
  --destructive: oklch(0.651 0.206 38.909);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.584 0.034 114.39);
  --chart-1: oklch(0.584 0.034 114.39);
  --chart-2: oklch(0.29 0.012 114.052);
  --chart-3: oklch(0.387 0.03 114.745);
  --chart-4: oklch(0.323 0.013 114.081);
  --chart-5: oklch(0.593 0.044 114.68);
}