Lavish for shadcn/ui

Lavish is a shadcn/ui theme built around a light purple primary color (#efbaf2) with light green accents (#bef2ba). The light mode uses a neutral background (#fefbfe). Dark mode keeps the light purple primary (#efbaf2) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fefbfewhite
#0a050ablack
Foreground
#100411black
#faf5faghostwhite
Card
#fefbfewhite
#0a050ablack
Card foreground
#100411black
#faf5faghostwhite
Popover
#fefbfewhite
#0a050ablack
Popover foreground
#100411black
#faf5faghostwhite
Primary
#efbaf2thistle
#efbaf2thistle
Primary foreground
#621367indigo
#621367indigo
Secondary
#bef2balightgrey
#bef2balightgrey
Secondary foreground
#041103black
#041103black
Muted
#dbe1dagainsboro
#1e251eblack
Muted foreground
#3e473edarkslategray
#b9c1b8silver
Accent
#bef2balightgrey
#bef2balightgrey
Accent foreground
#041103black
#041103black
Destructive
#6b210bmaroon
#ed6c45tomato
Destructive foreground
#f7c1b0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#efbaf2thistle
#efbaf2thistle

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button7.17:1AAA
Secondary button15.30:1AAA
Muted text7.28:1AAA
Accent15.30:1AAA
Destructive7.16:1AAA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button7.17:1AAA
Secondary button15.30:1AAA
Muted text8.52:1AAA
Accent15.30:1AAA
Destructive6.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 323.665);
  --foreground: oklch(0.137 0.037 325.123);
  --muted: oklch(0.904 0.012 143.564);
  --muted-foreground: oklch(0.387 0.019 143.371);
  --popover: oklch(0.991 0.006 323.665);
  --popover-foreground: oklch(0.137 0.037 325.123);
  --card: oklch(0.991 0.006 323.665);
  --card-foreground: oklch(0.137 0.037 325.123);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.854 0.095 324.186);
  --primary-foreground: oklch(0.363 0.149 325.073);
  --secondary: oklch(0.912 0.093 143.084);
  --secondary-foreground: oklch(0.16 0.038 141.656);
  --accent: oklch(0.912 0.093 143.084);
  --accent-foreground: oklch(0.16 0.038 141.656);
  --destructive: oklch(0.36 0.11 36.509);
  --destructive-foreground: oklch(0.854 0.067 37.596);
  --ring: oklch(0.854 0.095 324.186);
  --chart-1: oklch(0.854 0.095 324.186);
  --chart-2: oklch(0.912 0.093 143.084);
  --chart-3: oklch(0.912 0.093 143.084);
  --chart-4: oklch(0.927 0.075 143.197);
  --chart-5: oklch(0.853 0.099 324.208);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 324.567);
  --foreground: oklch(0.975 0.008 323.68);
  --muted: oklch(0.254 0.017 143.284);
  --muted-foreground: oklch(0.803 0.016 143.53);
  --popover: oklch(0.128 0.015 324.567);
  --popover-foreground: oklch(0.975 0.008 323.68);
  --card: oklch(0.128 0.015 324.567);
  --card-foreground: oklch(0.975 0.008 323.68);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.854 0.095 324.186);
  --primary-foreground: oklch(0.363 0.149 325.073);
  --secondary: oklch(0.912 0.093 143.084);
  --secondary-foreground: oklch(0.16 0.038 141.656);
  --accent: oklch(0.912 0.093 143.084);
  --accent-foreground: oklch(0.16 0.038 141.656);
  --destructive: oklch(0.681 0.168 37.498);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.854 0.095 324.186);
  --chart-1: oklch(0.854 0.095 324.186);
  --chart-2: oklch(0.912 0.093 143.084);
  --chart-3: oklch(0.912 0.093 143.084);
  --chart-4: oklch(0.927 0.075 143.197);
  --chart-5: oklch(0.853 0.099 324.208);
}