Wrong for shadcn/ui

Wrong is a shadcn/ui theme built around a light indigo primary color (#dcdcf9) with light green accents (#dcf9dc). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the light indigo primary (#dcdcf9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#000000black
Foreground
#010109black
#f9f9fbghostwhite
Card
#f8f8fcghostwhite
#000000black
Card foreground
#010109black
#f9f9fbghostwhite
Popover
#f8f8fcghostwhite
#000000black
Popover foreground
#010109black
#f9f9fbghostwhite
Primary
#dcdcf9lavender
#dcdcf9lavender
Primary foreground
#2c2fddroyalblue
#2c2fddroyalblue
Secondary
#f9dcdcmistyrose
#f9dcdcmistyrose
Secondary foreground
#8c1719darkred
#8c1719darkred
Muted
#ebe0e0gainsboro
#1f1414black
Muted foreground
#5c5152dimgray
#aea3a3darkgray
Accent
#dcf9dcbeige
#dcf9dcbeige
Accent foreground
#093509darkgreen
#093509darkgreen
Destructive
#690707maroon
#f02828crimson
Destructive foreground
#f9a9a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dcdcf9lavender
#dcdcf9lavender

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button6.13:1AA
Secondary button7.24:1AAA
Muted text5.91:1AA
Accent12.24:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button6.13:1AA
Secondary button7.24:1AAA
Muted text7.32:1AAA
Accent12.24:1AAA
Destructive4.15: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.98 0.006 285.51);
  --foreground: oklch(0.083 0.032 275.355);
  --muted: oklch(0.916 0.012 16.201);
  --muted-foreground: oklch(0.447 0.014 16.528);
  --popover: oklch(0.98 0.006 285.51);
  --popover-foreground: oklch(0.083 0.032 275.355);
  --card: oklch(0.98 0.006 285.51);
  --card-foreground: oklch(0.083 0.032 275.355);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.904 0.039 284.813);
  --primary-foreground: oklch(0.452 0.25 270.012);
  --secondary: oklch(0.919 0.033 16.614);
  --secondary-foreground: oklch(0.416 0.152 26.346);
  --accent: oklch(0.954 0.049 144.731);
  --accent-foreground: oklch(0.288 0.085 142.761);
  --destructive: oklch(0.332 0.129 28.056);
  --destructive-foreground: oklch(0.813 0.095 19.32);
  --ring: oklch(0.904 0.039 284.813);
  --chart-1: oklch(0.904 0.039 284.813);
  --chart-2: oklch(0.919 0.033 16.614);
  --chart-3: oklch(0.954 0.049 144.731);
  --chart-4: oklch(0.949 0.02 16.35);
  --chart-5: oklch(0.903 0.041 284.776);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.002 285.588);
  --muted: oklch(0.206 0.018 17.598);
  --muted-foreground: oklch(0.725 0.012 16.271);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.002 285.588);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.002 285.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.904 0.039 284.813);
  --primary-foreground: oklch(0.452 0.25 270.012);
  --secondary: oklch(0.919 0.033 16.614);
  --secondary-foreground: oklch(0.416 0.152 26.346);
  --accent: oklch(0.954 0.049 144.731);
  --accent-foreground: oklch(0.288 0.085 142.761);
  --destructive: oklch(0.615 0.231 27.465);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.904 0.039 284.813);
  --chart-1: oklch(0.904 0.039 284.813);
  --chart-2: oklch(0.919 0.033 16.614);
  --chart-3: oklch(0.954 0.049 144.731);
  --chart-4: oklch(0.949 0.02 16.35);
  --chart-5: oklch(0.903 0.041 284.776);
}