Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Snarl is a shadcn/ui theme built around a vivid indigo primary color (#8992f0) with vivid violet accents (#b489f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#8992f0) on a neutral background (#020308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020308black |
| Foreground | #050714black | #fbfcfdwhite |
| Card | #fcfcfcsnow | #03040cblack |
| Card foreground | #040510black | #ffffffwhite |
| Popover | #ffffffwhite | #020308black |
| Popover foreground | #050714black | #fbfcfdwhite |
| Primary | #8992f0cornflowerblue | #8992f0cornflowerblue |
| Primary foreground | #080c40midnightblue | #080c40midnightblue |
| Secondary | #89c5f0skyblue | #89c5f0skyblue |
| Secondary foreground | #082840midnightblue | #082840midnightblue |
| Muted | #e1e6ealavender | #151a1eblack |
| Muted foreground | #44484bdarkslategray | #b4b8bbsilver |
| Accent | #b489f0mediumpurple | #b489f0mediumpurple |
| Accent foreground | #1f0840midnightblue | #1f0840midnightblue |
| Destructive | #9a3104saddlebrown | #f94f06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8992f0cornflowerblue | #8992f0cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 7.45:1 | AAA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Snarl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.031 276.243);
--muted: oklch(0.923 0.008 238.488);
--muted-foreground: oklch(0.399 0.007 238.629);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.031 276.243);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.027 276.192);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.139 278.176);
--primary-foreground: oklch(0.198 0.095 270.182);
--secondary: oklch(0.799 0.087 240.308);
--secondary-foreground: oklch(0.268 0.057 244.181);
--accent: oklch(0.712 0.152 301.905);
--accent-foreground: oklch(0.214 0.097 295.982);
--destructive: oklch(0.466 0.148 38.598);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.139 278.176);
--chart-1: oklch(0.692 0.139 278.176);
--chart-2: oklch(0.799 0.087 240.308);
--chart-3: oklch(0.712 0.152 301.905);
--chart-4: oklch(0.822 0.077 239.958);
--chart-5: oklch(0.689 0.144 277.966);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.019 276.256);
--foreground: oklch(0.99 0.002 282.171);
--muted: oklch(0.215 0.012 239.187);
--muted-foreground: oklch(0.781 0.006 238.477);
--popover: oklch(0.097 0.019 276.256);
--popover-foreground: oklch(0.99 0.002 282.171);
--card: oklch(0.112 0.022 276.275);
--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.692 0.139 278.176);
--primary-foreground: oklch(0.198 0.095 270.182);
--secondary: oklch(0.799 0.087 240.308);
--secondary-foreground: oklch(0.268 0.057 244.181);
--accent: oklch(0.712 0.152 301.905);
--accent-foreground: oklch(0.214 0.097 295.982);
--destructive: oklch(0.659 0.216 37.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.139 278.176);
--chart-1: oklch(0.692 0.139 278.176);
--chart-2: oklch(0.799 0.087 240.308);
--chart-3: oklch(0.712 0.152 301.905);
--chart-4: oklch(0.822 0.077 239.958);
--chart-5: oklch(0.689 0.144 277.966);
}