Putrid for shadcn/ui

Putrid is a shadcn/ui theme built around a light violet primary color (#c6b0d8) with light green accents (#c3d8b0). The light mode uses a neutral background (#faf8fc). Dark mode keeps the light violet primary (#c6b0d8) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#050307black
Foreground
#000000black
#faf9fbghostwhite
Card
#f8f5fawhitesmoke
#08050bblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#f8f5fawhitesmoke
#08050bblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#c6b0d8thistle
#c6b0d8thistle
Primary foreground
#2c1d3adarkslategray
#2c1d3adarkslategray
Secondary
#c3d8b0silver
#c3d8b0silver
Secondary foreground
#2a3a1ddarkslategray
#2a3a1ddarkslategray
Muted
#e5efdcbeige
#192310black
Muted foreground
#65715bdimgray
#98a48edarkseagreen
Accent
#c3d8b0silver
#c3d8b0silver
Accent foreground
#2a3a1ddarkslategray
#2a3a1ddarkslategray
Destructive
#6f1806maroon
#de300dorangered
Destructive foreground
#fabaadlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6b0d8thistle
#c6b0d8thistle

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.36:1AAA
Primary button7.90:1AAA
Secondary button8.01:1AAA
Muted text4.35:1AA Large
Accent8.01:1AAA
Destructive7.02:1AAA
Dark mode
Text on background19.54:1AAA
Text on card19.78:1AAA
Primary button7.90:1AAA
Secondary button8.01:1AAA
Muted text6.22:1AA
Accent8.01:1AAA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 309.732);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.028 130.086);
  --muted-foreground: oklch(0.533 0.037 130.507);
  --popover: oklch(0.973 0.008 309.704);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.008 309.704);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.79 0.06 309.031);
  --primary-foreground: oklch(0.264 0.057 307.514);
  --secondary: oklch(0.857 0.058 130.493);
  --secondary-foreground: oklch(0.326 0.053 131.692);
  --accent: oklch(0.857 0.058 130.493);
  --accent-foreground: oklch(0.326 0.053 131.692);
  --destructive: oklch(0.357 0.124 32.969);
  --destructive-foreground: oklch(0.844 0.077 31.506);
  --ring: oklch(0.79 0.06 309.031);
  --chart-1: oklch(0.79 0.06 309.031);
  --chart-2: oklch(0.857 0.058 130.493);
  --chart-3: oklch(0.857 0.058 130.493);
  --chart-4: oklch(0.876 0.051 130.381);
  --chart-5: oklch(0.787 0.065 308.961);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.015 310.862);
  --foreground: oklch(0.983 0.004 309.745);
  --muted: oklch(0.241 0.038 131.604);
  --muted-foreground: oklch(0.704 0.035 130.289);
  --popover: oklch(0.123 0.017 310.84);
  --popover-foreground: oklch(0.991 0.002 309.765);
  --card: oklch(0.123 0.017 310.84);
  --card-foreground: oklch(0.991 0.002 309.765);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.79 0.06 309.031);
  --primary-foreground: oklch(0.264 0.057 307.514);
  --secondary: oklch(0.857 0.058 130.493);
  --secondary-foreground: oklch(0.326 0.053 131.692);
  --accent: oklch(0.857 0.058 130.493);
  --accent-foreground: oklch(0.326 0.053 131.692);
  --destructive: oklch(0.585 0.213 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.79 0.06 309.031);
  --chart-1: oklch(0.79 0.06 309.031);
  --chart-2: oklch(0.857 0.058 130.493);
  --chart-3: oklch(0.857 0.058 130.493);
  --chart-4: oklch(0.876 0.051 130.381);
  --chart-5: oklch(0.787 0.065 308.961);
}