Plaintive for shadcn/ui

Plaintive is a shadcn/ui theme built around a muted deep green primary color (#383d29) with muted deep green accents (#2e3d29). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#383d29) on a green-tinted background (#090b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#090b04black
Foreground
#101306black
#ffffffwhite
Card
#fcfcfcsnow
#0d0f06black
Card foreground
#0d0f05black
#ffffffwhite
Popover
#fcfcfcsnow
#0d0f06black
Popover foreground
#0d0f05black
#ffffffwhite
Primary
#383d29darkslategray
#383d29darkslategray
Primary foreground
#d1d6c2lightgrey
#d1d6c2lightgrey
Secondary
#3d3829darkslategray
#3d3829darkslategray
Secondary foreground
#d6d1c2lightgrey
#d6d1c2lightgrey
Muted
#f4f3f0whitesmoke
#0f0e0bblack
Muted foreground
#41403edarkslategray
#c1c0besilver
Accent
#2e3d29darkslategray
#2e3d29darkslategray
Accent foreground
#c7d6c2lightgrey
#c7d6c2lightgrey
Destructive
#bd240ffirebrick
#ed3921orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#383d29darkslategray
#383d29darkslategray

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.89:1AAA
Primary button7.57:1AAA
Secondary button7.70:1AAA
Muted text9.34:1AAA
Accent7.63:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.33:1AAA
Primary button7.57:1AAA
Secondary button7.70:1AAA
Muted text10.64:1AAA
Accent7.63:1AAA
Destructive4.03: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.18 0.026 119.423);
  --muted: oklch(0.964 0.004 90.15);
  --muted-foreground: oklch(0.373 0.003 90.187);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.164 0.022 118.753);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.164 0.022 118.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.349 0.033 118.793);
  --primary-foreground: oklch(0.866 0.027 117.632);
  --secondary: oklch(0.34 0.025 90.43);
  --secondary-foreground: oklch(0.859 0.02 90.283);
  --accent: oklch(0.34 0.038 137.497);
  --accent-foreground: oklch(0.859 0.03 137.274);
  --destructive: oklch(0.516 0.191 30.993);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.349 0.033 118.793);
  --chart-1: oklch(0.349 0.033 118.793);
  --chart-2: oklch(0.34 0.025 90.43);
  --chart-3: oklch(0.34 0.038 137.497);
  --chart-4: oklch(0.372 0.028 90.428);
  --chart-5: oklch(0.353 0.037 119.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.017 117.475);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.006 90.342);
  --muted-foreground: oklch(0.807 0.003 90.146);
  --popover: oklch(0.162 0.02 118.594);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.02 118.594);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.349 0.033 118.793);
  --primary-foreground: oklch(0.866 0.027 117.632);
  --secondary: oklch(0.34 0.025 90.43);
  --secondary-foreground: oklch(0.859 0.02 90.283);
  --accent: oklch(0.34 0.038 137.497);
  --accent-foreground: oklch(0.859 0.03 137.274);
  --destructive: oklch(0.62 0.219 31.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.349 0.033 118.793);
  --chart-1: oklch(0.349 0.033 118.793);
  --chart-2: oklch(0.34 0.025 90.43);
  --chart-3: oklch(0.34 0.038 137.497);
  --chart-4: oklch(0.372 0.028 90.428);
  --chart-5: oklch(0.353 0.037 119.033);
}