Stiff for shadcn/ui

Stiff is a shadcn/ui theme built around a vivid green primary color (#90f183) with vivid red accents (#f18390). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#90f183) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#ffffffwhite
#030802black
Foreground
#010401black
#f9fbf8mintcream
Card
#ffffffwhite
#030802black
Card foreground
#010401black
#f9fbf8mintcream
Popover
#ffffffwhite
#030802black
Popover foreground
#010401black
#f9fbf8mintcream
Primary
#90f183lightgreen
#90f183lightgreen
Primary foreground
#0d3c07darkgreen
#0d3c07darkgreen
Secondary
#8390f1cornflowerblue
#8390f1cornflowerblue
Secondary foreground
#070d3cmidnightblue
#070d3cmidnightblue
Muted
#eaebf6lavender
#090b15black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#f18390lightcoral
#f18390lightcoral
Accent foreground
#3c070dblack
#3c070dblack
Destructive
#e00700red
#ff0800red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90f183lightgreen
#90f183lightgreen

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button9.07:1AAA
Secondary button6.38:1AA
Muted text5.21:1AA
Accent6.83:1AA
Destructive4.98:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button9.07:1AAA
Secondary button6.38:1AA
Muted text7.33:1AAA
Accent6.83:1AA
Destructive3.97: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.099 0.021 140.074);
  --muted: oklch(0.942 0.015 280.085);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.021 140.074);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.021 140.074);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.873 0.173 141.476);
  --primary-foreground: oklch(0.312 0.095 141.432);
  --secondary: oklch(0.685 0.143 276.242);
  --secondary-foreground: oklch(0.194 0.089 269.262);
  --accent: oklch(0.735 0.135 13.553);
  --accent-foreground: oklch(0.234 0.081 20.024);
  --destructive: oklch(0.572 0.232 29.538);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.173 141.476);
  --chart-1: oklch(0.873 0.173 141.476);
  --chart-2: oklch(0.685 0.143 276.242);
  --chart-3: oklch(0.735 0.135 13.553);
  --chart-4: oklch(0.72 0.126 277.005);
  --chart-5: oklch(0.877 0.178 141.464);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.021 140.51);
  --foreground: oklch(0.987 0.005 142.095);
  --muted: oklch(0.152 0.023 277.415);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.123 0.021 140.51);
  --popover-foreground: oklch(0.987 0.005 142.095);
  --card: oklch(0.123 0.021 140.51);
  --card-foreground: oklch(0.987 0.005 142.095);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.873 0.173 141.476);
  --primary-foreground: oklch(0.312 0.095 141.432);
  --secondary: oklch(0.685 0.143 276.242);
  --secondary-foreground: oklch(0.194 0.089 269.262);
  --accent: oklch(0.735 0.135 13.553);
  --accent-foreground: oklch(0.234 0.081 20.024);
  --destructive: oklch(0.629 0.256 29.493);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.173 141.476);
  --chart-1: oklch(0.873 0.173 141.476);
  --chart-2: oklch(0.685 0.143 276.242);
  --chart-3: oklch(0.735 0.135 13.553);
  --chart-4: oklch(0.72 0.126 277.005);
  --chart-5: oklch(0.877 0.178 141.464);
}