Snarling is a shadcn/ui theme built around a light purple primary color (#f1c0e4) with muted light purple accents (#ddcfd9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#f1c0e4) on a purple-tinted background (#0d070c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0d070cblack |
| Foreground | #0f050dblack | #fdfcfdwhite |
| Card | #fdf7fbsnow | #11090fblack |
| Card foreground | #0c0409black | #ffffffwhite |
| Popover | #fefbfdsnow | #0d070cblack |
| Popover foreground | #0f050dblack | #fdfcfdwhite |
| Primary | #f1c0e4thistle | #f1c0e4thistle |
| Primary foreground | #691753purple | #691753purple |
| Secondary | #ddcfd9lightgrey | #1a191ablack |
| Secondary foreground | #483342darkslategray | #b5b0b4darkgray |
| Muted | #e7cbdfthistle | #34182ddarkslategray |
| Muted foreground | #5b575adimgray | #a8a4a7darkgray |
| Accent | #ddcfd9lightgrey | #1a191ablack |
| Accent foreground | #483342darkslategray | #b5b0b4darkgray |
| Destructive | #be2413firebrick | #eb4533tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1c0e4thistle | #f1c0e4thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 4.73:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.26:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.22:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Snarling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 334.601);
--foreground: oklch(0.138 0.027 336.568);
--muted: oklch(0.871 0.041 335.324);
--muted-foreground: oklch(0.463 0.006 334.76);
--popover: oklch(0.991 0.004 334.601);
--popover-foreground: oklch(0.138 0.027 336.568);
--card: oklch(0.982 0.008 334.675);
--card-foreground: oklch(0.124 0.023 335.349);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.073 335.934);
--primary-foreground: oklch(0.365 0.132 340.893);
--secondary: oklch(0.87 0.021 334.935);
--secondary-foreground: oklch(0.35 0.039 336.35);
--accent: oklch(0.87 0.021 334.935);
--accent-foreground: oklch(0.35 0.039 336.35);
--destructive: oklch(0.52 0.192 30.518);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.073 335.934);
--chart-1: oklch(0.862 0.073 335.934);
--chart-2: oklch(0.87 0.021 334.935);
--chart-3: oklch(0.87 0.021 334.935);
--chart-4: oklch(0.894 0.017 334.848);
--chart-5: oklch(0.862 0.076 335.998);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.016 335.821);
--foreground: oklch(0.992 0.002 334.557);
--muted: oklch(0.258 0.054 337.907);
--muted-foreground: oklch(0.722 0.006 334.661);
--popover: oklch(0.141 0.016 335.821);
--popover-foreground: oklch(0.992 0.002 334.557);
--card: oklch(0.153 0.018 336.418);
--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.862 0.073 335.934);
--primary-foreground: oklch(0.365 0.132 340.893);
--secondary: oklch(0.214 0.003 334.787);
--secondary-foreground: oklch(0.763 0.007 334.688);
--accent: oklch(0.214 0.003 334.787);
--accent-foreground: oklch(0.763 0.007 334.688);
--destructive: oklch(0.629 0.205 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.073 335.934);
--chart-1: oklch(0.862 0.073 335.934);
--chart-2: oklch(0.214 0.003 334.787);
--chart-3: oklch(0.214 0.003 334.787);
--chart-4: oklch(0.247 0.004 334.811);
--chart-5: oklch(0.862 0.076 335.998);
}