Plaintive for shadcn/ui

Plaintive is a shadcn/ui theme built around a near-white primary color (#f4f5f5) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f4f5f5) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#02090dblack
#f9fafaghostwhite
Card
#fcfcfcsnow
#030607black
Card foreground
#010609black
#fcfdfdwhite
Popover
#fcfcfcsnow
#030607black
Popover foreground
#010609black
#fcfdfdwhite
Primary
#f4f5f5whitesmoke
#f4f5f5whitesmoke
Primary foreground
#565d61dimgray
#565d61dimgray
Secondary
#f4f5f5whitesmoke
#f4f5f5whitesmoke
Secondary foreground
#262b2bdarkslategray
#262b2bdarkslategray
Muted
#eaeceblavender
#131515black
Muted foreground
#636968dimgray
#969c9bdarkgray
Accent
#f4f4f5whitesmoke
#f4f4f5whitesmoke
Accent foreground
#565861dimgray
#565861dimgray
Destructive
#be0404firebrick
#fa1919red
Destructive foreground
#fff5f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f5f5whitesmoke
#f4f5f5whitesmoke

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.92:1AAA
Primary button6.13:1AA
Secondary button13.18:1AAA
Muted text4.70:1AA
Accent6.46:1AA
Destructive6.12:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.98:1AAA
Primary button6.13:1AA
Secondary button13.18:1AAA
Muted text6.54:1AA
Accent6.46:1AA
Destructive4.01:1AA Large

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.132 0.018 227.475);
  --muted: oklch(0.94 0.002 188.854);
  --muted-foreground: oklch(0.515 0.008 188.557);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.115 0.015 225.989);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.015 225.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.97 0.001 234.521);
  --primary-foreground: oklch(0.474 0.011 234.847);
  --secondary: oklch(0.97 0.001 188.878);
  --secondary-foreground: oklch(0.285 0.007 188.319);
  --accent: oklch(0.968 0.001 280.307);
  --accent-foreground: oklch(0.461 0.016 279.775);
  --destructive: oklch(0.504 0.205 29.048);
  --destructive-foreground: oklch(0.978 0.011 17.336);
  --ring: oklch(0.97 0.001 234.521);
  --chart-1: oklch(0.97 0.001 234.521);
  --chart-2: oklch(0.97 0.001 188.878);
  --chart-3: oklch(0.968 0.001 280.307);
  --chart-4: oklch(0.993 0 188.902);
  --chart-5: oklch(0.97 0.002 234.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.007 229.301);
  --foreground: oklch(0.985 0.001 234.519);
  --muted: oklch(0.195 0.003 188.514);
  --muted-foreground: oklch(0.688 0.007 188.663);
  --popover: oklch(0.116 0.009 229.301);
  --popover-foreground: oklch(0.992 0 234.513);
  --card: oklch(0.116 0.009 229.301);
  --card-foreground: oklch(0.992 0 234.513);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.97 0.001 234.521);
  --primary-foreground: oklch(0.474 0.011 234.847);
  --secondary: oklch(0.97 0.001 188.878);
  --secondary-foreground: oklch(0.285 0.007 188.319);
  --accent: oklch(0.968 0.001 280.307);
  --accent-foreground: oklch(0.461 0.016 279.775);
  --destructive: oklch(0.626 0.247 28.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.97 0.001 234.521);
  --chart-1: oklch(0.97 0.001 234.521);
  --chart-2: oklch(0.97 0.001 188.878);
  --chart-3: oklch(0.968 0.001 280.307);
  --chart-4: oklch(0.993 0 188.902);
  --chart-5: oklch(0.97 0.002 234.529);
}