Plum Preserve Chinchilla for shadcn/ui

Plum Preserve Chinchilla is a shadcn/ui theme built around a muted violet primary color (#7e6ea6) with muted green accents (#6ea67e). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted violet primary (#7e6ea6) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#06040cblack
Foreground
#040208black
#fcfcfdwhite
Card
#f9f8fbghostwhite
#080510black
Card foreground
#020104black
#ffffffwhite
Popover
#f9f8fbghostwhite
#080510black
Popover foreground
#020104black
#ffffffwhite
Primary
#7e6ea6lightslategray
#7e6ea6lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a67e6egray
#a67e6egray
Secondary foreground
#000000black
#000000black
Muted
#f0efefwhitesmoke
#100f0fblack
Muted foreground
#6e5f59dimgray
#a69791rosybrown
Accent
#6ea67ecadetblue
#6ea67ecadetblue
Accent foreground
#000000black
#000000black
Destructive
#bd1b0ffirebrick
#e72113crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e4e7gainsboro
#252429darkslategray
Input
#e5e4e7gainsboro
#252429darkslategray
Ring
#7e6ea6lightslategray
#7e6ea6lightslategray

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card19.73:1AAA
Primary button4.51:1AA
Secondary button5.84:1AA
Muted text5.33:1AA
Accent7.40:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.91:1AAA
Text on card20.22:1AAA
Primary button4.51:1AA
Secondary button5.84:1AA
Muted text6.79:1AA
Accent7.40:1AAA
Destructive4.53:1AA

CSS variables

Paste this into your globals.css to use Plum Preserve Chinchilla in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 300.003);
  --foreground: oklch(0.096 0.025 300.305);
  --muted: oklch(0.954 0.001 44.968);
  --muted-foreground: oklch(0.499 0.022 44.583);
  --popover: oklch(0.982 0.004 299.967);
  --popover-foreground: oklch(0.076 0.02 300.305);
  --card: oklch(0.982 0.004 299.967);
  --card-foreground: oklch(0.076 0.02 300.305);
  --border: oklch(0.92 0.004 299.961);
  --input: oklch(0.92 0.004 299.961);
  --primary: oklch(0.575 0.087 297.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.628 0.055 44.292);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.083 153.216);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.511 0.196 29.688);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.087 297.39);
  --chart-1: oklch(0.575 0.087 297.39);
  --chart-2: oklch(0.628 0.055 44.292);
  --chart-3: oklch(0.675 0.083 153.216);
  --chart-4: oklch(0.654 0.051 44.356);
  --chart-5: oklch(0.568 0.098 296.992);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.023 300.086);
  --foreground: oklch(0.991 0.002 300.002);
  --muted: oklch(0.169 0.002 44.861);
  --muted-foreground: oklch(0.688 0.021 44.701);
  --popover: oklch(0.127 0.027 298.954);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.127 0.027 298.954);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.263 0.009 299.484);
  --input: oklch(0.263 0.009 299.484);
  --primary: oklch(0.575 0.087 297.39);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.628 0.055 44.292);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.083 153.216);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.593 0.229 29.721);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.087 297.39);
  --chart-1: oklch(0.575 0.087 297.39);
  --chart-2: oklch(0.628 0.055 44.292);
  --chart-3: oklch(0.675 0.083 153.216);
  --chart-4: oklch(0.654 0.051 44.356);
  --chart-5: oklch(0.568 0.098 296.992);
}