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.
Place is a shadcn/ui theme built around a neutral gray primary color (#5b675f) with neutral gray accents (#5b6765). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#5b675f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #041108black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030d06black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #030d06black | #ffffffwhite |
| Primary | #5b675fdimgray | #5b675fdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5d675bdimgray | #5d675bdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4dfd3lightgrey | #222c20darkslategray |
| Muted foreground | #394936darkslategray | #b9c9b6silver |
| Accent | #5b6765dimgray | #5b6765dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #620e09maroon | #eb372dcrimson |
| Destructive foreground | #f7aaa6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b675fdimgray | #5b675fdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 5.93:1 | AA |
| Secondary button | 5.92:1 | AA |
| Muted text | 7.01:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 5.93:1 | AA |
| Secondary button | 5.92:1 | AA |
| Muted text | 8.31:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Place in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.028 156.076);
--muted: oklch(0.892 0.02 141.016);
--muted-foreground: oklch(0.386 0.038 140.858);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.143 0.024 157.33);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.143 0.024 157.33);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.5 0.019 157.184);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.022 140.97);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.015 185.849);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.322 0.118 28.841);
--destructive-foreground: oklch(0.811 0.091 22.605);
--ring: oklch(0.5 0.019 157.184);
--chart-1: oklch(0.5 0.019 157.184);
--chart-2: oklch(0.501 0.022 140.97);
--chart-3: oklch(0.502 0.015 185.849);
--chart-4: oklch(0.528 0.023 140.969);
--chart-5: oklch(0.505 0.028 156.782);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 157.969);
--muted: oklch(0.281 0.026 140.866);
--muted-foreground: oklch(0.818 0.032 140.98);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.5 0.019 157.184);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.501 0.022 140.97);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.502 0.015 185.849);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.617 0.218 28.488);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.5 0.019 157.184);
--chart-1: oklch(0.5 0.019 157.184);
--chart-2: oklch(0.501 0.022 140.97);
--chart-3: oklch(0.502 0.015 185.849);
--chart-4: oklch(0.528 0.023 140.969);
--chart-5: oklch(0.505 0.028 156.782);
}