Scrawny for shadcn/ui

Scrawny is a shadcn/ui theme built around a muted green primary color (#6fa583) with muted teal accents (#6fa59d). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#6fa583) on a green-tinted background (#070d09).

Color palette

TokenLightDark
Background
#fbfefcwhite
#070d09black
Foreground
#020804black
#ffffffwhite
Card
#f7fdf9mintcream
#09110cblack
Card foreground
#010402black
#ffffffwhite
Popover
#f7fdf9mintcream
#09110cblack
Popover foreground
#010402black
#ffffffwhite
Primary
#6fa583cadetblue
#6fa583cadetblue
Primary foreground
#000000black
#000000black
Secondary
#76a56fgray
#76a56fgray
Secondary foreground
#000000black
#000000black
Muted
#edf4ecwhitesmoke
#0c130bblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#6fa59dcadetblue
#6fa59dcadetblue
Accent foreground
#000000black
#000000black
Destructive
#7f1e01maroon
#e93701orangered
Destructive foreground
#ffc5b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6fa583cadetblue
#6fa583cadetblue

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.93:1AAA
Primary button7.35:1AAA
Secondary button7.35:1AAA
Muted text5.77:1AA
Accent7.52:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.19:1AAA
Primary button7.35:1AAA
Secondary button7.35:1AAA
Muted text7.27:1AAA
Accent7.52:1AAA
Destructive4.17: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.994 0.003 158.644);
  --foreground: oklch(0.123 0.018 158.491);
  --muted: oklch(0.959 0.013 141.553);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.988 0.007 158.566);
  --popover-foreground: oklch(0.098 0.014 158.491);
  --card: oklch(0.988 0.007 158.566);
  --card-foreground: oklch(0.098 0.014 158.491);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.673 0.077 155.938);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.673 0.093 141.22);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.681 0.058 185.467);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.394 0.136 35.465);
  --destructive-foreground: oklch(0.869 0.071 37.598);
  --ring: oklch(0.673 0.077 155.938);
  --chart-1: oklch(0.673 0.077 155.938);
  --chart-2: oklch(0.673 0.093 141.22);
  --chart-3: oklch(0.681 0.058 185.467);
  --chart-4: oklch(0.695 0.086 141.252);
  --chart-5: oklch(0.68 0.086 155.576);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.013 157.78);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.02 141.283);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.166 0.016 156.593);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.166 0.016 156.593);
  --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.673 0.077 155.938);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.673 0.093 141.22);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.681 0.058 185.467);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.612 0.219 34.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.673 0.077 155.938);
  --chart-1: oklch(0.673 0.077 155.938);
  --chart-2: oklch(0.673 0.093 141.22);
  --chart-3: oklch(0.681 0.058 185.467);
  --chart-4: oklch(0.695 0.086 141.252);
  --chart-5: oklch(0.68 0.086 155.576);
}