Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a deep green primary color (#32391d) with muted light green accents (#d9dec9). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#32391d) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#000000black
#fbfbf8snow
Card
#fcfcfcsnow
#060703black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfcfcsnow
#060703black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#32391ddarkslategray
#32391ddarkslategray
Primary foreground
#ced7b2silver
#ced7b2silver
Secondary
#eaebe5linen
#36392ddarkslategray
Secondary foreground
#1e2018black
#cfd2c6lightgrey
Muted
#e0e7cbgainsboro
#2d3418darkslategray
Muted foreground
#63665cdimgray
#a1a399darkgray
Accent
#d9dec9lightgrey
#50573ddarkolivegreen
Accent foreground
#42492ddarkolivegreen
#e5e8degainsboro
Destructive
#61150amaroon
#eb4f37tomato
Destructive foreground
#f6b1a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#32391ddarkslategray
#32391ddarkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.01:1AAA
Secondary button13.77:1AAA
Muted text4.58:1AA
Accent6.85:1AA
Destructive7.22:1AAA
Dark mode
Text on background19.85:1AAA
Text on card19.82:1AAA
Primary button8.01:1AAA
Secondary button7.72:1AAA
Muted text5.05:1AA
Accent6.13:1AA
Destructive3.66: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 0 0);
  --muted: oklch(0.915 0.038 118.57);
  --muted-foreground: oklch(0.504 0.015 118.363);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.331 0.046 120.444);
  --primary-foreground: oklch(0.863 0.051 118.887);
  --secondary: oklch(0.938 0.009 118.001);
  --secondary-foreground: oklch(0.239 0.016 119.007);
  --accent: oklch(0.891 0.028 118.392);
  --accent-foreground: oklch(0.39 0.046 119.98);
  --destructive: oklch(0.328 0.111 31.66);
  --destructive-foreground: oklch(0.824 0.083 28.775);
  --ring: oklch(0.331 0.046 120.444);
  --chart-1: oklch(0.331 0.046 120.444);
  --chart-2: oklch(0.938 0.009 118.001);
  --chart-3: oklch(0.891 0.028 118.392);
  --chart-4: oklch(0.959 0.006 117.939);
  --chart-5: oklch(0.335 0.05 120.656);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.011 117.979);
  --foreground: oklch(0.988 0.004 117.898);
  --muted: oklch(0.312 0.047 120.714);
  --muted-foreground: oklch(0.71 0.014 118.176);
  --popover: oklch(0.126 0.014 117.979);
  --popover-foreground: oklch(0.994 0.002 117.861);
  --card: oklch(0.126 0.014 117.979);
  --card-foreground: oklch(0.994 0.002 117.861);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.331 0.046 120.444);
  --primary-foreground: oklch(0.863 0.051 118.887);
  --secondary: oklch(0.337 0.019 118.854);
  --secondary-foreground: oklch(0.857 0.016 118.146);
  --accent: oklch(0.442 0.04 119.465);
  --accent-foreground: oklch(0.926 0.013 118.073);
  --destructive: oklch(0.641 0.196 31.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.331 0.046 120.444);
  --chart-1: oklch(0.331 0.046 120.444);
  --chart-2: oklch(0.337 0.019 118.854);
  --chart-3: oklch(0.442 0.04 119.465);
  --chart-4: oklch(0.368 0.022 118.882);
  --chart-5: oklch(0.335 0.05 120.656);
}