Plaintive for shadcn/ui

Plaintive is a shadcn/ui theme built around a deep purple primary color (#651f63) with deep teal accents (#1f6365). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the deep purple primary (#651f63) on a purple-tinted background (#0b040b).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0b040bblack
Foreground
#0c040bblack
#fbf9fbsnow
Card
#fcf8fcsnow
#0b040bblack
Card foreground
#0c040bblack
#fbf9fbsnow
Popover
#fcf8fcsnow
#0b040bblack
Popover foreground
#0c040bblack
#fbf9fbsnow
Primary
#651f63purple
#651f63purple
Primary foreground
#eec8edthistle
#eec8edthistle
Secondary
#63651fdarkolivegreen
#63651fdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f1e0beige
#1f1f0eblack
Muted foreground
#62634fdimgray
#afb09cdarkgray
Accent
#1f6365darkslategray
#1f6365darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f2f0asaddlebrown
#d95112chocolate
Destructive foreground
#fad4c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#651f63purple
#651f63purple

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button7.29:1AAA
Secondary button6.12:1AA
Muted text5.35:1AA
Accent6.91:1AA
Destructive6.56:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button7.29:1AAA
Secondary button6.12:1AA
Muted text7.51:1AAA
Accent6.91:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.007 326.603);
  --foreground: oklch(0.125 0.027 328.008);
  --muted: oklch(0.952 0.022 108.368);
  --muted-foreground: oklch(0.494 0.03 109.026);
  --popover: oklch(0.983 0.007 326.603);
  --popover-foreground: oklch(0.125 0.027 328.008);
  --card: oklch(0.983 0.007 326.603);
  --card-foreground: oklch(0.125 0.027 328.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.378 0.132 329.19);
  --primary-foreground: oklch(0.877 0.064 327.153);
  --secondary: oklch(0.492 0.092 111.175);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.459 0.066 198.385);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.417 0.12 41.273);
  --destructive-foreground: oklch(0.896 0.05 46.313);
  --ring: oklch(0.378 0.132 329.19);
  --chart-1: oklch(0.378 0.132 329.19);
  --chart-2: oklch(0.492 0.092 111.175);
  --chart-3: oklch(0.459 0.066 198.385);
  --chart-4: oklch(0.531 0.1 111.204);
  --chart-5: oklch(0.38 0.138 329.282);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 327.71);
  --foreground: oklch(0.984 0.003 326.563);
  --muted: oklch(0.235 0.03 110.13);
  --muted-foreground: oklch(0.75 0.027 108.599);
  --popover: oklch(0.126 0.022 327.71);
  --popover-foreground: oklch(0.984 0.003 326.563);
  --card: oklch(0.126 0.022 327.71);
  --card-foreground: oklch(0.984 0.003 326.563);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.378 0.132 329.19);
  --primary-foreground: oklch(0.877 0.064 327.153);
  --secondary: oklch(0.492 0.092 111.175);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.459 0.066 198.385);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.61 0.183 40.344);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.378 0.132 329.19);
  --chart-1: oklch(0.378 0.132 329.19);
  --chart-2: oklch(0.492 0.092 111.175);
  --chart-3: oklch(0.459 0.066 198.385);
  --chart-4: oklch(0.531 0.1 111.204);
  --chart-5: oklch(0.38 0.138 329.282);
}