Stiff for shadcn/ui

Stiff is a shadcn/ui theme built around a muted indigo primary color (#7679a2) with muted violet accents (#8976a2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#7679a2) on a neutral background (#020308).

Color palette

TokenLightDark
Background
#ffffffwhite
#020308black
Foreground
#050615black
#ffffffwhite
Card
#ffffffwhite
#020308black
Card foreground
#050615black
#ffffffwhite
Popover
#ffffffwhite
#020308black
Popover foreground
#050615black
#ffffffwhite
Primary
#7679a2lightslategray
#7679a2lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#768fa2lightslategray
#768fa2lightslategray
Secondary foreground
#000000black
#000000black
Muted
#e5e8eblavender
#14171ablack
Muted foreground
#41484edarkslategray
#b1b8besilver
Accent
#8976a2lightslategray
#8976a2lightslategray
Accent foreground
#000000black
#000000black
Destructive
#882501saddlebrown
#e84002orangered
Destructive foreground
#fecfbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7679a2lightslategray
#7679a2lightslategray

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button4.15:1AA Large
Secondary button6.23:1AA
Muted text7.57:1AAA
Accent5.20:1AA
Destructive6.40:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button4.15:1AA Large
Secondary button6.23:1AA
Muted text8.94:1AAA
Accent5.20:1AA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.035 275.999);
  --muted: oklch(0.931 0.005 240.358);
  --muted-foreground: oklch(0.398 0.013 240.757);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.035 275.999);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.035 275.999);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.59 0.062 281.13);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.638 0.04 241.209);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.601 0.068 304.208);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.42 0.14 36.884);
  --destructive-foreground: oklch(0.89 0.059 40.946);
  --ring: oklch(0.59 0.062 281.13);
  --chart-1: oklch(0.59 0.062 281.13);
  --chart-2: oklch(0.638 0.04 241.209);
  --chart-3: oklch(0.601 0.068 304.208);
  --chart-4: oklch(0.663 0.037 241.098);
  --chart-5: oklch(0.583 0.072 280.741);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.019 277.65);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.204 0.007 240.793);
  --muted-foreground: oklch(0.78 0.011 240.485);
  --popover: oklch(0.098 0.019 277.65);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.098 0.019 277.65);
  --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.59 0.062 281.13);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.638 0.04 241.209);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.601 0.068 304.208);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.617 0.212 35.587);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.59 0.062 281.13);
  --chart-1: oklch(0.59 0.062 281.13);
  --chart-2: oklch(0.638 0.04 241.209);
  --chart-3: oklch(0.601 0.068 304.208);
  --chart-4: oklch(0.663 0.037 241.098);
  --chart-5: oklch(0.583 0.072 280.741);
}