Wrong for shadcn/ui

Wrong is a shadcn/ui theme built around a deep red primary color (#401411) with deep indigo accents (#141140). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#401411) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#fefbfbsnow
#070303black
Foreground
#110404black
#fdfcfcsnow
Card
#fefbfbsnow
#070303black
Card foreground
#110404black
#fdfcfcsnow
Popover
#fefbfbsnow
#070303black
Popover foreground
#110404black
#fdfcfcsnow
Primary
#401411black
#401411black
Primary foreground
#e5a29etan
#e5a29etan
Secondary
#114014darkgreen
#114014darkgreen
Secondary foreground
#9ee5a2lightgreen
#9ee5a2lightgreen
Muted
#cfe8d0gainsboro
#173018black
Muted foreground
#445545darkslategray
#aabbabdarkgray
Accent
#141140midnightblue
#141140midnightblue
Accent foreground
#a29ee5lightsteelblue
#a29ee5lightsteelblue
Destructive
#bf3e03firebrick
#ec4d04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#401411black
#401411black

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button7.53:1AAA
Secondary button7.97:1AAA
Muted text6.11:1AA
Accent7.22:1AAA
Destructive5.36:1AA
Dark mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.53:1AAA
Secondary button7.97:1AAA
Muted text7.04:1AAA
Accent7.22:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 20.927);
  --foreground: oklch(0.133 0.026 25.843);
  --muted: oklch(0.906 0.041 146.602);
  --muted-foreground: oklch(0.43 0.033 146.283);
  --popover: oklch(0.991 0.003 20.927);
  --popover-foreground: oklch(0.133 0.026 25.843);
  --card: oklch(0.991 0.003 20.927);
  --card-foreground: oklch(0.133 0.026 25.843);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.262 0.071 26.148);
  --primary-foreground: oklch(0.776 0.081 22.469);
  --secondary: oklch(0.33 0.089 143.971);
  --secondary-foreground: oklch(0.859 0.117 145.667);
  --accent: oklch(0.217 0.087 278.59);
  --accent-foreground: oklch(0.73 0.102 285.864);
  --destructive: oklch(0.545 0.174 38.836);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.262 0.071 26.148);
  --chart-1: oklch(0.262 0.071 26.148);
  --chart-2: oklch(0.33 0.089 143.971);
  --chart-3: oklch(0.217 0.087 278.59);
  --chart-4: oklch(0.369 0.102 143.881);
  --chart-5: oklch(0.262 0.074 26.476);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 23.179);
  --foreground: oklch(0.992 0.001 20.9);
  --muted: oklch(0.282 0.053 145.072);
  --muted-foreground: oklch(0.774 0.029 146.683);
  --popover: oklch(0.109 0.01 23.179);
  --popover-foreground: oklch(0.992 0.001 20.9);
  --card: oklch(0.109 0.01 23.179);
  --card-foreground: oklch(0.992 0.001 20.9);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.262 0.071 26.148);
  --primary-foreground: oklch(0.776 0.081 22.469);
  --secondary: oklch(0.33 0.089 143.971);
  --secondary-foreground: oklch(0.859 0.117 145.667);
  --accent: oklch(0.217 0.087 278.59);
  --accent-foreground: oklch(0.73 0.102 285.864);
  --destructive: oklch(0.637 0.206 38.361);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.262 0.071 26.148);
  --chart-1: oklch(0.262 0.071 26.148);
  --chart-2: oklch(0.33 0.089 143.971);
  --chart-3: oklch(0.217 0.087 278.59);
  --chart-4: oklch(0.369 0.102 143.881);
  --chart-5: oklch(0.262 0.074 26.476);
}