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.
Flaky is a shadcn/ui theme built around a vivid pink primary color (#e41b75) with muted light pink accents (#d0b4c0). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid pink primary (#e41b75) on a pink-tinted background (#0b0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #0b0507black |
| Foreground | #15040cblack | #fdfbfcsnow |
| Card | #fcf8fasnow | #0b0507black |
| Card foreground | #15040cblack | #fdfbfcsnow |
| Popover | #fcf8fasnow | #0b0507black |
| Popover foreground | #15040cblack | #fdfbfcsnow |
| Primary | #e41b75mediumvioletred | #e41b75mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8cad0lightgrey | #171717black |
| Secondary foreground | #413037darkslategray | #b0b0b0darkgray |
| Muted | #ded8dbgainsboro | #272121black |
| Muted foreground | #585557dimgray | #aaa7a7darkgray |
| Accent | #d0b4c0silver | #2e2929darkslategray |
| Accent foreground | #321f28darkslategray | #c8c1c1silver |
| Destructive | #c41a0efirebrick | #e51e10red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e41b75mediumvioletred | #e41b75mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.26:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.02:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Flaky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 347.961);
--foreground: oklch(0.146 0.037 351.83);
--muted: oklch(0.889 0.007 348.031);
--muted-foreground: oklch(0.453 0.005 348.12);
--popover: oklch(0.982 0.005 347.961);
--popover-foreground: oklch(0.146 0.037 351.83);
--card: oklch(0.982 0.005 347.961);
--card-foreground: oklch(0.146 0.037 351.83);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.601 0.232 2.128);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.853 0.017 348.364);
--secondary-foreground: oklch(0.33 0.027 349.965);
--accent: oklch(0.797 0.036 349.025);
--accent-foreground: oklch(0.268 0.032 350.892);
--destructive: oklch(0.523 0.202 29.725);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.232 2.128);
--chart-1: oklch(0.601 0.232 2.128);
--chart-2: oklch(0.853 0.017 348.364);
--chart-3: oklch(0.797 0.036 349.025);
--chart-4: oklch(0.878 0.014 348.257);
--chart-5: oklch(0.607 0.236 2.77);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 347.64);
--foreground: oklch(0.991 0.002 347.881);
--muted: oklch(0.254 0.009 17.743);
--muted-foreground: oklch(0.73 0.004 17.248);
--popover: oklch(0.125 0.015 347.64);
--popover-foreground: oklch(0.991 0.002 347.881);
--card: oklch(0.125 0.015 347.64);
--card-foreground: oklch(0.991 0.002 347.881);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.601 0.232 2.128);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.204 0 180);
--secondary-foreground: oklch(0.757 0 180);
--accent: oklch(0.286 0.008 17.611);
--accent-foreground: oklch(0.816 0.008 17.318);
--destructive: oklch(0.588 0.229 29.742);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.601 0.232 2.128);
--chart-1: oklch(0.601 0.232 2.128);
--chart-2: oklch(0.204 0 180);
--chart-3: oklch(0.286 0.008 17.611);
--chart-4: oklch(0.238 0 161.565);
--chart-5: oklch(0.607 0.236 2.77);
}