Squirrel is a shadcn/ui theme built around a near-white primary color (#f0efef) with near-white accents (#f0f0ef). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#f0efef) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #040202black |
| Foreground | #140506black | #ffffffwhite |
| Card | #fcf8f8snow | #040202black |
| Card foreground | #140506black | #ffffffwhite |
| Popover | #fcf8f8snow | #040202black |
| Popover foreground | #140506black | #ffffffwhite |
| Primary | #f0efefwhitesmoke | #f0efefwhitesmoke |
| Primary foreground | #5a5353dimgray | #5a5353dimgray |
| Secondary | #f0eff0whitesmoke | #f0eff0whitesmoke |
| Secondary foreground | #5a5357dimgray | #5a5357dimgray |
| Muted | #f4e7eelinen | #180b12black |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #f0f0efwhitesmoke | #f0f0efwhitesmoke |
| Accent foreground | #5a5653dimgray | #5a5653dimgray |
| Destructive | #b0220cfirebrick | #d72a0ffirebrick |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0efefwhitesmoke | #f0efefwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 4.77:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 6.20:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.52:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 6.36:1 | AA |
| Destructive | 4.99:1 | AA |
Paste this into your globals.css to use Squirrel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 14.873);
--foreground: oklch(0.145 0.028 18.469);
--muted: oklch(0.939 0.017 343.881);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.982 0.004 14.873);
--popover-foreground: oklch(0.145 0.028 18.469);
--card: oklch(0.982 0.004 14.873);
--card-foreground: oklch(0.145 0.028 18.469);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.953 0.001 14.816);
--primary-foreground: oklch(0.45 0.009 15.173);
--secondary: oklch(0.954 0.002 343.486);
--secondary-foreground: oklch(0.451 0.011 344.032);
--accent: oklch(0.954 0.001 64.076);
--accent-foreground: oklch(0.457 0.007 63.892);
--destructive: oklch(0.492 0.18 31.478);
--destructive-foreground: oklch(0.971 0.013 28.002);
--ring: oklch(0.953 0.001 14.816);
--chart-1: oklch(0.953 0.001 14.816);
--chart-2: oklch(0.954 0.002 343.486);
--chart-3: oklch(0.954 0.001 64.076);
--chart-4: oklch(0.977 0.001 343.464);
--chart-5: oklch(0.953 0.002 14.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 16.5);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.025 346.869);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.085 0.01 16.5);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.01 16.5);
--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.953 0.001 14.816);
--primary-foreground: oklch(0.45 0.009 15.173);
--secondary: oklch(0.954 0.002 343.486);
--secondary-foreground: oklch(0.451 0.011 344.032);
--accent: oklch(0.954 0.001 64.076);
--accent-foreground: oklch(0.457 0.007 63.892);
--destructive: oklch(0.568 0.21 31.409);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.001 14.816);
--chart-1: oklch(0.953 0.001 14.816);
--chart-2: oklch(0.954 0.002 343.486);
--chart-3: oklch(0.954 0.001 64.076);
--chart-4: oklch(0.977 0.001 343.464);
--chart-5: oklch(0.953 0.002 14.835);
}