Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Motorcar for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button6.97:1AA
Secondary button6.75:1AA
Muted text5.97:1AA
Accent6.75:1AA
Destructive6.68:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button6.97:1AA
Secondary button7.99:1AAA
Muted text7.81:1AAA
Accent7.99:1AAA
Destructive3.39:1AA Large

CSS variables

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);
}