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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.35:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.52:1 | AAA |
| Destructive | 4.17:1 | AA Large |
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);
}