Plaintiff for shadcn/ui

Plaintiff is a shadcn/ui theme built around a vivid deep red primary color (#270209) with muted light red accents (#d8c5c9). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the vivid deep red primary (#270209) on a red-tinted background (#0f0608).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#0f0608black
Foreground
#040102black
#fdfcfcsnow
Card
#fdfbfcsnow
#0f0608black
Card foreground
#040102black
#fdfcfcsnow
Popover
#fdfbfcsnow
#0f0608black
Popover foreground
#040102black
#fdfcfcsnow
Primary
#270209black
#270209black
Primary foreground
#f86280lightcoral
#f86280lightcoral
Secondary
#d8c5c9thistle
#2d2526darkslategray
Secondary foreground
#402b2fdarkslategray
#c8bcbesilver
Muted
#e7d0d4gainsboro
#2f181dblack
Muted foreground
#634b4fdimgray
#b49ca1darkgray
Accent
#d8c5c9thistle
#2d2526darkslategray
Accent foreground
#402b2fdarkslategray
#c8bcbesilver
Destructive
#a4420asaddlebrown
#f37730tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#270209black
#270209black

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.42:1AA
Secondary button7.94:1AAA
Muted text5.41:1AA
Accent7.94:1AAA
Destructive6.24:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.42:1AA
Secondary button8.13:1AAA
Muted text6.45:1AA
Accent8.13:1AAA
Destructive7.50:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 3.244);
  --foreground: oklch(0.083 0.015 3.455);
  --muted: oklch(0.877 0.026 3.98);
  --muted-foreground: oklch(0.438 0.034 5.21);
  --popover: oklch(0.991 0.002 3.244);
  --popover-foreground: oklch(0.083 0.015 3.455);
  --card: oklch(0.991 0.002 3.244);
  --card-foreground: oklch(0.083 0.015 3.455);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.178 0.066 12.238);
  --primary-foreground: oklch(0.696 0.184 11.081);
  --secondary: oklch(0.84 0.022 3.896);
  --secondary-foreground: oklch(0.316 0.033 5.902);
  --accent: oklch(0.84 0.022 3.896);
  --accent-foreground: oklch(0.316 0.033 5.902);
  --destructive: oklch(0.505 0.142 43.846);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.178 0.066 12.238);
  --chart-1: oklch(0.178 0.066 12.238);
  --chart-2: oklch(0.84 0.022 3.896);
  --chart-3: oklch(0.84 0.022 3.896);
  --chart-4: oklch(0.866 0.019 3.762);
  --chart-5: oklch(0.178 0.068 12.443);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.018 4.356);
  --foreground: oklch(0.992 0.001 3.199);
  --muted: oklch(0.243 0.037 7.282);
  --muted-foreground: oklch(0.716 0.029 4.275);
  --popover: oklch(0.136 0.018 4.356);
  --popover-foreground: oklch(0.992 0.001 3.199);
  --card: oklch(0.136 0.018 4.356);
  --card-foreground: oklch(0.992 0.001 3.199);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.178 0.066 12.238);
  --primary-foreground: oklch(0.696 0.184 11.081);
  --secondary: oklch(0.273 0.013 4.408);
  --secondary-foreground: oklch(0.805 0.014 3.659);
  --accent: oklch(0.273 0.013 4.408);
  --accent-foreground: oklch(0.805 0.014 3.659);
  --destructive: oklch(0.704 0.172 46.883);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.178 0.066 12.238);
  --chart-1: oklch(0.178 0.066 12.238);
  --chart-2: oklch(0.273 0.013 4.408);
  --chart-3: oklch(0.273 0.013 4.408);
  --chart-4: oklch(0.303 0.015 4.461);
  --chart-5: oklch(0.178 0.068 12.443);
}