Scratchy is a shadcn/ui theme built around a muted green primary color (#9da790) with muted pink accents (#a7909d). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#9da790) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #060802black | #fdfdfcwhite |
| Card | #ffffffwhite | #050703black |
| Card foreground | #060802black | #fdfdfcwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #060802black | #fdfdfcwhite |
| Primary | #9da790darkseagreen | #9da790darkseagreen |
| Primary foreground | #030302black | #030302black |
| Secondary | #909da7darkgray | #909da7darkgray |
| Secondary foreground | #020303black | #020303black |
| Muted | #e4ebf1lavender | #0e151bblack |
| Muted foreground | #52575bdimgray | #a4a9addarkgray |
| Accent | #a7909drosybrown | #a7909drosybrown |
| Accent foreground | #030203black | #030203black |
| Destructive | #86200edarkred | #eb573dtomato |
| Destructive foreground | #fad3ccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9da790darkseagreen | #9da790darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 5.95:1 | AA |
Paste this into your globals.css to use Scratchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.129 0.022 124.779);
--muted: oklch(0.938 0.011 240.446);
--muted-foreground: oklch(0.455 0.009 240.551);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.129 0.022 124.779);
--card: oklch(1 0 180);
--card-foreground: oklch(0.129 0.022 124.779);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.715 0.036 126.42);
--primary-foreground: oklch(0.094 0.003 125.532);
--secondary: oklch(0.689 0.022 240.725);
--secondary-foreground: oklch(0.092 0.002 238.636);
--accent: oklch(0.678 0.034 342.974);
--accent-foreground: oklch(0.09 0.003 341.812);
--destructive: oklch(0.41 0.14 32.311);
--destructive-foreground: oklch(0.898 0.045 29.724);
--ring: oklch(0.715 0.036 126.42);
--chart-1: oklch(0.715 0.036 126.42);
--chart-2: oklch(0.689 0.022 240.725);
--chart-3: oklch(0.678 0.034 342.974);
--chart-4: oklch(0.714 0.02 240.672);
--chart-5: oklch(0.721 0.044 126.584);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 125.219);
--foreground: oklch(0.993 0.001 125.759);
--muted: oklch(0.192 0.016 241.575);
--muted-foreground: oklch(0.732 0.008 240.43);
--popover: oklch(0.123 0.011 125.219);
--popover-foreground: oklch(0.993 0.001 125.759);
--card: oklch(0.123 0.011 125.219);
--card-foreground: oklch(0.993 0.001 125.759);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.715 0.036 126.42);
--primary-foreground: oklch(0.094 0.003 125.532);
--secondary: oklch(0.689 0.022 240.725);
--secondary-foreground: oklch(0.092 0.002 238.636);
--accent: oklch(0.678 0.034 342.974);
--accent-foreground: oklch(0.09 0.003 341.812);
--destructive: oklch(0.649 0.187 32.253);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.715 0.036 126.42);
--chart-1: oklch(0.715 0.036 126.42);
--chart-2: oklch(0.689 0.022 240.725);
--chart-3: oklch(0.678 0.034 342.974);
--chart-4: oklch(0.714 0.02 240.672);
--chart-5: oklch(0.721 0.044 126.584);
}