Plush for shadcn/ui

Plush is a shadcn/ui theme built around a near-black primary color (#080a05) with near-black accents (#0a0508). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the near-black primary (#080a05) on a green-tinted background (#080b04).

Color palette

TokenLightDark
Background
#fbfdf7snow
#080b04black
Foreground
#060802black
#f8faf5whitesmoke
Card
#f8fcf3whitesmoke
#0b0f06black
Card foreground
#030401black
#fafcf8snow
Popover
#f8fcf3whitesmoke
#0b0f06black
Popover foreground
#030401black
#fafcf8snow
Primary
#080a05black
#080a05black
Primary foreground
#a7bd84darkseagreen
#a7bd84darkseagreen
Secondary
#05080ablack
#05080ablack
Secondary foreground
#84a7bddarkgray
#84a7bddarkgray
Muted
#d4daddgainsboro
#22272bdarkslategray
Muted foreground
#434f56darkslategray
#a9b5bcdarkgray
Accent
#0a0508black
#0a0508black
Accent foreground
#bd84a7rosybrown
#bd84a7rosybrown
Destructive
#5d2809maroon
#df6016chocolate
Destructive foreground
#f6c1a2navajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080a05black
#080a05black

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.78:1AAA
Primary button9.71:1AAA
Secondary button7.87:1AAA
Muted text5.96:1AA
Accent6.75:1AA
Destructive7.38:1AAA
Dark mode
Text on background18.84:1AAA
Text on card18.78:1AAA
Primary button9.71:1AAA
Secondary button7.87:1AAA
Muted text7.17:1AAA
Accent6.75:1AA
Destructive3.61: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.99 0.008 123.765);
  --foreground: oklch(0.128 0.02 123.009);
  --muted: oklch(0.884 0.008 234.633);
  --muted-foreground: oklch(0.419 0.019 235.201);
  --popover: oklch(0.986 0.013 123.829);
  --popover-foreground: oklch(0.102 0.016 123.009);
  --card: oklch(0.986 0.013 123.829);
  --card-foreground: oklch(0.102 0.016 123.009);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.14 0.012 123.286);
  --primary-foreground: oklch(0.767 0.081 125.284);
  --secondary: oklch(0.132 0.007 230.714);
  --secondary-foreground: oklch(0.711 0.05 235.69);
  --accent: oklch(0.127 0.012 339.574);
  --accent-foreground: oklch(0.682 0.083 341.995);
  --destructive: oklch(0.346 0.087 46.335);
  --destructive-foreground: oklch(0.85 0.074 51.472);
  --ring: oklch(0.14 0.012 123.286);
  --chart-1: oklch(0.14 0.012 123.286);
  --chart-2: oklch(0.132 0.007 230.714);
  --chart-3: oklch(0.127 0.012 339.574);
  --chart-4: oklch(0.17 0.012 235.643);
  --chart-5: oklch(0.141 0.013 123.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 123.231);
  --foreground: oklch(0.982 0.008 123.757);
  --muted: oklch(0.27 0.01 235.1);
  --muted-foreground: oklch(0.765 0.016 234.817);
  --popover: oklch(0.159 0.02 124.522);
  --popover-foreground: oklch(0.988 0.005 123.717);
  --card: oklch(0.159 0.02 124.522);
  --card-foreground: oklch(0.988 0.005 123.717);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.14 0.012 123.286);
  --primary-foreground: oklch(0.767 0.081 125.284);
  --secondary: oklch(0.132 0.007 230.714);
  --secondary-foreground: oklch(0.711 0.05 235.69);
  --accent: oklch(0.127 0.012 339.574);
  --accent-foreground: oklch(0.682 0.083 341.995);
  --destructive: oklch(0.639 0.176 44.491);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.14 0.012 123.286);
  --chart-1: oklch(0.14 0.012 123.286);
  --chart-2: oklch(0.132 0.007 230.714);
  --chart-3: oklch(0.127 0.012 339.574);
  --chart-4: oklch(0.17 0.012 235.643);
  --chart-5: oklch(0.141 0.013 123.255);
}