good design is too mainstream for shadcn/ui

good design is too mainstream is a shadcn/ui theme built around a muted violet primary color (#937ba3) with muted green accents (#8ba37b). The light mode uses a neutral background (#fdfbfe). Dark mode switches to a vivid violet primary (#6502a7) on a violet-tinted background (#8a01e6).

Color palette

TokenLightDark
Background
#fdfbfewhite
#8a01e6darkviolet
Foreground
#060208black
#00faffaqua
Card
#faf7fdghostwhite
#840cd4darkviolet
Card foreground
#030104black
#43ff00lawngreen
Popover
#fdfbfewhite
#b350f5mediumorchid
Popover foreground
#060208black
#ffffffwhite
Primary
#937ba3lightslategray
#6502a7indigo
Primary foreground
#000000black
#ffaa91lightsalmon
Secondary
#8ba37bdarkseagreen
#66ff00lawngreen
Secondary foreground
#000000black
#dc0000red
Muted
#e9f1e5beige
#57b618olivedrab
Muted foreground
#555e50dimgray
#d6fffblightcyan
Accent
#8ba37bdarkseagreen
#8ba37bdarkseagreen
Accent foreground
#000000black
#dededegainsboro
Destructive
#ba2312firebrick
#e93420orangered
Destructive foreground
#ffffffwhite
#2760ffroyalblue
Border
#ebe8edlavender
#355441darkslategray
Input
#ebe8edlavender
#9100f1darkviolet
Ring
#937ba3lightslategray
#937ba3lightslategray

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.62:1AAA
Primary button5.58:1AA
Secondary button7.61:1AAA
Muted text5.84:1AA
Accent7.61:1AAA
Destructive6.30:1AA
Dark mode
Text on background4.99:1AA
Text on card5.21:1AA
Primary button5.38:1AA
Secondary button3.92:1AA Large
Muted text2.39:1Fail
Accent2.04:1Fail
Destructive1.18:1Fail

CSS variables

Paste this into your globals.css to use good design is too mainstream in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 312.328);
  --foreground: oklch(0.102 0.025 314.403);
  --muted: oklch(0.948 0.017 132.497);
  --muted-foreground: oklch(0.469 0.024 132.758);
  --popover: oklch(0.99 0.004 312.328);
  --popover-foreground: oklch(0.102 0.025 314.403);
  --card: oklch(0.981 0.008 312.298);
  --card-foreground: oklch(0.081 0.02 314.403);
  --border: oklch(0.935 0.007 312.3);
  --input: oklch(0.935 0.007 312.3);
  --primary: oklch(0.618 0.066 311.566);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.686 0.064 133.106);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.686 0.064 133.106);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.511 0.188 30.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.066 311.566);
  --chart-1: oklch(0.618 0.066 311.566);
  --chart-2: oklch(0.686 0.064 133.106);
  --chart-3: oklch(0.686 0.064 133.106);
  --chart-4: oklch(0.708 0.059 133.022);
  --chart-5: oklch(0.614 0.077 311.423);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.518 0.273 302.21);
  --foreground: oklch(0.894 0.152 197.268);
  --muted: oklch(0.692 0.202 136.865);
  --muted-foreground: oklch(0.97 0.043 189.469);
  --popover: oklch(0.632 0.24 308.519);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.497 0.254 303.73);
  --card-foreground: oklch(0.873 0.286 140.807);
  --border: oklch(0.416 0.05 156.143);
  --input: oklch(0.537 0.284 302.005);
  --primary: oklch(0.412 0.215 303.07);
  --primary-foreground: oklch(0.816 0.107 37.027);
  --secondary: oklch(0.882 0.275 138.487);
  --secondary-foreground: oklch(0.561 0.23 29.234);
  --accent: oklch(0.686 0.064 133.106);
  --accent-foreground: oklch(0.9 0 180);
  --destructive: oklch(0.61 0.219 30.472);
  --destructive-foreground: oklch(0.559 0.243 264.409);
  --ring: oklch(0.618 0.066 311.566);
  --chart-1: oklch(0.412 0.215 303.07);
  --chart-2: oklch(0.882 0.275 138.487);
  --chart-3: oklch(0.686 0.064 133.106);
  --chart-4: oklch(0.885 0.27 137.821);
  --chart-5: oklch(0.414 0.218 302.672);
}