Plea for shadcn/ui

Plea is a shadcn/ui theme built around a purple primary color (#ca44b6) with muted light purple accents (#d9c9d7). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#ca44b6) on a neutral background (#080207).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#080207black
Foreground
#0c030bblack
#fbf8fbsnow
Card
#fcf8fbsnow
#080207black
Card foreground
#0c030bblack
#fbf8fbsnow
Popover
#fcf8fbsnow
#080207black
Popover foreground
#0c030bblack
#fbf8fbsnow
Primary
#ca44b6mediumorchid
#ca44b6mediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d9c9d7thistle
#30212edarkslategray
Secondary foreground
#422e3fdarkslategray
#cdb7casilver
Muted
#ead2e6gainsboro
#2d152ablack
Muted foreground
#5d4b5bdimgray
#b4a2b1darkgray
Accent
#d9c9d7thistle
#30212edarkslategray
Accent foreground
#422e3fdarkslategray
#cdb7casilver
Destructive
#760e05maroon
#f74636tomato
Destructive foreground
#fcb7b1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca44b6mediumorchid
#ca44b6mediumorchid

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button4.18:1AA Large
Secondary button7.83:1AAA
Muted text5.66:1AA
Accent7.83:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button4.18:1AA Large
Secondary button8.08:1AAA
Muted text6.97:1AA
Accent8.08:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 330.327);
  --foreground: oklch(0.123 0.028 331.697);
  --muted: oklch(0.889 0.038 330.782);
  --muted-foreground: oklch(0.437 0.035 331.236);
  --popover: oklch(0.983 0.006 330.327);
  --popover-foreground: oklch(0.123 0.028 331.697);
  --card: oklch(0.983 0.006 330.327);
  --card-foreground: oklch(0.123 0.028 331.697);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.613 0.21 334.373);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.853 0.026 330.64);
  --secondary-foreground: oklch(0.331 0.041 331.737);
  --accent: oklch(0.853 0.026 330.64);
  --accent-foreground: oklch(0.331 0.041 331.737);
  --destructive: oklch(0.363 0.137 30.303);
  --destructive-foreground: oklch(0.841 0.081 24.782);
  --ring: oklch(0.613 0.21 334.373);
  --chart-1: oklch(0.613 0.21 334.373);
  --chart-2: oklch(0.853 0.026 330.64);
  --chart-3: oklch(0.853 0.026 330.64);
  --chart-4: oklch(0.878 0.022 330.564);
  --chart-5: oklch(0.617 0.218 334.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.023 331.299);
  --foreground: oklch(0.983 0.004 330.304);
  --muted: oklch(0.24 0.051 332.769);
  --muted-foreground: oklch(0.732 0.031 330.777);
  --popover: oklch(0.108 0.023 331.299);
  --popover-foreground: oklch(0.983 0.004 330.304);
  --card: oklch(0.108 0.023 331.299);
  --card-foreground: oklch(0.983 0.004 330.304);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.613 0.21 334.373);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.273 0.031 331.637);
  --secondary-foreground: oklch(0.803 0.036 330.808);
  --accent: oklch(0.273 0.031 331.637);
  --accent-foreground: oklch(0.803 0.036 330.808);
  --destructive: oklch(0.65 0.215 29.396);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.613 0.21 334.373);
  --chart-1: oklch(0.613 0.21 334.373);
  --chart-2: oklch(0.273 0.031 331.637);
  --chart-3: oklch(0.273 0.031 331.637);
  --chart-4: oklch(0.302 0.036 331.693);
  --chart-5: oklch(0.617 0.218 334.547);
}