Snoopy is a shadcn/ui theme built around a deep green primary color (#1c4a2a) with muted green accents (#aacbb4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1c4a2a) on a green-tinted background (#050b06).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b06black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #050b06black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050b06black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #1c4a2adarkslategray | #1c4a2adarkslategray |
| Primary foreground | #b5e3c3powderblue | #b5e3c3powderblue |
| Secondary | #c4d4c9lightgrey | #171717black |
| Secondary foreground | #2b3b30darkslategray | #afb1b0darkgray |
| Muted | #e4e7e5gainsboro | #181b19black |
| Muted foreground | #4e5650darkslategray | #a9b1acdarkgray |
| Accent | #aacbb4silver | #2d342fdarkslategray |
| Accent foreground | #19291eblack | #c5cec8silver |
| Destructive | #a01a0efirebrick | #ee493atomato |
| Destructive foreground | #fde5e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c4a2adarkslategray | #1c4a2adarkslategray |
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 | 7.11:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.72: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 0 0);
--muted: oklch(0.925 0.005 155.764);
--muted-foreground: oklch(0.443 0.014 155.26);
--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.369 0.076 150.803);
--primary-foreground: oklch(0.875 0.066 154.33);
--secondary: oklch(0.855 0.024 155.335);
--secondary-foreground: oklch(0.335 0.029 154.073);
--accent: oklch(0.81 0.048 154.689);
--accent-foreground: oklch(0.263 0.03 153.456);
--destructive: oklch(0.455 0.17 30.049);
--destructive-foreground: oklch(0.94 0.026 23.87);
--ring: oklch(0.369 0.076 150.803);
--chart-1: oklch(0.369 0.076 150.803);
--chart-2: oklch(0.855 0.024 155.335);
--chart-3: oklch(0.81 0.048 154.689);
--chart-4: oklch(0.877 0.02 155.431);
--chart-5: oklch(0.373 0.08 150.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.015 155.517);
--foreground: oklch(0.993 0.001 155.849);
--muted: oklch(0.219 0.007 155.225);
--muted-foreground: oklch(0.754 0.012 155.559);
--popover: oklch(0.138 0.015 155.517);
--popover-foreground: oklch(0.993 0.001 155.849);
--card: oklch(0.138 0.015 155.517);
--card-foreground: oklch(0.993 0.001 155.849);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.369 0.076 150.803);
--primary-foreground: oklch(0.875 0.066 154.33);
--secondary: oklch(0.205 0.001 155.78);
--secondary-foreground: oklch(0.758 0.002 155.809);
--accent: oklch(0.317 0.014 154.983);
--accent-foreground: oklch(0.842 0.012 155.585);
--destructive: oklch(0.638 0.204 29.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.369 0.076 150.803);
--chart-1: oklch(0.369 0.076 150.803);
--chart-2: oklch(0.205 0.001 155.78);
--chart-3: oklch(0.317 0.014 154.983);
--chart-4: oklch(0.238 0.001 155.771);
--chart-5: oklch(0.373 0.08 150.496);
}