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.
Content is a shadcn/ui theme built around a muted green primary color (#556c51) with muted red accents (#6c5155). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#556c51) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #020401black |
| Foreground | #030802black | #f9fbf9mintcream |
| Card | #fbfefbwhite | #020401black |
| Card foreground | #030802black | #f9fbf9mintcream |
| Popover | #fbfefbwhite | #020401black |
| Popover foreground | #030802black | #f9fbf9mintcream |
| Primary | #556c51dimgray | #556c51dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #51556cdimgray | #51556cdimgray |
| Secondary foreground | #f6f7f8whitesmoke | #f6f7f8whitesmoke |
| Muted | #d2d5e4gainsboro | #1b1d2dblack |
| Muted foreground | #595d73dimgray | #8c90a6lightslategray |
| Accent | #6c5155dimgray | #6c5155dimgray |
| Accent foreground | #f8f6f7whitesmoke | #f8f6f7whitesmoke |
| Destructive | #e25503orangered | #fb6209orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #556c51dimgray | #556c51dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 4.44:1 | AA Large |
| Accent | 6.62:1 | AA |
| Destructive | 3.79:1 | AA Large |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 6.82:1 | AA |
| Muted text | 5.26:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Content in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 141.055);
--foreground: oklch(0.123 0.023 139.302);
--muted: oklch(0.876 0.021 277.96);
--muted-foreground: oklch(0.482 0.037 277.101);
--popover: oklch(0.994 0.005 141.055);
--popover-foreground: oklch(0.123 0.023 139.302);
--card: oklch(0.994 0.005 141.055);
--card-foreground: oklch(0.123 0.023 139.302);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.504 0.049 140.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.455 0.037 277.004);
--secondary-foreground: oklch(0.975 0.002 278.282);
--accent: oklch(0.464 0.036 8.519);
--accent-foreground: oklch(0.976 0.002 6.655);
--destructive: oklch(0.63 0.19 41.757);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.504 0.049 140.859);
--chart-1: oklch(0.504 0.049 140.859);
--chart-2: oklch(0.455 0.037 277.004);
--chart-3: oklch(0.464 0.036 8.519);
--chart-4: oklch(0.48 0.039 276.989);
--chart-5: oklch(0.509 0.059 140.824);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 139.456);
--foreground: oklch(0.986 0.003 141.058);
--muted: oklch(0.237 0.029 276.205);
--muted-foreground: oklch(0.657 0.034 277.52);
--popover: oklch(0.097 0.017 139.456);
--popover-foreground: oklch(0.986 0.003 141.058);
--card: oklch(0.097 0.017 139.456);
--card-foreground: oklch(0.986 0.003 141.058);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.504 0.049 140.859);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.455 0.037 277.004);
--secondary-foreground: oklch(0.975 0.002 278.282);
--accent: oklch(0.464 0.036 8.519);
--accent-foreground: oklch(0.976 0.002 6.655);
--destructive: oklch(0.685 0.203 42.194);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.504 0.049 140.859);
--chart-1: oklch(0.504 0.049 140.859);
--chart-2: oklch(0.455 0.037 277.004);
--chart-3: oklch(0.464 0.036 8.519);
--chart-4: oklch(0.48 0.039 276.989);
--chart-5: oklch(0.509 0.059 140.824);
}