Snarling is a shadcn/ui theme built around a blue primary color (#2b59c5) with green accents (#59c52b). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#2b59c5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030711black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030711black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030711black | #ffffffwhite |
| Primary | #2b59c5royalblue | #2b59c5royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c52b59crimson | #c52b59crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ede8ealinen | #171213black |
| Muted foreground | #664d54dimgray | #b299a1darkgray |
| Accent | #59c52blimegreen | #59c52blimegreen |
| Accent foreground | #0d1d06black | #0d1d06black |
| Destructive | #6b2206maroon | #f45f25tomato |
| Destructive foreground | #fabfa8lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b59c5royalblue | #2b59c5royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 5.44:1 | AA |
| Muted text | 6.29:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 5.44:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Snarling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.025 259.443);
--muted: oklch(0.935 0.006 356.846);
--muted-foreground: oklch(0.448 0.035 358.843);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.025 259.443);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.025 259.443);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.497 0.176 263.709);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.189 9.011);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.73 0.209 138.441);
--accent-foreground: oklch(0.211 0.047 136.995);
--destructive: oklch(0.361 0.11 39.016);
--destructive-foreground: oklch(0.853 0.076 42.566);
--ring: oklch(0.497 0.176 263.709);
--chart-1: oklch(0.497 0.176 263.709);
--chart-2: oklch(0.547 0.189 9.011);
--chart-3: oklch(0.73 0.209 138.441);
--chart-4: oklch(0.572 0.199 9.108);
--chart-5: oklch(0.496 0.183 263.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.009 358.034);
--muted-foreground: oklch(0.708 0.031 357.897);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.497 0.176 263.709);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.547 0.189 9.011);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.73 0.209 138.441);
--accent-foreground: oklch(0.211 0.047 136.995);
--destructive: oklch(0.671 0.194 39.531);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.497 0.176 263.709);
--chart-1: oklch(0.497 0.176 263.709);
--chart-2: oklch(0.547 0.189 9.011);
--chart-3: oklch(0.73 0.209 138.441);
--chart-4: oklch(0.572 0.199 9.108);
--chart-5: oklch(0.496 0.183 263.576);
}