Snarling is a shadcn/ui theme built around a cyan primary color (#46bbc8) with muted cyan accents (#b5c3c4). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the cyan primary (#46bbc8) on a cyan-tinted background (#050a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #050a0bblack |
| Foreground | #010404black | #f9fbfbghostwhite |
| Card | #fcfdfdwhite | #050a0bblack |
| Card foreground | #010404black | #f9fbfbghostwhite |
| Popover | #fcfdfdwhite | #050a0bblack |
| Popover foreground | #010404black | #f9fbfbghostwhite |
| Primary | #46bbc8mediumturquoise | #46bbc8mediumturquoise |
| Primary foreground | #0f2f33darkslategray | #0f2f33darkslategray |
| Secondary | #cbcccdlightgrey | #1e2425black |
| Secondary foreground | #323334darkslategray | #b3c0c2silver |
| Muted | #f0f4f4whitesmoke | #0b0e0fblack |
| Muted foreground | #595e5fdimgray | #a0a5a6darkgray |
| Accent | #b5c3c4silver | #26393bdarkslategray |
| Accent foreground | #202728darkslategray | #bed2d5lightgrey |
| Destructive | #a21202darkred | #e81902red |
| Destructive foreground | #ffdbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #46bbc8mediumturquoise | #46bbc8mediumturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.42:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Snarling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 204.976);
--foreground: oklch(0.097 0.01 202.392);
--muted: oklch(0.964 0.004 204.96);
--muted-foreground: oklch(0.478 0.006 204.893);
--popover: oklch(0.993 0.002 204.976);
--popover-foreground: oklch(0.097 0.01 202.392);
--card: oklch(0.993 0.002 204.976);
--card-foreground: oklch(0.097 0.01 202.392);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.732 0.104 205.53);
--primary-foreground: oklch(0.285 0.038 205.254);
--secondary: oklch(0.846 0.001 204.981);
--secondary-foreground: oklch(0.322 0.001 204.959);
--accent: oklch(0.806 0.015 204.861);
--accent-foreground: oklch(0.265 0.01 204.754);
--destructive: oklch(0.453 0.177 30.639);
--destructive-foreground: oklch(0.919 0.041 25.41);
--ring: oklch(0.732 0.104 205.53);
--chart-1: oklch(0.732 0.104 205.53);
--chart-2: oklch(0.846 0.001 204.981);
--chart-3: oklch(0.806 0.015 204.861);
--chart-4: oklch(0.869 0.001 204.982);
--chart-5: oklch(0.739 0.108 205.666);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.011 203.073);
--foreground: oklch(0.986 0.002 204.974);
--muted: oklch(0.161 0.006 204.769);
--muted-foreground: oklch(0.719 0.006 204.93);
--popover: oklch(0.138 0.011 203.073);
--popover-foreground: oklch(0.986 0.002 204.974);
--card: oklch(0.138 0.011 203.073);
--card-foreground: oklch(0.986 0.002 204.974);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.732 0.104 205.53);
--primary-foreground: oklch(0.285 0.038 205.254);
--secondary: oklch(0.254 0.01 204.757);
--secondary-foreground: oklch(0.798 0.015 204.855);
--accent: oklch(0.328 0.024 204.686);
--accent-foreground: oklch(0.851 0.022 204.814);
--destructive: oklch(0.592 0.234 30.311);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.732 0.104 205.53);
--chart-1: oklch(0.732 0.104 205.53);
--chart-2: oklch(0.254 0.01 204.757);
--chart-3: oklch(0.328 0.024 204.686);
--chart-4: oklch(0.287 0.011 204.748);
--chart-5: oklch(0.739 0.108 205.666);
}