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.
Grove is a shadcn/ui theme built around a cyan primary color (#5197b3) with orange accents (#b36d51). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#5197b3) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #010709black | #ffffffwhite |
| Card | #fcfcfcsnow | #030607black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #ffffffwhite | #020303black |
| Popover foreground | #010709black | #ffffffwhite |
| Primary | #5197b3steelblue | #5197b3steelblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #b36d51indianred | #b36d51indianred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7d3cblightgrey | #342018black |
| Muted foreground | #5e504adarkolivegreen | #b5a6a1darkgray |
| Accent | #b36d51indianred | #b36d51indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8c1703darkred | #fa3f1eorangered |
| Destructive foreground | #feccc3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5197b3steelblue | #5197b3steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 4.02:1 | AA Large |
| Muted text | 5.34:1 | AA |
| Accent | 4.02:1 | AA Large |
| Destructive | 6.53:1 | AA |
| Text on background | 20.66:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 4.02:1 | AA Large |
| Muted text | 6.52:1 | AA |
| Accent | 4.02:1 | AA Large |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Grove in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.015 216.637);
--muted: oklch(0.88 0.025 42.901);
--muted-foreground: oklch(0.443 0.022 42.769);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.015 216.637);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.094 0.012 216.637);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.642 0.082 226.002);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.605 0.098 42.168);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.098 42.168);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.414 0.154 32.071);
--destructive-foreground: oklch(0.886 0.058 29.847);
--ring: oklch(0.642 0.082 226.002);
--chart-1: oklch(0.642 0.082 226.002);
--chart-2: oklch(0.605 0.098 42.168);
--chart-3: oklch(0.605 0.098 42.168);
--chart-4: oklch(0.628 0.091 42.284);
--chart-5: oklch(0.646 0.087 226.347);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.006 219.783);
--foreground: oklch(1 0 180);
--muted: oklch(0.267 0.034 42.385);
--muted-foreground: oklch(0.737 0.019 42.918);
--popover: oklch(0.093 0.006 219.783);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.117 0.007 219.783);
--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.642 0.082 226.002);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.605 0.098 42.168);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.098 42.168);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.227 32.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.642 0.082 226.002);
--chart-1: oklch(0.642 0.082 226.002);
--chart-2: oklch(0.605 0.098 42.168);
--chart-3: oklch(0.605 0.098 42.168);
--chart-4: oklch(0.628 0.091 42.284);
--chart-5: oklch(0.646 0.087 226.347);
}