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.
Enchanting is a shadcn/ui theme built around a violet primary color (#b4a5d9) with green accents (#a5d9b4). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the violet primary (#b4a5d9) on a violet-tinted background (#06040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #06040bblack |
| Foreground | #000000black | #f7f6f8whitesmoke |
| Card | #f9f8fcghostwhite | #08050fblack |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #f9f8fcghostwhite | #08050fblack |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #b4a5d9lightsteelblue | #b4a5d9lightsteelblue |
| Primary foreground | #1f1736midnightblue | #1f1736midnightblue |
| Secondary | #d9b4a5tan | #d9b4a5tan |
| Secondary foreground | #361f17black | #361f17black |
| Muted | #e1dcdagainsboro | #25201eblack |
| Muted foreground | #4a4340darkslategray | #bfb8b5silver |
| Accent | #a5d9b4silver | #a5d9b4silver |
| Accent foreground | #17361fdarkslategray | #17361fdarkslategray |
| Destructive | #ce4009chocolate | #e6480aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b4a5d9lightsteelblue | #b4a5d9lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 8.35:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 18.92:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.35:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Enchanting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 299.264);
--foreground: oklch(0 0 0);
--muted: oklch(0.899 0.006 43.065);
--muted-foreground: oklch(0.388 0.011 42.906);
--popover: oklch(0.981 0.005 299.222);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 299.222);
--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.753 0.076 297.545);
--primary-foreground: oklch(0.232 0.059 294.39);
--secondary: oklch(0.799 0.048 42.704);
--secondary-foreground: oklch(0.268 0.039 42.288);
--accent: oklch(0.84 0.075 153.416);
--accent-foreground: oklch(0.301 0.055 151.055);
--destructive: oklch(0.572 0.186 37.355);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.753 0.076 297.545);
--chart-1: oklch(0.753 0.076 297.545);
--chart-2: oklch(0.799 0.048 42.704);
--chart-3: oklch(0.84 0.075 153.416);
--chart-4: oklch(0.823 0.042 42.755);
--chart-5: oklch(0.749 0.081 297.401);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.021 299.245);
--foreground: oklch(0.975 0.002 299.261);
--muted: oklch(0.247 0.009 42.844);
--muted-foreground: oklch(0.788 0.009 43.031);
--popover: oklch(0.129 0.024 298.231);
--popover-foreground: oklch(0.984 0.002 299.275);
--card: oklch(0.129 0.024 298.231);
--card-foreground: oklch(0.984 0.002 299.275);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.753 0.076 297.545);
--primary-foreground: oklch(0.232 0.059 294.39);
--secondary: oklch(0.799 0.048 42.704);
--secondary-foreground: oklch(0.268 0.039 42.288);
--accent: oklch(0.84 0.075 153.416);
--accent-foreground: oklch(0.301 0.055 151.055);
--destructive: oklch(0.622 0.203 37.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.753 0.076 297.545);
--chart-1: oklch(0.753 0.076 297.545);
--chart-2: oklch(0.799 0.048 42.704);
--chart-3: oklch(0.84 0.075 153.416);
--chart-4: oklch(0.823 0.042 42.755);
--chart-5: oklch(0.749 0.081 297.401);
}