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.
Waistband is a shadcn/ui theme built around a vivid deep purple primary color (#180218) with vivid deep green accents (#021802). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the vivid deep purple primary (#180218) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #040104black |
| Foreground | #000000black | #faf5faghostwhite |
| Card | #fdf6fdsnow | #040104black |
| Card foreground | #000000black | #faf5faghostwhite |
| Popover | #fdf6fdsnow | #040104black |
| Popover foreground | #000000black | #faf5faghostwhite |
| Primary | #180218black | #180218black |
| Primary foreground | #f457f2violet | #f457f2violet |
| Secondary | #021802black | #021802black |
| Secondary foreground | #0ed811lime | #0ed811lime |
| Muted | #edf7eehoneydew | #081208black |
| Muted foreground | #3e463edarkslategray | #b9c1b9silver |
| Accent | #021802black | #021802black |
| Accent foreground | #0ed811lime | #0ed811lime |
| Destructive | #ce1909firebrick | #e61c0ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #180218black | #180218black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 9.57:1 | AAA |
| Muted text | 8.90:1 | AAA |
| Accent | 9.57:1 | AAA |
| Destructive | 5.59:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 9.57:1 | AAA |
| Muted text | 10.37:1 | AAA |
| Accent | 9.57:1 | AAA |
| Destructive | 4.62:1 | AA |
Paste this into your globals.css to use Waistband in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.012 326.149);
--foreground: oklch(0 0 0);
--muted: oklch(0.967 0.016 145.917);
--muted-foreground: oklch(0.385 0.017 145.694);
--popover: oklch(0.982 0.012 326.149);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.012 326.149);
--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.151 0.061 328.699);
--primary-foreground: oklch(0.721 0.254 328.503);
--secondary: oklch(0.183 0.056 143.293);
--secondary-foreground: oklch(0.765 0.256 142.611);
--accent: oklch(0.183 0.056 143.293);
--accent-foreground: oklch(0.765 0.256 142.611);
--destructive: oklch(0.542 0.212 30.069);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.061 328.699);
--chart-1: oklch(0.151 0.061 328.699);
--chart-2: oklch(0.183 0.056 143.293);
--chart-3: oklch(0.183 0.056 143.293);
--chart-4: oklch(0.236 0.074 143.087);
--chart-5: oklch(0.151 0.063 328.772);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.018 327.407);
--foreground: oklch(0.975 0.008 326.124);
--muted: oklch(0.167 0.025 144.799);
--muted-foreground: oklch(0.801 0.014 145.911);
--popover: oklch(0.087 0.018 327.407);
--popover-foreground: oklch(0.975 0.008 326.124);
--card: oklch(0.087 0.018 327.407);
--card-foreground: oklch(0.975 0.008 326.124);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.151 0.061 328.699);
--primary-foreground: oklch(0.721 0.254 328.503);
--secondary: oklch(0.183 0.056 143.293);
--secondary-foreground: oklch(0.765 0.256 142.611);
--accent: oklch(0.183 0.056 143.293);
--accent-foreground: oklch(0.765 0.256 142.611);
--destructive: oklch(0.589 0.231 30.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.151 0.061 328.699);
--chart-1: oklch(0.151 0.061 328.699);
--chart-2: oklch(0.183 0.056 143.293);
--chart-3: oklch(0.183 0.056 143.293);
--chart-4: oklch(0.236 0.074 143.087);
--chart-5: oklch(0.151 0.063 328.772);
}