Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a muted deep green primary color (#10130c) with muted deep green accents (#0d130c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#10130c) on a green-tinted background (#090c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#090c03black
Foreground
#0f1405black
#fafbf9snow
Card
#fcfcfcsnow
#0c1005black
Card foreground
#0c1004black
#fdfdfcwhite
Popover
#fcfcfcsnow
#0c1005black
Popover foreground
#0c1004black
#fdfdfcwhite
Primary
#10130cblack
#10130cblack
Primary foreground
#adbc94darkgray
#adbc94darkgray
Secondary
#13120cblack
#13120cblack
Secondary foreground
#bcb894tan
#bcb894tan
Muted
#eaeae6linen
#191915black
Muted foreground
#44433bdarkslategray
#c4c3bbsilver
Accent
#0d130cblack
#0d130cblack
Accent foreground
#99bc94darkseagreen
#99bc94darkseagreen
Destructive
#d02111firebrick
#ec2a18orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10130cblack
#10130cblack

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.82:1AAA
Primary button9.28:1AAA
Secondary button9.31:1AAA
Muted text8.23:1AAA
Accent8.95:1AAA
Destructive5.39:1AA
Dark mode
Text on background19.00:1AAA
Text on card18.92:1AAA
Primary button9.28:1AAA
Secondary button9.31:1AAA
Muted text9.98:1AAA
Accent8.95:1AAA
Destructive4.27: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.181 0.031 125.729);
  --muted: oklch(0.936 0.005 100.42);
  --muted-foreground: oklch(0.382 0.013 100.833);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.165 0.027 124.76);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.165 0.027 124.76);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.18 0.015 124.877);
  --primary-foreground: oklch(0.774 0.057 124.772);
  --secondary: oklch(0.181 0.012 101.257);
  --secondary-foreground: oklch(0.776 0.048 101.193);
  --accent: oklch(0.177 0.017 141.777);
  --accent-foreground: oklch(0.759 0.068 141.804);
  --destructive: oklch(0.55 0.209 30.088);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.015 124.877);
  --chart-1: oklch(0.18 0.015 124.877);
  --chart-2: oklch(0.181 0.012 101.257);
  --chart-3: oklch(0.177 0.017 141.777);
  --chart-4: oklch(0.22 0.017 101.38);
  --chart-5: oklch(0.182 0.016 125.029);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.022 123.295);
  --foreground: oklch(0.987 0.003 123.682);
  --muted: oklch(0.211 0.008 100.869);
  --muted-foreground: oklch(0.815 0.011 100.534);
  --popover: oklch(0.163 0.025 124.702);
  --popover-foreground: oklch(0.993 0.001 123.66);
  --card: oklch(0.163 0.025 124.702);
  --card-foreground: oklch(0.993 0.001 123.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.18 0.015 124.877);
  --primary-foreground: oklch(0.774 0.057 124.772);
  --secondary: oklch(0.181 0.012 101.257);
  --secondary-foreground: oklch(0.776 0.048 101.193);
  --accent: oklch(0.177 0.017 141.777);
  --accent-foreground: oklch(0.759 0.068 141.804);
  --destructive: oklch(0.608 0.229 30.071);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.015 124.877);
  --chart-1: oklch(0.18 0.015 124.877);
  --chart-2: oklch(0.181 0.012 101.257);
  --chart-3: oklch(0.177 0.017 141.777);
  --chart-4: oklch(0.22 0.017 101.38);
  --chart-5: oklch(0.182 0.016 125.029);
}