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.
Logo is a shadcn/ui theme built around a vivid violet primary color (#5205a3) with vivid purple accents (#a105a3). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#5205a3) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050307black |
| Foreground | #000000black | #faf8fcghostwhite |
| Card | #faf8fcghostwhite | #08040bblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #050307black |
| Popover foreground | #000000black | #faf8fcghostwhite |
| Primary | #5205a3indigo | #5205a3indigo |
| Primary foreground | #eddcfelavender | #eddcfelavender |
| Secondary | #0508a3darkblue | #0508a3darkblue |
| Secondary foreground | #dcddfelavender | #dcddfelavender |
| Muted | #e7e7e9lavender | #161618black |
| Muted foreground | #5d5d6fdimgray | #9090a2lightslategray |
| Accent | #a105a3darkmagenta | #a105a3darkmagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #be1a0efirebrick | #ee2e20crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5205a3indigo | #5205a3indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.42:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 10.07:1 | AAA |
| Muted text | 5.21:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.53:1 | AAA |
| Secondary button | 10.07:1 | AAA |
| Muted text | 5.77:1 | AA |
| Accent | 6.86:1 | AA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Logo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 307.753);
--foreground: oklch(0 0 0);
--muted: oklch(0.928 0.003 285.559);
--muted-foreground: oklch(0.485 0.029 284.506);
--popover: oklch(0.991 0.003 307.753);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 307.717);
--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.385 0.208 294.665);
--primary-foreground: oklch(0.919 0.048 307.179);
--secondary: oklch(0.33 0.22 265.011);
--secondary-foreground: oklch(0.907 0.045 284.697);
--accent: oklch(0.5 0.228 327.474);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.512 0.197 29.707);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.208 294.665);
--chart-1: oklch(0.385 0.208 294.665);
--chart-2: oklch(0.33 0.22 265.011);
--chart-3: oklch(0.5 0.228 327.474);
--chart-4: oklch(0.351 0.235 264.921);
--chart-5: oklch(0.386 0.211 294.083);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.018 308.979);
--foreground: oklch(0.982 0.005 307.732);
--muted: oklch(0.2 0.004 285.212);
--muted-foreground: oklch(0.659 0.027 284.874);
--popover: oklch(0.105 0.018 308.979);
--popover-foreground: oklch(0.982 0.005 307.732);
--card: oklch(0.12 0.02 308.875);
--card-foreground: oklch(0.991 0.002 307.761);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.208 294.665);
--primary-foreground: oklch(0.919 0.048 307.179);
--secondary: oklch(0.33 0.22 265.011);
--secondary-foreground: oklch(0.907 0.045 284.697);
--accent: oklch(0.5 0.228 327.474);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.614 0.227 29.494);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.208 294.665);
--chart-1: oklch(0.385 0.208 294.665);
--chart-2: oklch(0.33 0.22 265.011);
--chart-3: oklch(0.5 0.228 327.474);
--chart-4: oklch(0.351 0.235 264.921);
--chart-5: oklch(0.386 0.211 294.083);
}