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.
Motherly is a shadcn/ui theme built around a vivid deep red primary color (#6b120a) with vivid deep indigo accents (#120a6b). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid deep red primary (#6b120a) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #080303black |
| Foreground | #050101black | #fdfcfcsnow |
| Card | #fdf7f7snow | #0b0404black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f7snow | #0b0404black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #6b120amaroon | #6b120amaroon |
| Primary foreground | #f8b6b0lightpink | #f8b6b0lightpink |
| Secondary | #0a6b12darkgreen | #0a6b12darkgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #cae7cdlightgrey | #18351adarkgreen |
| Muted foreground | #4a544bdarkslategray | #abb5acdarkgray |
| Accent | #120a6bmidnightblue | #120a6bmidnightblue |
| Accent foreground | #b6b0f8lightsteelblue | #b6b0f8lightsteelblue |
| Destructive | #7a2701saddlebrown | #fe702ftomato |
| Destructive foreground | #ffc7aepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b120amaroon | #6b120amaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 8.22:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.15:1 | AAA |
| Secondary button | 6.69:1 | AA |
| Muted text | 6.37:1 | AA |
| Accent | 8.22:1 | AAA |
| Destructive | 7.59:1 | AAA |
Paste this into your globals.css to use Motherly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 23.613);
--foreground: oklch(0.081 0.019 31.887);
--muted: oklch(0.9 0.047 147.496);
--muted-foreground: oklch(0.434 0.019 147.605);
--popover: oklch(0.981 0.007 23.647);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 23.647);
--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.345 0.124 29.892);
--primary-foreground: oklch(0.835 0.078 24.735);
--secondary: oklch(0.46 0.147 143.4);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.259 0.153 271.556);
--accent-foreground: oklch(0.787 0.102 287.642);
--destructive: oklch(0.395 0.123 40.152);
--destructive-foreground: oklch(0.873 0.072 46.086);
--ring: oklch(0.345 0.124 29.892);
--chart-1: oklch(0.345 0.124 29.892);
--chart-2: oklch(0.46 0.147 143.4);
--chart-3: oklch(0.259 0.153 271.556);
--chart-4: oklch(0.502 0.161 143.344);
--chart-5: oklch(0.347 0.127 30.01);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.014 27.642);
--foreground: oklch(0.992 0.001 23.594);
--muted: oklch(0.297 0.059 145.653);
--muted-foreground: oklch(0.762 0.016 147.839);
--popover: oklch(0.123 0.016 27.601);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.016 27.601);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.124 29.892);
--primary-foreground: oklch(0.835 0.078 24.735);
--secondary: oklch(0.46 0.147 143.4);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.259 0.153 271.556);
--accent-foreground: oklch(0.787 0.102 287.642);
--destructive: oklch(0.71 0.188 42.486);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.345 0.124 29.892);
--chart-1: oklch(0.345 0.124 29.892);
--chart-2: oklch(0.46 0.147 143.4);
--chart-3: oklch(0.259 0.153 271.556);
--chart-4: oklch(0.502 0.161 143.344);
--chart-5: oklch(0.347 0.127 30.01);
}