Wrong for shadcn/ui

Wrong is a shadcn/ui theme built around a vivid light violet primary color (#d9b3ff) with vivid light purple accents (#ffb3ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#d9b3ff) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#ffffffwhite
#050208black
Foreground
#000000black
#faf9fbghostwhite
Card
#ffffffwhite
#050208black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#ffffffwhite
#050208black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#d9b3ffplum
#d9b3ffplum
Primary foreground
#400080indigo
#400080indigo
Secondary
#b3b3fflightsteelblue
#b3b3fflightsteelblue
Secondary foreground
#000080navy
#000080navy
Muted
#d5d5dclightgrey
#23232adarkslategray
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#ffb3ffplum
#ffb3ffplum
Accent foreground
#1a001ablack
#1a001ablack
Destructive
#812304maroon
#f74408orangered
Destructive foreground
#fdcbbapeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9b3ffplum
#d9b3ffplum

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.71:1AAA
Secondary button8.20:1AAA
Muted text4.81:1AA
Accent12.37:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button7.71:1AAA
Secondary button8.20:1AAA
Muted text6.42:1AA
Accent12.37:1AAA
Destructive3.62:1AA Large

CSS variables

Paste this into your globals.css to use Wrong in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.876 0.009 286.204);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.825 0.112 306.93);
  --primary-foreground: oklch(0.321 0.176 295.832);
  --secondary: oklch(0.794 0.108 283.668);
  --secondary-foreground: oklch(0.27 0.187 264.052);
  --accent: oklch(0.862 0.132 326.643);
  --accent-foreground: oklch(0.151 0.07 328.363);
  --destructive: oklch(0.403 0.133 36.375);
  --destructive-foreground: oklch(0.88 0.062 39.245);
  --ring: oklch(0.825 0.112 306.93);
  --chart-1: oklch(0.825 0.112 306.93);
  --chart-2: oklch(0.794 0.108 283.668);
  --chart-3: oklch(0.862 0.132 326.643);
  --chart-4: oklch(0.835 0.085 284.401);
  --chart-5: oklch(0.824 0.116 306.878);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.023 310.11);
  --foreground: oklch(0.983 0.003 308.428);
  --muted: oklch(0.258 0.013 285.468);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.102 0.023 310.11);
  --popover-foreground: oklch(0.983 0.003 308.428);
  --card: oklch(0.102 0.023 310.11);
  --card-foreground: oklch(0.983 0.003 308.428);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.825 0.112 306.93);
  --primary-foreground: oklch(0.321 0.176 295.832);
  --secondary: oklch(0.794 0.108 283.668);
  --secondary-foreground: oklch(0.27 0.187 264.052);
  --accent: oklch(0.862 0.132 326.643);
  --accent-foreground: oklch(0.151 0.07 328.363);
  --destructive: oklch(0.646 0.223 35.137);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.112 306.93);
  --chart-1: oklch(0.825 0.112 306.93);
  --chart-2: oklch(0.794 0.108 283.668);
  --chart-3: oklch(0.862 0.132 326.643);
  --chart-4: oklch(0.835 0.085 284.401);
  --chart-5: oklch(0.824 0.116 306.878);
}