Lavender Blossom Clam for shadcn/ui

Lavender Blossom Clam is a shadcn/ui theme built around a violet primary color (#b882e8) with muted light violet accents (#cfc5d8). The light mode uses a neutral background (#faf8fb). Dark mode keeps the violet primary (#b882e8) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#faf8fbghostwhite
#050208black
Foreground
#0d0514black
#fcfcfdwhite
Card
#faf8fbghostwhite
#050208black
Card foreground
#0d0514black
#fcfcfdwhite
Popover
#faf8fbghostwhite
#050208black
Popover foreground
#0d0514black
#fcfcfdwhite
Primary
#b882e8orchid
#b882e8orchid
Primary foreground
#1d092fblack
#1d092fblack
Secondary
#cfc5d8thistle
#332e38darkslategray
Secondary foreground
#362b40darkslategray
#ccc7d1lightgrey
Muted
#dacce5gainsboro
#271a33darkslategray
Muted foreground
#4a4351darkslategray
#b6aebcsilver
Accent
#cfc5d8thistle
#332e38darkslategray
Accent foreground
#362b40darkslategray
#ccc7d1lightgrey
Destructive
#720303maroon
#f90b0bred
Destructive foreground
#fdaaaalightpink
#ffffffwhite
Border
#e1dee3gainsboro
#26232adarkslategray
Input
#e1dee3gainsboro
#26232adarkslategray
Ring
#b882e8orchid
#b882e8orchid

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button6.54:1AA
Secondary button8.00:1AAA
Muted text6.21:1AA
Accent8.00:1AAA
Destructive6.63:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button6.54:1AA
Secondary button7.93:1AAA
Muted text7.64:1AAA
Accent7.93:1AAA
Destructive4.13:1AA Large

CSS variables

Paste this into your globals.css to use Lavender Blossom Clam in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 309.741);
  --foreground: oklch(0.141 0.034 308.329);
  --muted: oklch(0.864 0.037 309.358);
  --muted-foreground: oklch(0.395 0.027 309.12);
  --popover: oklch(0.982 0.004 309.741);
  --popover-foreground: oklch(0.141 0.034 308.329);
  --card: oklch(0.982 0.004 309.741);
  --card-foreground: oklch(0.141 0.034 308.329);
  --border: oklch(0.903 0.008 309.696);
  --input: oklch(0.903 0.008 309.696);
  --primary: oklch(0.701 0.154 307.464);
  --primary-foreground: oklch(0.197 0.074 304.95);
  --secondary: oklch(0.837 0.029 309.444);
  --secondary-foreground: oklch(0.311 0.04 308.478);
  --accent: oklch(0.837 0.029 309.444);
  --accent-foreground: oklch(0.311 0.04 308.478);
  --destructive: oklch(0.349 0.141 28.815);
  --destructive-foreground: oklch(0.819 0.097 19.373);
  --ring: oklch(0.701 0.154 307.464);
  --chart-1: oklch(0.701 0.154 307.464);
  --chart-2: oklch(0.837 0.029 309.444);
  --chart-3: oklch(0.837 0.029 309.444);
  --chart-4: oklch(0.863 0.024 309.508);
  --chart-5: oklch(0.698 0.16 307.341);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.021 311.405);
  --foreground: oklch(0.991 0.002 309.767);
  --muted: oklch(0.246 0.05 307.676);
  --muted-foreground: oklch(0.761 0.023 309.491);
  --popover: oklch(0.103 0.021 311.405);
  --popover-foreground: oklch(0.991 0.002 309.767);
  --card: oklch(0.103 0.021 311.405);
  --card-foreground: oklch(0.991 0.002 309.767);
  --border: oklch(0.262 0.014 309.269);
  --input: oklch(0.262 0.014 309.269);
  --primary: oklch(0.701 0.154 307.464);
  --primary-foreground: oklch(0.197 0.074 304.95);
  --secondary: oklch(0.312 0.017 309.23);
  --secondary-foreground: oklch(0.838 0.014 309.623);
  --accent: oklch(0.312 0.017 309.23);
  --accent-foreground: oklch(0.838 0.014 309.623);
  --destructive: oklch(0.619 0.25 28.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.701 0.154 307.464);
  --chart-1: oklch(0.701 0.154 307.464);
  --chart-2: oklch(0.312 0.017 309.23);
  --chart-3: oklch(0.312 0.017 309.23);
  --chart-4: oklch(0.34 0.02 309.214);
  --chart-5: oklch(0.698 0.16 307.341);
}