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.
Flare is a shadcn/ui theme built around a neutral gray primary color (#bdc2be) with muted light green accents (#e8ede9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#bdc2be) on a green-tinted background (#060f07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f07black |
| Foreground | #061408black | #fcfdfcwhite |
| Card | #ffffffwhite | #060f07black |
| Card foreground | #061408black | #fcfdfcwhite |
| Popover | #ffffffwhite | #060f07black |
| Popover foreground | #061408black | #fcfdfcwhite |
| Primary | #bdc2besilver | #bdc2besilver |
| Primary foreground | #252825darkslategray | #252825darkslategray |
| Secondary | #e8ede9linen | #29332bdarkslategray |
| Secondary foreground | #465d4adarkslategray | #c1cdc3silver |
| Muted | #e7e9e7lavender | #161816black |
| Muted foreground | #526055dimgray | #9fada1darkgray |
| Accent | #e8ede9linen | #29332bdarkslategray |
| Accent foreground | #465d4adarkslategray | #c1cdc3silver |
| Destructive | #932906saddlebrown | #f66331tomato |
| Destructive foreground | #fddacebisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bdc2besilver | #bdc2besilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 6.07:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.23:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Flare in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.173 0.032 149.163);
--muted: oklch(0.932 0.003 151.353);
--muted-foreground: oklch(0.475 0.026 150.607);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.173 0.032 149.163);
--card: oklch(1 0 180);
--card-foreground: oklch(0.173 0.032 149.163);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.808 0.008 151.264);
--primary-foreground: oklch(0.272 0.006 151.069);
--secondary: oklch(0.942 0.009 151.275);
--secondary-foreground: oklch(0.454 0.041 150.024);
--accent: oklch(0.942 0.009 151.275);
--accent-foreground: oklch(0.454 0.041 150.024);
--destructive: oklch(0.444 0.147 36.183);
--destructive-foreground: oklch(0.914 0.043 39.294);
--ring: oklch(0.808 0.008 151.264);
--chart-1: oklch(0.808 0.008 151.264);
--chart-2: oklch(0.942 0.009 151.275);
--chart-3: oklch(0.942 0.009 151.275);
--chart-4: oklch(0.964 0.005 151.327);
--chart-5: oklch(0.81 0.014 151.156);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.023 150.117);
--foreground: oklch(0.993 0.002 151.382);
--muted: oklch(0.206 0.005 151.049);
--muted-foreground: oklch(0.733 0.023 150.948);
--popover: oklch(0.155 0.023 150.117);
--popover-foreground: oklch(0.993 0.002 151.382);
--card: oklch(0.155 0.023 150.117);
--card-foreground: oklch(0.993 0.002 151.382);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.808 0.008 151.264);
--primary-foreground: oklch(0.272 0.006 151.069);
--secondary: oklch(0.309 0.02 150.432);
--secondary-foreground: oklch(0.836 0.019 151.073);
--accent: oklch(0.309 0.02 150.432);
--accent-foreground: oklch(0.836 0.019 151.073);
--destructive: oklch(0.681 0.192 37.998);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.808 0.008 151.264);
--chart-1: oklch(0.808 0.008 151.264);
--chart-2: oklch(0.309 0.02 150.432);
--chart-3: oklch(0.309 0.02 150.432);
--chart-4: oklch(0.34 0.023 150.398);
--chart-5: oklch(0.81 0.014 151.156);
}