Plaintive for shadcn/ui

Plaintive is a shadcn/ui theme built around a vivid purple primary color (#b113b4) with vivid green accents (#16b413). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#b113b4) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#0d020dblack
#ffffffwhite
Card
#fcfcfcsnow
#0a050ablack
Card foreground
#090109black
#ffffffwhite
Popover
#ffffffwhite
#070307black
Popover foreground
#0d020dblack
#ffffffwhite
Primary
#b113b4darkorchid
#b113b4darkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#16b413forestgreen
#16b413forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfecdfgainsboro
#132013black
Muted foreground
#4e6a4edarkolivegreen
#96b195darkseagreen
Accent
#16b413forestgreen
#16b413forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c71d0afirebrick
#f2240dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b113b4darkorchid
#b113b4darkorchid

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.14:1AAA
Primary button5.78:1AA
Secondary button2.77:1Fail
Muted text4.92:1AA
Accent2.77:1Fail
Destructive5.83:1AA
Dark mode
Text on background20.45:1AAA
Text on card20.19:1AAA
Primary button5.78:1AA
Secondary button2.77:1Fail
Muted text7.24:1AAA
Accent2.77:1Fail
Destructive4.16: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.122 0.04 327.211);
  --muted: oklch(0.93 0.022 144.93);
  --muted-foreground: oklch(0.493 0.054 144.298);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.04 327.211);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.035 327.267);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.541 0.241 327.467);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.669 0.221 142.504);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.669 0.221 142.504);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.531 0.203 30.457);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.541 0.241 327.467);
  --chart-1: oklch(0.541 0.241 327.467);
  --chart-2: oklch(0.669 0.221 142.504);
  --chart-3: oklch(0.669 0.221 142.504);
  --chart-4: oklch(0.707 0.234 142.501);
  --chart-5: oklch(0.546 0.245 327.472);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.014 326.014);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.031 144.079);
  --muted-foreground: oklch(0.732 0.049 144.615);
  --popover: oklch(0.112 0.014 326.014);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.016 326.014);
  --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.541 0.241 327.467);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.669 0.221 142.504);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.669 0.221 142.504);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.615 0.237 30.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.541 0.241 327.467);
  --chart-1: oklch(0.541 0.241 327.467);
  --chart-2: oklch(0.669 0.221 142.504);
  --chart-3: oklch(0.669 0.221 142.504);
  --chart-4: oklch(0.707 0.234 142.501);
  --chart-5: oklch(0.546 0.245 327.472);
}