Snarling is a shadcn/ui theme built around a muted blue primary color (#6b7fae) with muted yellow accents (#ae9a6b). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted blue primary (#6b7fae) on a blue-tinted background (#04060b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #04060bblack |
| Foreground | #000000black | #f9f9fbghostwhite |
| Card | #f8f9fcghostwhite | #05080fblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #04060bblack |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #6b7faelightslategray | #6b7faelightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ae9a6bdarkkhaki | #ae9a6bdarkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7e0d0gainsboro | #2f2818black |
| Muted foreground | #575142darkolivegreen | #bdb7a8darkgray |
| Accent | #ae9a6bdarkkhaki | #ae9a6bdarkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #b91004firebrick | #fb3f32tomato |
| Destructive foreground | #fff1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b7faelightslategray | #6b7faelightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.48:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 7.59:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.59:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 3.58: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.002 267.41);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.023 87.529);
--muted-foreground: oklch(0.436 0.025 87.566);
--popover: oklch(0.991 0.002 267.41);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.004 267.399);
--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.599 0.075 266.284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.691 0.067 87.363);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.691 0.067 87.363);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.498 0.198 29.87);
--destructive-foreground: oklch(0.969 0.015 22.391);
--ring: oklch(0.599 0.075 266.284);
--chart-1: oklch(0.599 0.075 266.284);
--chart-2: oklch(0.691 0.067 87.363);
--chart-3: oklch(0.691 0.067 87.363);
--chart-4: oklch(0.712 0.063 87.441);
--chart-5: oklch(0.595 0.083 266.122);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 261.097);
--foreground: oklch(0.984 0.002 267.408);
--muted: oklch(0.281 0.029 87.307);
--muted-foreground: oklch(0.78 0.022 87.538);
--popover: oklch(0.123 0.014 261.097);
--popover-foreground: oklch(0.984 0.002 267.408);
--card: oklch(0.136 0.017 262.579);
--card-foreground: oklch(0.992 0.001 267.414);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.599 0.075 266.284);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.691 0.067 87.363);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.691 0.067 87.363);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.651 0.225 28.979);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.075 266.284);
--chart-1: oklch(0.599 0.075 266.284);
--chart-2: oklch(0.691 0.067 87.363);
--chart-3: oklch(0.691 0.067 87.363);
--chart-4: oklch(0.712 0.063 87.441);
--chart-5: oklch(0.595 0.083 266.122);
}