Squirrel is a shadcn/ui theme built around a deep green primary color (#295b15) with deep green accents (#155b24). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#295b15) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #080e06black |
| Foreground | #081703black | #f7f8f7whitesmoke |
| Card | #fcfefbwhite | #080e06black |
| Card foreground | #081703black | #f7f8f7whitesmoke |
| Popover | #fcfefbwhite | #080e06black |
| Popover foreground | #081703black | #f7f8f7whitesmoke |
| Primary | #295b15darkgreen | #295b15darkgreen |
| Primary foreground | #c5eeb5lightgrey | #c5eeb5lightgrey |
| Secondary | #4c5b15darkolivegreen | #4c5b15darkolivegreen |
| Secondary foreground | #e1eeb5palegoldenrod | #e1eeb5palegoldenrod |
| Muted | #e1e3d9gainsboro | #24261cblack |
| Muted foreground | #4f5341darkolivegreen | #babeacsilver |
| Accent | #155b24darkgreen | #155b24darkgreen |
| Accent foreground | #b5eec1powderblue | #b5eec1powderblue |
| Destructive | #e20b03red | #f10c04red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #295b15darkgreen | #295b15darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.27:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.08:1 | AA |
| Muted text | 6.10:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 4.90:1 | AA |
| Text on background | 18.30:1 | AAA |
| Text on card | 18.30:1 | AAA |
| Primary button | 6.26:1 | AA |
| Secondary button | 6.08:1 | AA |
| Muted text | 8.06:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Squirrel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 136.625);
--foreground: oklch(0.185 0.046 136.064);
--muted: oklch(0.911 0.014 116.6);
--muted-foreground: oklch(0.433 0.029 117.538);
--popover: oklch(0.995 0.005 136.625);
--popover-foreground: oklch(0.185 0.046 136.064);
--card: oklch(0.995 0.005 136.625);
--card-foreground: oklch(0.185 0.046 136.064);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.42 0.113 138.379);
--primary-foreground: oklch(0.904 0.087 136.931);
--secondary: oklch(0.443 0.094 121.091);
--secondary-foreground: oklch(0.925 0.075 117.826);
--accent: oklch(0.415 0.11 146.888);
--accent-foreground: oklch(0.897 0.084 151.036);
--destructive: oklch(0.576 0.233 29.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.113 138.379);
--chart-1: oklch(0.42 0.113 138.379);
--chart-2: oklch(0.443 0.094 121.091);
--chart-3: oklch(0.415 0.11 146.888);
--chart-4: oklch(0.484 0.104 121.187);
--chart-5: oklch(0.425 0.117 138.503);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.02 135.978);
--foreground: oklch(0.978 0.003 136.617);
--muted: oklch(0.263 0.018 117.587);
--muted-foreground: oklch(0.793 0.025 116.9);
--popover: oklch(0.155 0.02 135.978);
--popover-foreground: oklch(0.978 0.003 136.617);
--card: oklch(0.155 0.02 135.978);
--card-foreground: oklch(0.978 0.003 136.617);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.42 0.113 138.379);
--primary-foreground: oklch(0.904 0.087 136.931);
--secondary: oklch(0.443 0.094 121.091);
--secondary-foreground: oklch(0.925 0.075 117.826);
--accent: oklch(0.415 0.11 146.888);
--accent-foreground: oklch(0.897 0.084 151.036);
--destructive: oklch(0.604 0.245 29.407);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.113 138.379);
--chart-1: oklch(0.42 0.113 138.379);
--chart-2: oklch(0.443 0.094 121.091);
--chart-3: oklch(0.415 0.11 146.888);
--chart-4: oklch(0.484 0.104 121.187);
--chart-5: oklch(0.425 0.117 138.503);
}