Stiff for shadcn/ui

Stiff is a shadcn/ui theme built around a vivid light purple primary color (#faddfd) with vivid light pink accents (#fdddf0). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light purple primary (#faddfd) on a purple-tinted background (#0b040c).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b040cblack
Foreground
#000000black
#faf5faghostwhite
Card
#fbf8fcghostwhite
#0f0510black
Card foreground
#000000black
#fbf8fcghostwhite
Popover
#fdfcfdwhite
#0b040cblack
Popover foreground
#000000black
#faf5faghostwhite
Primary
#faddfdlavenderblush
#faddfdlavenderblush
Primary foreground
#9108a0darkmagenta
#9108a0darkmagenta
Secondary
#eaddfdlavender
#eaddfdlavender
Secondary foreground
#4508a0indigo
#4508a0indigo
Muted
#d8d6dbgainsboro
#262429darkslategray
Muted foreground
#46424cdarkslategray
#b7b3bdsilver
Accent
#fdddf0mistyrose
#fdddf0mistyrose
Accent foreground
#a00863purple
#a00863purple
Destructive
#742707saddlebrown
#ec500eorangered
Destructive foreground
#fbc8b2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faddfdlavenderblush
#faddfdlavenderblush

Contrast

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

Light mode
Text on background20.48:1AAA
Text on card19.96:1AAA
Primary button6.13:1AA
Secondary button9.06:1AAA
Muted text6.81:1AA
Accent6.19:1AA
Destructive6.87:1AA
Dark mode
Text on background18.84:1AAA
Text on card19.02:1AAA
Primary button6.13:1AA
Secondary button9.06:1AAA
Muted text7.47:1AAA
Accent6.19:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 322.638);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.88 0.007 304.239);
  --muted-foreground: oklch(0.388 0.017 303.701);
  --popover: oklch(0.992 0.003 322.638);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 322.648);
  --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.931 0.053 322.849);
  --primary-foreground: oklch(0.473 0.219 323.039);
  --secondary: oklch(0.918 0.045 303.639);
  --secondary-foreground: oklch(0.368 0.203 289.043);
  --accent: oklch(0.93 0.043 341.259);
  --accent-foreground: oklch(0.466 0.188 352.572);
  --destructive: oklch(0.385 0.115 39.925);
  --destructive-foreground: oklch(0.871 0.065 44.375);
  --ring: oklch(0.931 0.053 322.849);
  --chart-1: oklch(0.931 0.053 322.849);
  --chart-2: oklch(0.918 0.045 303.639);
  --chart-3: oklch(0.93 0.043 341.259);
  --chart-4: oklch(0.953 0.026 303.96);
  --chart-5: oklch(0.931 0.055 322.857);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.027 324.099);
  --foreground: oklch(0.974 0.009 322.664);
  --muted: oklch(0.264 0.009 303.866);
  --muted-foreground: oklch(0.772 0.015 304.072);
  --popover: oklch(0.124 0.027 324.099);
  --popover-foreground: oklch(0.974 0.009 322.664);
  --card: oklch(0.137 0.031 323.754);
  --card-foreground: oklch(0.983 0.006 322.651);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.931 0.053 322.849);
  --primary-foreground: oklch(0.473 0.219 323.039);
  --secondary: oklch(0.918 0.045 303.639);
  --secondary-foreground: oklch(0.368 0.203 289.043);
  --accent: oklch(0.93 0.043 341.259);
  --accent-foreground: oklch(0.466 0.188 352.572);
  --destructive: oklch(0.641 0.202 38.547);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.053 322.849);
  --chart-1: oklch(0.931 0.053 322.849);
  --chart-2: oklch(0.918 0.045 303.639);
  --chart-3: oklch(0.93 0.043 341.259);
  --chart-4: oklch(0.953 0.026 303.96);
  --chart-5: oklch(0.931 0.055 322.857);
}