Squeaky is a shadcn/ui theme built around a deep green primary color (#536228) with deep purple accents (#622853). The light mode uses a neutral background (#fdfefb). Dark mode keeps the deep green primary (#536228) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #0a0b04black | #ffffffwhite |
| Card | #fbfcf7snow | #030303black |
| Card foreground | #060803black | #ffffffwhite |
| Popover | #fbfcf7snow | #030303black |
| Popover foreground | #060803black | #ffffffwhite |
| Primary | #536228darkolivegreen | #536228darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #285362darkslategray | #285362darkslategray |
| Secondary foreground | #d0e5ecgainsboro | #d0e5ecgainsboro |
| Muted | #eaf3f6whitesmoke | #091215black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #622853darkslategray | #622853darkslategray |
| Accent foreground | #ecd0e5gainsboro | #ecd0e5gainsboro |
| Destructive | #ad440bsaddlebrown | #f37e3fcoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #536228darkolivegreen | #536228darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.40:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 5.85:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 6.40:1 | AA |
| Muted text | 8.22:1 | AAA |
| Accent | 7.56:1 | AAA |
| Destructive | 7.86:1 | AAA |
Paste this into your globals.css to use Squeaky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 117.883);
--foreground: oklch(0.146 0.019 118.226);
--muted: oklch(0.957 0.011 219.591);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.99 0.007 117.942);
--popover-foreground: oklch(0.128 0.017 118.003);
--card: oklch(0.99 0.007 117.942);
--card-foreground: oklch(0.128 0.017 118.003);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.469 0.084 121.418);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.419 0.054 222.195);
--secondary-foreground: oklch(0.908 0.024 219.737);
--accent: oklch(0.375 0.102 338.122);
--accent-foreground: oklch(0.887 0.041 334.644);
--destructive: oklch(0.521 0.15 42.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.469 0.084 121.418);
--chart-1: oklch(0.469 0.084 121.418);
--chart-2: oklch(0.419 0.054 222.195);
--chart-3: oklch(0.375 0.102 338.122);
--chart-4: oklch(0.45 0.058 222.27);
--chart-5: oklch(0.475 0.089 121.636);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.015 220.68);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.469 0.084 121.418);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.419 0.054 222.195);
--secondary-foreground: oklch(0.908 0.024 219.737);
--accent: oklch(0.375 0.102 338.122);
--accent-foreground: oklch(0.887 0.041 334.644);
--destructive: oklch(0.715 0.162 46.582);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.469 0.084 121.418);
--chart-1: oklch(0.469 0.084 121.418);
--chart-2: oklch(0.419 0.054 222.195);
--chart-3: oklch(0.375 0.102 338.122);
--chart-4: oklch(0.45 0.058 222.27);
--chart-5: oklch(0.475 0.089 121.636);
}