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.
Immediate is a shadcn/ui theme built around a muted pink primary color (#7c6a75) with muted light pink accents (#dec9d7). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted pink primary (#7c6a75) on a pink-tinted background (#0e060b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0e060bblack |
| Foreground | #090106black | #fdfcfdwhite |
| Card | #fdfcfdwhite | #0e060bblack |
| Card foreground | #090106black | #fdfcfdwhite |
| Popover | #fdfcfdwhite | #0e060bblack |
| Popover foreground | #090106black | #fdfcfdwhite |
| Primary | #7c6a75dimgray | #7c6a75dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eae1e7gainsboro | #231f22black |
| Secondary foreground | #594050darkslategray | #bfb5bbsilver |
| Muted | #e4cedcgainsboro | #311b29darkslategray |
| Muted foreground | #5f4f59dimgray | #b0a0aadarkgray |
| Accent | #dec9d7thistle | #3b2b35darkslategray |
| Accent foreground | #492c3fdarkslategray | #d4c4cethistle |
| Destructive | #981006darkred | #f51e0fred |
| Destructive foreground | #fdd6d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c6a75dimgray | #7c6a75dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 5.05:1 | AA |
| Secondary button | 7.23:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 5.05:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Immediate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 338.767);
--foreground: oklch(0.103 0.032 339.11);
--muted: oklch(0.873 0.031 339.463);
--muted-foreground: oklch(0.446 0.026 339.914);
--popover: oklch(0.992 0.002 338.767);
--popover-foreground: oklch(0.103 0.032 339.11);
--card: oklch(0.992 0.002 338.767);
--card-foreground: oklch(0.103 0.032 339.11);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.544 0.029 339.819);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.919 0.011 338.979);
--secondary-foreground: oklch(0.405 0.041 340.79);
--accent: oklch(0.857 0.03 339.462);
--accent-foreground: oklch(0.336 0.052 341.785);
--destructive: oklch(0.433 0.168 29.81);
--destructive-foreground: oklch(0.908 0.044 22.824);
--ring: oklch(0.544 0.029 339.819);
--chart-1: oklch(0.544 0.029 339.819);
--chart-2: oklch(0.919 0.011 338.979);
--chart-3: oklch(0.857 0.03 339.462);
--chart-4: oklch(0.943 0.008 338.896);
--chart-5: oklch(0.541 0.04 340.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.018 340.257);
--foreground: oklch(0.992 0.002 338.752);
--muted: oklch(0.258 0.042 341.94);
--muted-foreground: oklch(0.724 0.023 339.381);
--popover: oklch(0.139 0.018 340.257);
--popover-foreground: oklch(0.992 0.002 338.752);
--card: oklch(0.139 0.018 340.257);
--card-foreground: oklch(0.992 0.002 338.752);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.544 0.029 339.819);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.245 0.009 339.48);
--secondary-foreground: oklch(0.784 0.014 339.093);
--accent: oklch(0.311 0.03 340.643);
--accent-foreground: oklch(0.836 0.023 339.299);
--destructive: oklch(0.618 0.242 29.755);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.544 0.029 339.819);
--chart-1: oklch(0.544 0.029 339.819);
--chart-2: oklch(0.245 0.009 339.48);
--chart-3: oklch(0.311 0.03 340.643);
--chart-4: oklch(0.276 0.011 339.525);
--chart-5: oklch(0.541 0.04 340.227);
}