Snarling is a shadcn/ui theme built around a vivid cyan primary color (#057594) with vivid green accents (#759405). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#057594) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030607black |
| Foreground | #041215black | #f7f8f8whitesmoke |
| Card | #ffffffwhite | #030607black |
| Card foreground | #041215black | #f7f8f8whitesmoke |
| Popover | #ffffffwhite | #030607black |
| Popover foreground | #041215black | #f7f8f8whitesmoke |
| Primary | #057594teal | #057594teal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #940575purple | #940575purple |
| Secondary foreground | #fdcef3mistyrose | #fdcef3mistyrose |
| Muted | #f1e4eelavender | #1b0e18black |
| Muted foreground | #6d5f6adimgray | #a0929ddarkgray |
| Accent | #759405olive | #759405olive |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #891306darkred | #f52f19orangered |
| Destructive foreground | #fdcac4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #057594teal | #057594teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 5.26:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 4.89:1 | AA |
| Accent | 3.48:1 | AA Large |
| Destructive | 6.67:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 5.26:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 3.48:1 | AA Large |
| Destructive | 3.94:1 | AA Large |
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.169 0.022 216.318);
--muted: oklch(0.933 0.018 332.919);
--muted-foreground: oklch(0.502 0.025 333.367);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.169 0.022 216.318);
--card: oklch(1 0 180);
--card-foreground: oklch(0.169 0.022 216.318);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.524 0.098 224.89);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.452 0.193 340.594);
--secondary-foreground: oklch(0.902 0.072 333.809);
--accent: oklch(0.621 0.152 123.299);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.405 0.153 30.61);
--destructive-foreground: oklch(0.881 0.058 25.669);
--ring: oklch(0.524 0.098 224.89);
--chart-1: oklch(0.524 0.098 224.89);
--chart-2: oklch(0.452 0.193 340.594);
--chart-3: oklch(0.621 0.152 123.299);
--chart-4: oklch(0.484 0.207 340.694);
--chart-5: oklch(0.528 0.1 225.284);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.009 212.844);
--foreground: oklch(0.978 0.001 216.017);
--muted: oklch(0.186 0.027 334.73);
--muted-foreground: oklch(0.675 0.023 333.14);
--popover: oklch(0.119 0.009 212.844);
--popover-foreground: oklch(0.978 0.001 216.017);
--card: oklch(0.119 0.009 212.844);
--card-foreground: oklch(0.978 0.001 216.017);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.524 0.098 224.89);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.452 0.193 340.594);
--secondary-foreground: oklch(0.902 0.072 333.809);
--accent: oklch(0.621 0.152 123.299);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.234 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.524 0.098 224.89);
--chart-1: oklch(0.524 0.098 224.89);
--chart-2: oklch(0.452 0.193 340.594);
--chart-3: oklch(0.621 0.152 123.299);
--chart-4: oklch(0.484 0.207 340.694);
--chart-5: oklch(0.528 0.1 225.284);
}