Plush for shadcn/ui

Plush is a shadcn/ui theme built around a muted deep green primary color (#323621) with muted deep indigo accents (#252136). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#323621) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfefbwhite
#000000black
Foreground
#000000black
#fdfdfcwhite
Card
#fbfcf8snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfcf8snow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#323621darkslategray
#323621darkslategray
Primary foreground
#cdd3b6silver
#cdd3b6silver
Secondary
#252136darkslategray
#252136darkslategray
Secondary foreground
#bcb6d3lightsteelblue
#bcb6d3lightsteelblue
Muted
#efeef2whitesmoke
#0e0d11black
Muted foreground
#58575cdimgray
#a4a3a8darkgray
Accent
#252136darkslategray
#252136darkslategray
Accent foreground
#bcb6d3lightsteelblue
#bcb6d3lightsteelblue
Destructive
#9c2402firebrick
#fb4513orangered
Destructive foreground
#fedbd2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#323621darkslategray
#323621darkslategray

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.39:1AAA
Primary button8.05:1AAA
Secondary button8.01:1AAA
Muted text6.18:1AA
Accent8.01:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button8.05:1AAA
Secondary button8.01:1AAA
Muted text7.71:1AAA
Accent8.01:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 115.632);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.005 295.475);
  --muted-foreground: oklch(0.458 0.009 295.229);
  --popover: oklch(0.989 0.006 115.687);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.006 115.687);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.036 117.699);
  --primary-foreground: oklch(0.855 0.04 116.438);
  --secondary: oklch(0.261 0.04 292.562);
  --secondary-foreground: oklch(0.789 0.042 294.598);
  --accent: oklch(0.261 0.04 292.562);
  --accent-foreground: oklch(0.789 0.042 294.598);
  --destructive: oklch(0.454 0.161 34.239);
  --destructive-foreground: oklch(0.919 0.041 35.945);
  --ring: oklch(0.323 0.036 117.699);
  --chart-1: oklch(0.323 0.036 117.699);
  --chart-2: oklch(0.261 0.04 292.562);
  --chart-3: oklch(0.261 0.04 292.562);
  --chart-4: oklch(0.288 0.046 292.422);
  --chart-5: oklch(0.327 0.04 117.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 115.595);
  --muted: oklch(0.163 0.008 294.627);
  --muted-foreground: oklch(0.718 0.008 295.38);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.323 0.036 117.699);
  --primary-foreground: oklch(0.855 0.04 116.438);
  --secondary: oklch(0.261 0.04 292.562);
  --secondary-foreground: oklch(0.789 0.042 294.598);
  --accent: oklch(0.261 0.04 292.562);
  --accent-foreground: oklch(0.789 0.042 294.598);
  --destructive: oklch(0.655 0.225 34.48);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.323 0.036 117.699);
  --chart-1: oklch(0.323 0.036 117.699);
  --chart-2: oklch(0.261 0.04 292.562);
  --chart-3: oklch(0.261 0.04 292.562);
  --chart-4: oklch(0.288 0.046 292.422);
  --chart-5: oklch(0.327 0.04 117.916);
}