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.
Likely is a shadcn/ui theme built around a purple primary color (#d694c7) with green accents (#94d6a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#d694c7) on a purple-tinted background (#0e070c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e070cblack |
| Foreground | #080306black | #f9f5f8whitesmoke |
| Card | #fcfcfcsnow | #11080fblack |
| Card foreground | #040103black | #fbf9fbsnow |
| Popover | #ffffffwhite | #0e070cblack |
| Popover foreground | #080306black | #f9f5f8whitesmoke |
| Primary | #d694c7plum | #d694c7plum |
| Primary foreground | #290f23black | #290f23black |
| Secondary | #94d6a3lightgreen | #94d6a3lightgreen |
| Secondary foreground | #0f2915black | #0f2915black |
| Muted | #e3f2e7honeydew | #0d1c10black |
| Muted foreground | #575b58dimgray | #a4a8a5darkgray |
| Accent | #94d6a3lightgreen | #94d6a3lightgreen |
| Accent foreground | #0f2915black | #0f2915black |
| Destructive | #ca0902firebrick | #e30a02red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d694c7plum | #d694c7plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 9.22:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 9.22:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 9.22:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 9.22:1 | AAA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Likely in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.02 333.94);
--muted: oklch(0.947 0.022 152.854);
--muted-foreground: oklch(0.467 0.006 153.021);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.02 333.94);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.086 0.016 333.94);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.104 335.341);
--primary-foreground: oklch(0.218 0.052 336.812);
--secondary: oklch(0.819 0.098 151.061);
--secondary-foreground: oklch(0.253 0.048 149.463);
--accent: oklch(0.819 0.098 151.061);
--accent-foreground: oklch(0.253 0.048 149.463);
--destructive: oklch(0.529 0.214 29.492);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.104 335.341);
--chart-1: oklch(0.747 0.104 335.341);
--chart-2: oklch(0.819 0.098 151.061);
--chart-3: oklch(0.819 0.098 151.061);
--chart-4: oklch(0.837 0.088 151.359);
--chart-5: oklch(0.746 0.111 335.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.018 334.659);
--foreground: oklch(0.975 0.006 333.333);
--muted: oklch(0.208 0.031 150.449);
--muted-foreground: oklch(0.726 0.006 153.114);
--popover: oklch(0.14 0.018 334.659);
--popover-foreground: oklch(0.975 0.006 333.333);
--card: oklch(0.152 0.021 335.217);
--card-foreground: oklch(0.983 0.004 333.302);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.747 0.104 335.341);
--primary-foreground: oklch(0.218 0.052 336.812);
--secondary: oklch(0.819 0.098 151.061);
--secondary-foreground: oklch(0.253 0.048 149.463);
--accent: oklch(0.819 0.098 151.061);
--accent-foreground: oklch(0.253 0.048 149.463);
--destructive: oklch(0.578 0.234 29.457);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.104 335.341);
--chart-1: oklch(0.747 0.104 335.341);
--chart-2: oklch(0.819 0.098 151.061);
--chart-3: oklch(0.819 0.098 151.061);
--chart-4: oklch(0.837 0.088 151.359);
--chart-5: oklch(0.746 0.111 335.475);
}