Scarecrow is a shadcn/ui theme built around a vivid green primary color (#7bfb6a) with vivid purple accents (#ea6afb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#7bfb6a) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020401black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #020401black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #020401black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #7bfb6alightgreen | #7bfb6alightgreen |
| Primary foreground | #073201black | #073201black |
| Secondary | #ea6afbviolet | #ea6afbviolet |
| Secondary foreground | #2c0132black | #2c0132black |
| Muted | #eee7eflavender | #181018black |
| Muted foreground | #524554darkslategray | #b8abbadarkgray |
| Accent | #ea6afbviolet | #ea6afbviolet |
| Accent foreground | #2c0132black | #2c0132black |
| Destructive | #911808darkred | #df240corangered |
| Destructive foreground | #fcd4cfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7bfb6alightgreen | #7bfb6alightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 10.82:1 | AAA |
| Secondary button | 6.87:1 | AA |
| Muted text | 8.49:1 | AAA |
| Accent | 6.87:1 | AA |
| Destructive | 4.77:1 | AA |
Paste this into your globals.css to use Scarecrow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.934 0.013 322.161);
--muted-foreground: oklch(0.409 0.031 322.359);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.885 0.218 141.402);
--primary-foreground: oklch(0.276 0.089 140.941);
--secondary: oklch(0.733 0.232 322.855);
--secondary-foreground: oklch(0.212 0.097 322.868);
--accent: oklch(0.733 0.232 322.855);
--accent-foreground: oklch(0.212 0.097 322.868);
--destructive: oklch(0.425 0.158 30.995);
--destructive-foreground: oklch(0.903 0.046 26.866);
--ring: oklch(0.885 0.218 141.402);
--chart-1: oklch(0.885 0.218 141.402);
--chart-2: oklch(0.733 0.232 322.855);
--chart-3: oklch(0.733 0.232 322.855);
--chart-4: oklch(0.754 0.212 322.832);
--chart-5: oklch(0.89 0.224 141.4);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.015 140.695);
--foreground: oklch(0.993 0.002 142.107);
--muted: oklch(0.188 0.02 322.452);
--muted-foreground: oklch(0.757 0.026 322.23);
--popover: oklch(0.097 0.015 140.695);
--popover-foreground: oklch(0.993 0.002 142.107);
--card: oklch(0.097 0.015 140.695);
--card-foreground: oklch(0.993 0.002 142.107);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.218 141.402);
--primary-foreground: oklch(0.276 0.089 140.941);
--secondary: oklch(0.733 0.232 322.855);
--secondary-foreground: oklch(0.212 0.097 322.868);
--accent: oklch(0.733 0.232 322.855);
--accent-foreground: oklch(0.212 0.097 322.868);
--destructive: oklch(0.58 0.221 30.834);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.885 0.218 141.402);
--chart-1: oklch(0.885 0.218 141.402);
--chart-2: oklch(0.733 0.232 322.855);
--chart-3: oklch(0.733 0.232 322.855);
--chart-4: oklch(0.754 0.212 322.832);
--chart-5: oklch(0.89 0.224 141.4);
}