Plum for shadcn/ui

Plum is a shadcn/ui theme built around a near-white primary color (#fdf7f7) with neutral gray accents (#e4e2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fdf7f7) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#040101black
#fdfcfcsnow
Card
#ffffffwhite
#040101black
Card foreground
#040101black
#fdfcfcsnow
Popover
#ffffffwhite
#040101black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#fdf7f7snow
#fdf7f7snow
Primary foreground
#952e2dbrown
#952e2dbrown
Secondary
#e4e2e2gainsboro
#231f1fblack
Secondary foreground
#4d4747darkslategray
#beb6b6silver
Muted
#e8e4e3gainsboro
#1c1817black
Muted foreground
#554a4adarkslategray
#b5abaadarkgray
Accent
#e4e2e2gainsboro
#231f1fblack
Accent foreground
#4d4747darkslategray
#beb6b6silver
Destructive
#7c2709saddlebrown
#f0612dtomato
Destructive foreground
#facdbcpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdf7f7snow
#fdf7f7snow

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button7.33:1AAA
Secondary button7.04:1AAA
Muted text6.72:1AA
Accent7.04:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.33:1AAA
Secondary button8.18:1AAA
Muted text7.88:1AAA
Accent8.18:1AAA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.015 22.601);
  --muted: oklch(0.921 0.004 18.434);
  --muted-foreground: oklch(0.419 0.015 18.918);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.015 22.601);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.082 0.015 22.601);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.981 0.006 18.452);
  --primary-foreground: oklch(0.458 0.138 25.286);
  --secondary: oklch(0.914 0.002 18.402);
  --secondary-foreground: oklch(0.404 0.008 18.664);
  --accent: oklch(0.914 0.002 18.402);
  --accent-foreground: oklch(0.404 0.008 18.664);
  --destructive: oklch(0.4 0.124 37.842);
  --destructive-foreground: oklch(0.883 0.057 40.953);
  --ring: oklch(0.981 0.006 18.452);
  --chart-1: oklch(0.981 0.006 18.452);
  --chart-2: oklch(0.914 0.002 18.402);
  --chart-3: oklch(0.914 0.002 18.402);
  --chart-4: oklch(0.938 0.002 18.39);
  --chart-5: oklch(0.981 0.006 18.457);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 21.561);
  --foreground: oklch(0.992 0.001 18.379);
  --muted: oklch(0.212 0.006 18.839);
  --muted-foreground: oklch(0.749 0.013 18.622);
  --popover: oklch(0.084 0.012 21.561);
  --popover-foreground: oklch(0.992 0.001 18.379);
  --card: oklch(0.084 0.012 21.561);
  --card-foreground: oklch(0.992 0.001 18.379);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.981 0.006 18.452);
  --primary-foreground: oklch(0.458 0.138 25.286);
  --secondary: oklch(0.245 0.006 18.746);
  --secondary-foreground: oklch(0.783 0.009 18.543);
  --accent: oklch(0.245 0.006 18.746);
  --accent-foreground: oklch(0.783 0.009 18.543);
  --destructive: oklch(0.669 0.188 38.971);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.981 0.006 18.452);
  --chart-1: oklch(0.981 0.006 18.452);
  --chart-2: oklch(0.245 0.006 18.746);
  --chart-3: oklch(0.245 0.006 18.746);
  --chart-4: oklch(0.276 0.007 18.77);
  --chart-5: oklch(0.981 0.006 18.457);
}