Plush for shadcn/ui

Plush is a shadcn/ui theme built around a muted deep yellow primary color (#454431) with muted deep purple accents (#443145). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#454431) on a yellow-tinted background (#0f0e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0e06black
Foreground
#000000black
#fafaf9snow
Card
#ffffffwhite
#0f0e06black
Card foreground
#000000black
#fafaf9snow
Popover
#ffffffwhite
#0f0e06black
Popover foreground
#000000black
#fafaf9snow
Primary
#454431darkslategray
#454431darkslategray
Primary foreground
#dbdbcclightgrey
#dbdbcclightgrey
Secondary
#314544darkslategray
#314544darkslategray
Secondary foreground
#ccdbdblightgrey
#ccdbdblightgrey
Muted
#d7dfdfgainsboro
#202827darkslategray
Muted foreground
#535a5adimgray
#a5acacdarkgray
Accent
#443145darkslategray
#443145darkslategray
Accent foreground
#dbccdblightgrey
#dbccdblightgrey
Destructive
#6d2c09saddlebrown
#ee722ftomato
Destructive foreground
#f8c9afpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#454431darkslategray
#454431darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.08:1AAA
Secondary button7.16:1AAA
Muted text5.22:1AA
Accent7.74:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.48:1AAA
Primary button7.08:1AAA
Secondary button7.16:1AAA
Muted text6.54:1AA
Accent7.74:1AAA
Destructive7.09:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.898 0.008 194.614);
  --muted-foreground: oklch(0.462 0.009 194.438);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.381 0.031 106.129);
  --primary-foreground: oklch(0.886 0.019 105.18);
  --secondary: oklch(0.372 0.025 193.548);
  --secondary-foreground: oklch(0.88 0.016 194.455);
  --accent: oklch(0.342 0.043 325.371);
  --accent-foreground: oklch(0.862 0.025 324.804);
  --destructive: oklch(0.379 0.102 44.159);
  --destructive-foreground: oklch(0.87 0.065 49.782);
  --ring: oklch(0.381 0.031 106.129);
  --chart-1: oklch(0.381 0.031 106.129);
  --chart-2: oklch(0.372 0.025 193.548);
  --chart-3: oklch(0.342 0.043 325.371);
  --chart-4: oklch(0.404 0.028 193.524);
  --chart-5: oklch(0.387 0.036 106.301);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.019 106.727);
  --foreground: oklch(0.986 0.001 104.831);
  --muted: oklch(0.268 0.011 194.024);
  --muted-foreground: oklch(0.738 0.008 194.592);
  --popover: oklch(0.163 0.019 106.727);
  --popover-foreground: oklch(0.986 0.001 104.831);
  --card: oklch(0.163 0.019 106.727);
  --card-foreground: oklch(0.986 0.001 104.831);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.381 0.031 106.129);
  --primary-foreground: oklch(0.886 0.019 105.18);
  --secondary: oklch(0.372 0.025 193.548);
  --secondary-foreground: oklch(0.88 0.016 194.455);
  --accent: oklch(0.342 0.043 325.371);
  --accent-foreground: oklch(0.862 0.025 324.804);
  --destructive: oklch(0.69 0.171 45.512);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.381 0.031 106.129);
  --chart-1: oklch(0.381 0.031 106.129);
  --chart-2: oklch(0.372 0.025 193.548);
  --chart-3: oklch(0.342 0.043 325.371);
  --chart-4: oklch(0.404 0.028 193.524);
  --chart-5: oklch(0.387 0.036 106.301);
}