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.
Motorcar is a shadcn/ui theme built around a vivid purple primary color (#d984f1) with near-white accents (#ebeaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d984f1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030104black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030104black | #fdfcfdwhite |
| Primary | #d984f1violet | #d984f1violet |
| Primary foreground | #30073bmidnightblue | #30073bmidnightblue |
| Secondary | #ebeaeblavender | #36273adarkslategray |
| Secondary foreground | #534e55darkslategray | #cfbfd4thistle |
| Muted | #ede6eflavender | #171019black |
| Muted foreground | #575658dimgray | #a9a7a9darkgray |
| Accent | #ebeaeblavender | #36273adarkslategray |
| Accent foreground | #534e55darkslategray | #cfbfd4thistle |
| Destructive | #a73406firebrick | #f65313orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d984f1violet | #d984f1violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 5.97:1 | AA |
| Accent | 6.75:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.39:1 | AA Large |
Paste this into your globals.css to use Motorcar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.083 0.022 321.123);
--muted: oklch(0.933 0.014 318.885);
--muted-foreground: oklch(0.454 0.003 318.888);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.083 0.022 321.123);
--card: oklch(1 0 180);
--card-foreground: oklch(0.083 0.022 321.123);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.742 0.174 318.68);
--primary-foreground: oklch(0.235 0.099 317.704);
--secondary: oklch(0.938 0.003 318.89);
--secondary-foreground: oklch(0.432 0.012 318.88);
--accent: oklch(0.938 0.003 318.89);
--accent-foreground: oklch(0.432 0.012 318.88);
--destructive: oklch(0.492 0.159 37.624);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.174 318.68);
--chart-1: oklch(0.742 0.174 318.68);
--chart-2: oklch(0.938 0.003 318.89);
--chart-3: oklch(0.938 0.003 318.89);
--chart-4: oklch(0.961 0.002 318.89);
--chart-5: oklch(0.741 0.18 318.661);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 318.89);
--muted: oklch(0.186 0.021 318.84);
--muted-foreground: oklch(0.731 0.003 318.889);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 318.89);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 318.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.742 0.174 318.68);
--primary-foreground: oklch(0.235 0.099 317.704);
--secondary: oklch(0.298 0.038 318.829);
--secondary-foreground: oklch(0.825 0.033 318.876);
--accent: oklch(0.298 0.038 318.829);
--accent-foreground: oklch(0.825 0.033 318.876);
--destructive: oklch(0.661 0.209 37.955);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.174 318.68);
--chart-1: oklch(0.742 0.174 318.68);
--chart-2: oklch(0.298 0.038 318.829);
--chart-3: oklch(0.298 0.038 318.829);
--chart-4: oklch(0.327 0.043 318.826);
--chart-5: oklch(0.741 0.18 318.661);
}