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.
Stunning is a shadcn/ui theme built around a muted light green primary color (#c9d3c5) with muted light green accents (#cee0c8). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted light green primary (#c9d3c5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #000000black |
| Foreground | #000000black | #fcfdfbsnow |
| Card | #fcfefbwhite | #000000black |
| Card foreground | #000000black | #fcfdfbsnow |
| Popover | #fcfefbwhite | #000000black |
| Popover foreground | #000000black | #fcfdfbsnow |
| Primary | #c9d3c5lightgrey | #c9d3c5lightgrey |
| Primary foreground | #303a2cdarkslategray | #303a2cdarkslategray |
| Secondary | #e6ece4beige | #2b2d2adarkslategray |
| Secondary foreground | #1a2117black | #c3c7c2silver |
| Muted | #e2eeddgainsboro | #162211black |
| Muted foreground | #3e4c39darkslategray | #b9c6b3silver |
| Accent | #cee0c8lightgrey | #394635darkslategray |
| Accent foreground | #344b2adarkslategray | #d4dcd0lightgrey |
| Destructive | #5d1609maroon | #ea4a2etomato |
| Destructive foreground | #f6afa2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9d3c5lightgrey | #c9d3c5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.67:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 13.74:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 6.91:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 9.26:1 | AAA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Stunning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 136.621);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.027 136.695);
--muted-foreground: oklch(0.397 0.035 136.899);
--popover: oklch(0.994 0.004 136.621);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.004 136.621);
--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.855 0.021 136.682);
--primary-foreground: oklch(0.334 0.026 136.862);
--secondary: oklch(0.937 0.013 136.649);
--secondary-foreground: oklch(0.237 0.022 136.911);
--accent: oklch(0.886 0.038 136.74);
--accent-foreground: oklch(0.384 0.061 137.229);
--destructive: oklch(0.319 0.105 32.381);
--destructive-foreground: oklch(0.817 0.086 30.208);
--ring: oklch(0.855 0.021 136.682);
--chart-1: oklch(0.855 0.021 136.682);
--chart-2: oklch(0.937 0.013 136.649);
--chart-3: oklch(0.886 0.038 136.74);
--chart-4: oklch(0.958 0.008 136.635);
--chart-5: oklch(0.857 0.026 136.7);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.003 136.618);
--muted: oklch(0.235 0.036 137.207);
--muted-foreground: oklch(0.811 0.029 136.72);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.003 136.618);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.003 136.618);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.855 0.021 136.682);
--primary-foreground: oklch(0.334 0.026 136.862);
--secondary: oklch(0.294 0.007 136.682);
--secondary-foreground: oklch(0.825 0.007 136.636);
--accent: oklch(0.377 0.033 136.894);
--accent-foreground: oklch(0.885 0.018 136.669);
--destructive: oklch(0.633 0.201 32.381);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.855 0.021 136.682);
--chart-1: oklch(0.855 0.021 136.682);
--chart-2: oklch(0.294 0.007 136.682);
--chart-3: oklch(0.377 0.033 136.894);
--chart-4: oklch(0.325 0.008 136.685);
--chart-5: oklch(0.857 0.026 136.7);
}