Snoopy is a shadcn/ui theme built around a vivid green primary color (#58ee53) with muted light green accents (#cbddcb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#58ee53) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010401black |
| Foreground | #071306black | #f8fcf8mintcream |
| Card | #ffffffwhite | #010401black |
| Card foreground | #071306black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #010401black |
| Popover foreground | #071306black | #f8fcf8mintcream |
| Primary | #58ee53limegreen | #58ee53limegreen |
| Primary foreground | #020e01black | #020e01black |
| Secondary | #dde4dcgainsboro | #1d201dblack |
| Secondary foreground | #3f513edarkslategray | #b4bbb4silver |
| Muted | #cce6cblightgrey | #1a3419darkgreen |
| Muted foreground | #404440darkslategray | #bbbfbbsilver |
| Accent | #cbddcblightgrey | #2b362bdarkslategray |
| Accent foreground | #2f472edarkslategray | #c4cfc4silver |
| Destructive | #b33409firebrick | #df410corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #58ee53limegreen | #58ee53limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 12.92:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 7.44:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 12.92:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 7.85:1 | AAA |
| Destructive | 4.30:1 | AA Large |
Paste this into your globals.css to use Snoopy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.171 0.032 143.151);
--muted: oklch(0.899 0.045 144.288);
--muted-foreground: oklch(0.383 0.008 144.477);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.171 0.032 143.151);
--card: oklch(1 0 180);
--card-foreground: oklch(0.171 0.032 143.151);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.233 142.676);
--primary-foreground: oklch(0.145 0.04 142.129);
--secondary: oklch(0.912 0.013 144.523);
--secondary-foreground: oklch(0.413 0.038 144.006);
--accent: oklch(0.879 0.031 144.388);
--accent-foreground: oklch(0.371 0.051 143.685);
--destructive: oklch(0.513 0.17 36.023);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.233 142.676);
--chart-1: oklch(0.839 0.233 142.676);
--chart-2: oklch(0.912 0.013 144.523);
--chart-3: oklch(0.879 0.031 144.388);
--chart-4: oklch(0.934 0.01 144.549);
--chart-5: oklch(0.845 0.239 142.641);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 143.063);
--foreground: oklch(0.987 0.006 144.578);
--muted: oklch(0.295 0.057 143.279);
--muted-foreground: oklch(0.799 0.007 144.562);
--popover: oklch(0.097 0.017 143.063);
--popover-foreground: oklch(0.987 0.006 144.578);
--card: oklch(0.097 0.017 143.063);
--card-foreground: oklch(0.987 0.006 144.578);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.839 0.233 142.676);
--primary-foreground: oklch(0.145 0.04 142.129);
--secondary: oklch(0.24 0.007 144.423);
--secondary-foreground: oklch(0.785 0.013 144.515);
--accent: oklch(0.319 0.023 144.135);
--accent-foreground: oklch(0.843 0.02 144.462);
--destructive: oklch(0.602 0.202 35.742);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.233 142.676);
--chart-1: oklch(0.839 0.233 142.676);
--chart-2: oklch(0.24 0.007 144.423);
--chart-3: oklch(0.319 0.023 144.135);
--chart-4: oklch(0.272 0.009 144.41);
--chart-5: oklch(0.845 0.239 142.641);
}