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.
Merchant is a shadcn/ui theme built around a muted light pink primary color (#f1eaec) with neutral gray accents (#cecacb). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the muted light pink primary (#f1eaec) on a pink-tinted background (#100409).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #100409black |
| Foreground | #050102black | #ffffffwhite |
| Card | #fcf2f6lavenderblush | #14050bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f9snow | #100409black |
| Popover foreground | #050102black | #ffffffwhite |
| Primary | #f1eaeclinen | #f1eaeclinen |
| Primary foreground | #644450dimgray | #644450dimgray |
| Secondary | #cecacblightgrey | #201d1eblack |
| Secondary foreground | #353132darkslategray | #bbb4b7silver |
| Muted | #e2d9ddgainsboro | #261d20black |
| Muted foreground | #604851dimgray | #b79fa8darkgray |
| Accent | #cecacblightgrey | #201d1eblack |
| Accent foreground | #353132darkslategray | #bbb4b7silver |
| Destructive | #b6420cfirebrick | #f0560forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1eaeclinen | #f1eaeclinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 5.99:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 5.57:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Merchant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 352.801);
--foreground: oklch(0.08 0.023 351.986);
--muted: oklch(0.894 0.011 352.93);
--muted-foreground: oklch(0.431 0.035 354.768);
--popover: oklch(0.981 0.008 352.801);
--popover-foreground: oklch(0.08 0.023 351.986);
--card: oklch(0.971 0.012 352.918);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.008 352.818);
--primary-foreground: oklch(0.427 0.047 355.574);
--secondary: oklch(0.843 0.005 352.744);
--secondary-foreground: oklch(0.318 0.006 353.142);
--accent: oklch(0.843 0.005 352.744);
--accent-foreground: oklch(0.318 0.006 353.142);
--destructive: oklch(0.534 0.161 40.171);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.008 352.818);
--chart-1: oklch(0.942 0.008 352.818);
--chart-2: oklch(0.843 0.005 352.744);
--chart-3: oklch(0.843 0.005 352.744);
--chart-4: oklch(0.867 0.004 352.713);
--chart-5: oklch(0.942 0.009 352.857);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.026 354.065);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.016 354.367);
--muted-foreground: oklch(0.726 0.03 353.73);
--popover: oklch(0.134 0.026 354.065);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.03 356.085);
--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.942 0.008 352.818);
--primary-foreground: oklch(0.427 0.047 355.574);
--secondary: oklch(0.235 0.005 353.194);
--secondary-foreground: oklch(0.777 0.009 352.901);
--accent: oklch(0.235 0.005 353.194);
--accent-foreground: oklch(0.777 0.009 352.901);
--destructive: oklch(0.653 0.201 39.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.008 352.818);
--chart-1: oklch(0.942 0.008 352.818);
--chart-2: oklch(0.235 0.005 353.194);
--chart-3: oklch(0.235 0.005 353.194);
--chart-4: oklch(0.266 0.006 353.236);
--chart-5: oklch(0.942 0.009 352.857);
}