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.
Flawless is a shadcn/ui theme built around a muted light pink primary color (#d1c1c6) with muted light pink accents (#cec0c4). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted light pink primary (#d1c1c6) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #070304black |
| Foreground | #040102black | #fbf9f9snow |
| Card | #faf5f6whitesmoke | #0a0506black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fcf8f9snow | #070304black |
| Popover foreground | #040102black | #fbf9f9snow |
| Primary | #d1c1c6silver | #d1c1c6silver |
| Primary foreground | #38292ddarkslategray | #38292ddarkslategray |
| Secondary | #dcdadbgainsboro | #302125darkslategray |
| Secondary foreground | #444041darkslategray | #cdb7bdsilver |
| Muted | #f1eaeclinen | #150e10black |
| Muted foreground | #463e40darkslategray | #c1b9bbsilver |
| Accent | #cec0c4silver | #4f3039darkslategray |
| Accent foreground | #33282bdarkslategray | #e2d0d4lightgrey |
| Destructive | #662505maroon | #f2590dorangered |
| Destructive foreground | #fac0a3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1c1c6silver | #d1c1c6silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 8.73:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.01:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 9.88:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Flawless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 358.9);
--foreground: oklch(0.081 0.02 358.557);
--muted: oklch(0.942 0.008 359.016);
--muted-foreground: oklch(0.374 0.011 359.644);
--popover: oklch(0.982 0.004 358.9);
--popover-foreground: oklch(0.081 0.02 358.557);
--card: oklch(0.974 0.006 358.96);
--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.827 0.019 359.429);
--primary-foreground: oklch(0.3 0.023 0.848);
--secondary: oklch(0.891 0.002 358.862);
--secondary-foreground: oklch(0.377 0.006 359.211);
--accent: oklch(0.82 0.016 359.33);
--accent-foreground: oklch(0.292 0.017 0.401);
--destructive: oklch(0.357 0.101 42.594);
--destructive-foreground: oklch(0.853 0.078 47.788);
--ring: oklch(0.827 0.019 359.429);
--chart-1: oklch(0.827 0.019 359.429);
--chart-2: oklch(0.891 0.002 358.862);
--chart-3: oklch(0.82 0.016 359.33);
--chart-4: oklch(0.915 0.002 358.844);
--chart-5: oklch(0.825 0.023 359.56);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 358.688);
--foreground: oklch(0.983 0.003 358.87);
--muted: oklch(0.176 0.012 0.665);
--muted-foreground: oklch(0.792 0.009 359.122);
--popover: oklch(0.109 0.012 358.688);
--popover-foreground: oklch(0.983 0.003 358.87);
--card: oklch(0.125 0.013 358.7);
--card-foreground: oklch(0.992 0.001 358.826);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.827 0.019 359.429);
--primary-foreground: oklch(0.3 0.023 0.848);
--secondary: oklch(0.269 0.023 1.175);
--secondary-foreground: oklch(0.799 0.026 359.706);
--accent: oklch(0.351 0.046 2.379);
--accent-foreground: oklch(0.873 0.021 359.473);
--destructive: oklch(0.661 0.201 40.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.827 0.019 359.429);
--chart-1: oklch(0.827 0.019 359.429);
--chart-2: oklch(0.269 0.023 1.175);
--chart-3: oklch(0.351 0.046 2.379);
--chart-4: oklch(0.298 0.027 1.28);
--chart-5: oklch(0.825 0.023 359.56);
}