Scratchy is a shadcn/ui theme built around a light green primary color (#b2e0b3) with muted light green accents (#c9d9c9). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the light green primary (#b2e0b3) on a green-tinted background (#040b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #040b04black |
| Foreground | #030c04black | #f6f9f6whitesmoke |
| Card | #f8fcf8mintcream | #040b04black |
| Card foreground | #030c04black | #f6f9f6whitesmoke |
| Popover | #f8fcf8mintcream | #040b04black |
| Popover foreground | #030c04black | #f6f9f6whitesmoke |
| Primary | #b2e0b3silver | #b2e0b3silver |
| Primary foreground | #1c451cdarkgreen | #1c451cdarkgreen |
| Secondary | #e3e8e3gainsboro | #121712black |
| Secondary foreground | #465346darkslategray | #a2b9a2darkgray |
| Muted | #eef7eehoneydew | #081108black |
| Muted foreground | #536553dimgray | #9aac9adarkgray |
| Accent | #c9d9c9lightgrey | #1f2e1fdarkslategray |
| Accent foreground | #2e422edarkslategray | #b3cbb4silver |
| Destructive | #b22401firebrick | #fe582ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b2e0b3silver | #b2e0b3silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.63:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Scratchy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 145.996);
--foreground: oklch(0.14 0.027 144.484);
--muted: oklch(0.966 0.016 145.92);
--muted-foreground: oklch(0.486 0.036 145.425);
--popover: oklch(0.987 0.007 145.996);
--popover-foreground: oklch(0.14 0.027 144.484);
--card: oklch(0.987 0.007 145.996);
--card-foreground: oklch(0.14 0.027 144.484);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.864 0.078 145.281);
--primary-foreground: oklch(0.35 0.082 143.864);
--secondary: oklch(0.926 0.008 145.985);
--secondary-foreground: oklch(0.427 0.028 145.502);
--accent: oklch(0.869 0.028 145.785);
--accent-foreground: oklch(0.356 0.042 145.021);
--destructive: oklch(0.496 0.181 33.254);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.078 145.281);
--chart-1: oklch(0.864 0.078 145.281);
--chart-2: oklch(0.926 0.008 145.985);
--chart-3: oklch(0.869 0.028 145.785);
--chart-4: oklch(0.948 0.005 146.007);
--chart-5: oklch(0.866 0.084 145.229);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.021 144.844);
--foreground: oklch(0.979 0.005 146.013);
--muted: oklch(0.167 0.024 144.83);
--muted-foreground: oklch(0.726 0.033 145.678);
--popover: oklch(0.138 0.021 144.844);
--popover-foreground: oklch(0.979 0.005 146.013);
--card: oklch(0.138 0.021 144.844);
--card-foreground: oklch(0.979 0.005 146.013);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.078 145.281);
--primary-foreground: oklch(0.35 0.082 143.864);
--secondary: oklch(0.198 0.014 145.452);
--secondary-foreground: oklch(0.761 0.04 145.611);
--accent: oklch(0.281 0.032 145.055);
--accent-foreground: oklch(0.818 0.042 145.625);
--destructive: oklch(0.68 0.209 34.873);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.864 0.078 145.281);
--chart-1: oklch(0.864 0.078 145.281);
--chart-2: oklch(0.198 0.014 145.452);
--chart-3: oklch(0.281 0.032 145.055);
--chart-4: oklch(0.233 0.019 145.378);
--chart-5: oklch(0.866 0.084 145.229);
}