Stiff for shadcn/ui

Stiff is a shadcn/ui theme built around a deep teal primary color (#082625) with muted light teal accents (#cad8d8). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the deep teal primary (#082625) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f7fdfcmintcream
#050a0ablack
Foreground
#010908black
#f6f9f9whitesmoke
Card
#f7fdfcmintcream
#050a0ablack
Card foreground
#010908black
#f6f9f9whitesmoke
Popover
#f7fdfcmintcream
#050a0ablack
Popover foreground
#010908black
#f6f9f9whitesmoke
Primary
#082625black
#082625black
Primary foreground
#2dcdc8mediumturquoise
#2dcdc8mediumturquoise
Secondary
#dbe1e1gainsboro
#242d2ddarkslategray
Secondary foreground
#3e4c4bdarkslategray
#bbc9c8silver
Muted
#d7e0e0gainsboro
#1f2828darkslategray
Muted foreground
#435151darkslategray
#aebcbcsilver
Accent
#cad8d8lightgrey
#2f4241darkslategray
Accent foreground
#304140darkslategray
#c9d9d8lightgrey
Destructive
#61290asaddlebrown
#eb7d42coral
Destructive foreground
#f6c3a7navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#082625black
#082625black

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button8.15:1AAA
Secondary button6.78:1AA
Muted text6.15:1AA
Accent7.32:1AAA
Destructive7.28:1AAA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button8.15:1AAA
Secondary button8.23:1AAA
Muted text7.67:1AAA
Accent7.32:1AAA
Destructive7.55:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 194.68);
  --foreground: oklch(0.128 0.017 193.245);
  --muted: oklch(0.899 0.01 194.583);
  --muted-foreground: oklch(0.423 0.019 193.98);
  --popover: oklch(0.989 0.006 194.68);
  --popover-foreground: oklch(0.128 0.017 193.245);
  --card: oklch(0.989 0.006 194.68);
  --card-foreground: oklch(0.128 0.017 193.245);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.245 0.035 192.055);
  --primary-foreground: oklch(0.77 0.124 191.379);
  --secondary: oklch(0.905 0.007 194.643);
  --secondary-foreground: oklch(0.403 0.018 193.989);
  --accent: oklch(0.872 0.015 194.473);
  --accent-foreground: oklch(0.359 0.022 193.682);
  --destructive: oklch(0.354 0.091 44.942);
  --destructive-foreground: oklch(0.855 0.069 49.705);
  --ring: oklch(0.245 0.035 192.055);
  --chart-1: oklch(0.245 0.035 192.055);
  --chart-2: oklch(0.905 0.007 194.643);
  --chart-3: oklch(0.872 0.015 194.473);
  --chart-4: oklch(0.927 0.005 194.68);
  --chart-5: oklch(0.247 0.036 191.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.01 193.935);
  --foreground: oklch(0.98 0.004 194.716);
  --muted: oklch(0.269 0.013 193.9);
  --muted-foreground: oklch(0.785 0.016 194.404);
  --popover: oklch(0.139 0.01 193.935);
  --popover-foreground: oklch(0.98 0.004 194.716);
  --card: oklch(0.139 0.01 193.935);
  --card-foreground: oklch(0.98 0.004 194.716);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.245 0.035 192.055);
  --primary-foreground: oklch(0.77 0.124 191.379);
  --secondary: oklch(0.29 0.012 193.999);
  --secondary-foreground: oklch(0.824 0.015 194.458);
  --accent: oklch(0.361 0.024 193.557);
  --accent-foreground: oklch(0.873 0.017 194.432);
  --destructive: oklch(0.704 0.154 46.887);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.245 0.035 192.055);
  --chart-1: oklch(0.245 0.035 192.055);
  --chart-2: oklch(0.29 0.012 193.999);
  --chart-3: oklch(0.361 0.024 193.557);
  --chart-4: oklch(0.322 0.014 193.969);
  --chart-5: oklch(0.247 0.036 191.977);
}