Plaintive for shadcn/ui

Plaintive is a shadcn/ui theme built around a neutral gray primary color (#383739) with neutral gray accents (#393739). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#383739) on a violet-tinted background (#0a0510).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0510black
Foreground
#000000black
#faf8fcghostwhite
Card
#fcfcfcsnow
#0c0614black
Card foreground
#000000black
#fcfcfdwhite
Popover
#ffffffwhite
#0a0510black
Popover foreground
#000000black
#faf8fcghostwhite
Primary
#383739darkslategray
#383739darkslategray
Primary foreground
#d1d0d2lightgrey
#d1d0d2lightgrey
Secondary
#373739darkslategray
#373739darkslategray
Secondary foreground
#d0d0d2lightgrey
#d0d0d2lightgrey
Muted
#dbdce6gainsboro
#191a24black
Muted foreground
#404154darkslategray
#abacbfdarkgray
Accent
#393739darkslategray
#393739darkslategray
Accent foreground
#d2d0d2lightgrey
#d2d0d2lightgrey
Destructive
#6c1b04maroon
#dc3709orangered
Destructive foreground
#fbb9a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#383739darkslategray
#383739darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.70:1AAA
Secondary button7.70:1AAA
Muted text7.30:1AAA
Accent7.69:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.12:1AAA
Text on card19.48:1AAA
Primary button7.70:1AAA
Secondary button7.70:1AAA
Muted text7.72:1AAA
Accent7.69:1AAA
Destructive4.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.013 283.709);
  --muted-foreground: oklch(0.383 0.031 282.463);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.339 0.004 306.274);
  --primary-foreground: oklch(0.859 0.003 306.389);
  --secondary: oklch(0.338 0.004 283.781);
  --secondary-foreground: oklch(0.859 0.002 283.923);
  --accent: oklch(0.34 0.005 324.212);
  --accent-foreground: oklch(0.86 0.003 324.151);
  --destructive: oklch(0.354 0.118 35.234);
  --destructive-foreground: oklch(0.843 0.081 36.042);
  --ring: oklch(0.339 0.004 306.274);
  --chart-1: oklch(0.339 0.004 306.274);
  --chart-2: oklch(0.338 0.004 283.781);
  --chart-3: oklch(0.34 0.005 324.212);
  --chart-4: oklch(0.367 0.004 283.776);
  --chart-5: oklch(0.335 0.01 306.036);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.028 306.071);
  --foreground: oklch(0.982 0.005 306.36);
  --muted: oklch(0.222 0.019 282.345);
  --muted-foreground: oklch(0.751 0.026 283.352);
  --popover: oklch(0.129 0.028 306.071);
  --popover-foreground: oklch(0.982 0.005 306.36);
  --card: oklch(0.14 0.032 304.509);
  --card-foreground: oklch(0.991 0.003 306.394);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.339 0.004 306.274);
  --primary-foreground: oklch(0.859 0.003 306.389);
  --secondary: oklch(0.338 0.004 283.781);
  --secondary-foreground: oklch(0.859 0.002 283.923);
  --accent: oklch(0.34 0.005 324.212);
  --accent-foreground: oklch(0.86 0.003 324.151);
  --destructive: oklch(0.588 0.207 34.023);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.339 0.004 306.274);
  --chart-1: oklch(0.339 0.004 306.274);
  --chart-2: oklch(0.338 0.004 283.781);
  --chart-3: oklch(0.34 0.005 324.212);
  --chart-4: oklch(0.367 0.004 283.776);
  --chart-5: oklch(0.335 0.01 306.036);
}