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.
Unfit is a shadcn/ui theme built around a purple primary color (#a23ebb) with muted light purple accents (#dbd5dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#a23ebb) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030204black |
| Foreground | #070208black | #faf9fbghostwhite |
| Card | #fcfcfcsnow | #060307black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #060307black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #a23ebbdarkorchid | #a23ebbdarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dbd5ddgainsboro | #2a282adarkslategray |
| Secondary foreground | #443946darkslategray | #c3c0c4silver |
| Muted | #e8daeclavender | #211325black |
| Muted foreground | #464347darkslategray | #bbb8bcsilver |
| Accent | #dbd5ddgainsboro | #2a282adarkslategray |
| Accent foreground | #443946darkslategray | #c3c0c4silver |
| Destructive | #ba3d03firebrick | #fc631dorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a23ebbdarkorchid | #a23ebbdarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 5.29:1 | AA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 7.27:1 | AAA |
| Accent | 7.58:1 | AAA |
| Destructive | 5.60:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 5.29:1 | AA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Unfit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.028 321.657);
--muted: oklch(0.905 0.029 319.453);
--muted-foreground: oklch(0.387 0.008 319.45);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.022 321.657);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.022 321.657);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.555 0.201 318.967);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.88 0.012 319.448);
--secondary-foreground: oklch(0.362 0.026 319.462);
--accent: oklch(0.88 0.012 319.448);
--accent-foreground: oklch(0.362 0.026 319.462);
--destructive: oklch(0.534 0.17 38.903);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.555 0.201 318.967);
--chart-1: oklch(0.555 0.201 318.967);
--chart-2: oklch(0.88 0.012 319.448);
--chart-3: oklch(0.88 0.012 319.448);
--chart-4: oklch(0.904 0.01 319.447);
--chart-5: oklch(0.556 0.21 318.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 320.799);
--foreground: oklch(0.984 0.003 319.445);
--muted: oklch(0.215 0.04 319.436);
--muted-foreground: oklch(0.787 0.007 319.447);
--popover: oklch(0.109 0.017 320.799);
--popover-foreground: oklch(0.992 0.001 319.445);
--card: oklch(0.109 0.017 320.799);
--card-foreground: oklch(0.992 0.001 319.445);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.555 0.201 318.967);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.278 0.005 319.45);
--secondary-foreground: oklch(0.811 0.006 319.446);
--accent: oklch(0.278 0.005 319.45);
--accent-foreground: oklch(0.811 0.006 319.446);
--destructive: oklch(0.688 0.2 41.011);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.555 0.201 318.967);
--chart-1: oklch(0.555 0.201 318.967);
--chart-2: oklch(0.278 0.005 319.45);
--chart-3: oklch(0.278 0.005 319.45);
--chart-4: oklch(0.309 0.006 319.45);
--chart-5: oklch(0.556 0.21 318.869);
}