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.
Advancement is a shadcn/ui theme built around a red primary color (#b73843) with indigo accents (#3843b7). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#b73843) on a red-tinted background (#0e0607).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0607black |
| Foreground | #000000black | #f8f7f7whitesmoke |
| Card | #ffffffwhite | #0e0607black |
| Card foreground | #000000black | #f8f7f7whitesmoke |
| Popover | #ffffffwhite | #0e0607black |
| Popover foreground | #000000black | #f8f7f7whitesmoke |
| Primary | #b73843brown | #b73843brown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #43b738limegreen | #43b738limegreen |
| Secondary foreground | #0a1b08black | #0a1b08black |
| Muted | #e8ede8linen | #121712black |
| Muted foreground | #445143darkslategray | #afbcaedarkgray |
| Accent | #3843b7darkslateblue | #3843b7darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7f0701maroon | #ef0d01red |
| Destructive foreground | #ffb7b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b73843brown | #b73843brown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 18.72:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 6.90:1 | AA |
| Muted text | 9.18:1 | AAA |
| Accent | 7.90:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Advancement in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.942 0.009 143.091);
--muted-foreground: oklch(0.42 0.03 142.8);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.531 0.163 20.066);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.689 0.195 141.928);
--secondary-foreground: oklch(0.202 0.043 142.055);
--accent: oklch(0.45 0.182 272.663);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.378 0.15 30.071);
--destructive-foreground: oklch(0.845 0.084 22.391);
--ring: oklch(0.531 0.163 20.066);
--chart-1: oklch(0.531 0.163 20.066);
--chart-2: oklch(0.689 0.195 141.928);
--chart-3: oklch(0.45 0.182 272.663);
--chart-4: oklch(0.722 0.205 141.927);
--chart-5: oklch(0.533 0.17 20.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.016 12.757);
--foreground: oklch(0.976 0.002 11.29);
--muted: oklch(0.198 0.013 142.827);
--muted-foreground: oklch(0.782 0.025 142.981);
--popover: oklch(0.137 0.016 12.757);
--popover-foreground: oklch(0.976 0.002 11.29);
--card: oklch(0.137 0.016 12.757);
--card-foreground: oklch(0.976 0.002 11.29);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.531 0.163 20.066);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.689 0.195 141.928);
--secondary-foreground: oklch(0.202 0.043 142.055);
--accent: oklch(0.45 0.182 272.663);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.6 0.242 29.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.531 0.163 20.066);
--chart-1: oklch(0.531 0.163 20.066);
--chart-2: oklch(0.689 0.195 141.928);
--chart-3: oklch(0.45 0.182 272.663);
--chart-4: oklch(0.722 0.205 141.927);
--chart-5: oklch(0.533 0.17 20.692);
}