Snug is a shadcn/ui theme built around a vivid green primary color (#9ee949) with vivid pink accents (#e9499e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#9ee949) on a green-tinted background (#0b1004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b1004black |
| Foreground | #080c03black | #f7f9f6whitesmoke |
| Card | #ffffffwhite | #0b1004black |
| Card foreground | #080c03black | #f7f9f6whitesmoke |
| Popover | #ffffffwhite | #0b1004black |
| Popover foreground | #080c03black | #f7f9f6whitesmoke |
| Primary | #9ee949yellowgreen | #9ee949yellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #499ee9cornflowerblue | #499ee9cornflowerblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #d9dee2gainsboro | #1d2126black |
| Muted foreground | #42484ddarkslategray | #b2b8bdsilver |
| Accent | #e9499epalevioletred | #e9499epalevioletred |
| Accent foreground | #000000black | #000000black |
| Destructive | #980606darkred | #eb0a0ared |
| Destructive foreground | #fdd3d3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ee949yellowgreen | #9ee949yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 14.16:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 5.91:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 18.18:1 | AAA |
| Text on card | 18.18:1 | AAA |
| Primary button | 14.16:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 5.91:1 | AA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Snug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.025 126.337);
--muted: oklch(0.899 0.008 244.2);
--muted-foreground: oklch(0.397 0.012 244.466);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.025 126.337);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.025 126.337);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.854 0.201 131.244);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.681 0.137 247.817);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.654 0.21 351.663);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.429 0.172 28.747);
--destructive-foreground: oklch(0.903 0.048 18.069);
--ring: oklch(0.854 0.201 131.244);
--chart-1: oklch(0.854 0.201 131.244);
--chart-2: oklch(0.681 0.137 247.817);
--chart-3: oklch(0.654 0.21 351.663);
--chart-4: oklch(0.703 0.128 247.195);
--chart-5: oklch(0.861 0.207 131.406);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.028 127.693);
--foreground: oklch(0.98 0.005 127.168);
--muted: oklch(0.247 0.011 244.647);
--muted-foreground: oklch(0.779 0.01 244.252);
--popover: oklch(0.164 0.028 127.693);
--popover-foreground: oklch(0.98 0.005 127.168);
--card: oklch(0.164 0.028 127.693);
--card-foreground: oklch(0.98 0.005 127.168);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.854 0.201 131.244);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.681 0.137 247.817);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.654 0.21 351.663);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.593 0.24 28.945);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.201 131.244);
--chart-1: oklch(0.854 0.201 131.244);
--chart-2: oklch(0.681 0.137 247.817);
--chart-3: oklch(0.654 0.21 351.663);
--chart-4: oklch(0.703 0.128 247.195);
--chart-5: oklch(0.861 0.207 131.406);
}