Scrawny for shadcn/ui

Scrawny is a shadcn/ui theme built around a muted purple primary color (#927c8c) with muted green accents (#7c9282). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted purple primary (#927c8c) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#070306black
Foreground
#000000black
#f9f6f8whitesmoke
Card
#fcf8fbsnow
#070306black
Card foreground
#000000black
#f9f6f8whitesmoke
Popover
#fcf8fbsnow
#070306black
Popover foreground
#000000black
#f9f6f8whitesmoke
Primary
#927c8cgray
#927c8cgray
Primary foreground
#000000black
#000000black
Secondary
#7c9282gray
#7c9282gray
Secondary foreground
#000000black
#000000black
Muted
#e8f2ebhoneydew
#0d1710black
Muted foreground
#3c443edarkslategray
#bbc3bdsilver
Accent
#7c9282gray
#7c9282gray
Accent foreground
#000000black
#000000black
Destructive
#a32705firebrick
#f85325tomato
Destructive foreground
#fee4dcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#927c8cgray
#927c8cgray

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button5.50:1AA
Secondary button6.29:1AA
Muted text8.78:1AAA
Accent6.29:1AA
Destructive6.06:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button5.50:1AA
Secondary button6.29:1AA
Muted text10.17:1AAA
Accent6.29:1AA
Destructive3.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 334.616);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.014 154.259);
  --muted-foreground: oklch(0.376 0.014 153.862);
  --popover: oklch(0.983 0.005 334.616);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.005 334.616);
  --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.613 0.035 335.491);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.034 153.548);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.638 0.034 153.548);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.472 0.165 34.287);
  --destructive-foreground: oklch(0.937 0.031 35.945);
  --ring: oklch(0.613 0.035 335.491);
  --chart-1: oklch(0.613 0.035 335.491);
  --chart-2: oklch(0.638 0.034 153.548);
  --chart-3: oklch(0.638 0.034 153.548);
  --chart-4: oklch(0.662 0.032 153.656);
  --chart-5: oklch(0.609 0.047 335.808);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.015 334.978);
  --foreground: oklch(0.976 0.004 334.602);
  --muted: oklch(0.191 0.021 152.401);
  --muted-foreground: oklch(0.81 0.011 154.276);
  --popover: oklch(0.11 0.015 334.978);
  --popover-foreground: oklch(0.976 0.004 334.602);
  --card: oklch(0.11 0.015 334.978);
  --card-foreground: oklch(0.976 0.004 334.602);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.613 0.035 335.491);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.034 153.548);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.638 0.034 153.548);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.664 0.209 35.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.613 0.035 335.491);
  --chart-1: oklch(0.613 0.035 335.491);
  --chart-2: oklch(0.638 0.034 153.548);
  --chart-3: oklch(0.638 0.034 153.548);
  --chart-4: oklch(0.662 0.032 153.656);
  --chart-5: oklch(0.609 0.047 335.808);
}