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.
Gold is a shadcn/ui theme built around a purple primary color (#822c8c) with muted light purple accents (#ddd3de). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the purple primary (#822c8c) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fdghostwhite | #030204black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fbf3fcghostwhite | #070307black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf3fcghostwhite | #070307black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #822c8crebeccapurple | #822c8crebeccapurple |
| Primary foreground | #f9effalavenderblush | #f9effalavenderblush |
| Secondary | #ddd3degainsboro | #2f2d2fdarkslategray |
| Secondary foreground | #473749darkslategray | #c8c6c8silver |
| Muted | #f6eef7whitesmoke | #100811black |
| Muted foreground | #6a5b6bdimgray | #a294a4darkgray |
| Accent | #ddd3degainsboro | #2f2d2fdarkslategray |
| Accent foreground | #473749darkslategray | #c8c6c8silver |
| Destructive | #e31d02red | #fd290dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #822c8crebeccapurple | #822c8crebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 7.58:1 | AAA |
| Destructive | 4.72:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 8.05:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Gold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 322.667);
--foreground: oklch(0.085 0.02 324.441);
--muted: oklch(0.957 0.014 322.686);
--muted-foreground: oklch(0.492 0.031 322.87);
--popover: oklch(0.973 0.015 322.687);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.015 322.687);
--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.46 0.167 323.581);
--primary-foreground: oklch(0.964 0.017 322.699);
--secondary: oklch(0.879 0.018 322.708);
--secondary-foreground: oklch(0.361 0.037 323.018);
--accent: oklch(0.879 0.018 322.708);
--accent-foreground: oklch(0.361 0.037 323.018);
--destructive: oklch(0.584 0.229 30.641);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.167 323.581);
--chart-1: oklch(0.46 0.167 323.581);
--chart-2: oklch(0.879 0.018 322.708);
--chart-3: oklch(0.879 0.018 322.708);
--chart-4: oklch(0.903 0.014 322.69);
--chart-5: oklch(0.462 0.174 323.572);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.014 323.867);
--foreground: oklch(0.992 0.002 322.635);
--muted: oklch(0.152 0.022 323.2);
--muted-foreground: oklch(0.683 0.028 322.791);
--popover: oklch(0.11 0.017 323.867);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.017 323.867);
--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.46 0.167 323.581);
--primary-foreground: oklch(0.964 0.017 322.699);
--secondary: oklch(0.3 0.004 322.68);
--secondary-foreground: oklch(0.828 0.004 322.645);
--accent: oklch(0.3 0.004 322.68);
--accent-foreground: oklch(0.828 0.004 322.645);
--destructive: oklch(0.636 0.244 30.78);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.46 0.167 323.581);
--chart-1: oklch(0.46 0.167 323.581);
--chart-2: oklch(0.3 0.004 322.68);
--chart-3: oklch(0.3 0.004 322.68);
--chart-4: oklch(0.33 0.005 322.682);
--chart-5: oklch(0.462 0.174 323.572);
}