Sympathetic for shadcn/ui

Sympathetic is a shadcn/ui theme built around a deep indigo primary color (#262343) with deep violet accents (#362343). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#262343) on an indigo-tinted background (#07060e).

Color palette

TokenLightDark
Background
#ffffffwhite
#07060eblack
Foreground
#020209black
#f6f6f9whitesmoke
Card
#fcfcfcsnow
#090812black
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#fcfcfcsnow
#090812black
Popover foreground
#010104black
#f9f9fbghostwhite
Primary
#262343darkslategray
#262343darkslategray
Primary foreground
#bfbcdclightsteelblue
#bfbcdclightsteelblue
Secondary
#233043darkslategray
#233043darkslategray
Secondary foreground
#bcc9dclightsteelblue
#bcc9dclightsteelblue
Muted
#d5deecgainsboro
#131c2ablack
Muted foreground
#3b434fdarkslategray
#b0b8c4silver
Accent
#362343darkslategray
#362343darkslategray
Accent foreground
#cfbcdcthistle
#cfbcdcthistle
Destructive
#d6410aorangered
#f45115orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#262343darkslategray
#262343darkslategray

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.39:1AAA
Primary button8.13:1AAA
Secondary button7.96:1AAA
Muted text7.37:1AAA
Accent8.02:1AAA
Destructive4.54:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.96:1AAA
Primary button8.13:1AAA
Secondary button7.96:1AAA
Muted text8.52:1AAA
Accent8.02:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.091 0.026 287.362);
  --muted: oklch(0.898 0.021 258.359);
  --muted-foreground: oklch(0.379 0.024 258.369);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.072 0.021 287.362);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.072 0.021 287.362);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.277 0.057 286.603);
  --primary-foreground: oklch(0.809 0.044 289.957);
  --secondary: oklch(0.306 0.039 258.308);
  --secondary-foreground: oklch(0.832 0.03 258.369);
  --accent: oklch(0.295 0.061 310.744);
  --accent-foreground: oklch(0.822 0.048 311.924);
  --destructive: oklch(0.587 0.194 36.519);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.057 286.603);
  --chart-1: oklch(0.277 0.057 286.603);
  --chart-2: oklch(0.306 0.039 258.308);
  --chart-3: oklch(0.295 0.061 310.744);
  --chart-4: oklch(0.334 0.043 258.304);
  --chart-5: oklch(0.274 0.063 286.026);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.019 288.91);
  --foreground: oklch(0.974 0.004 290.939);
  --muted: oklch(0.226 0.03 258.302);
  --muted-foreground: oklch(0.78 0.02 258.361);
  --popover: oklch(0.14 0.022 288.208);
  --popover-foreground: oklch(0.983 0.003 290.965);
  --card: oklch(0.14 0.022 288.208);
  --card-foreground: oklch(0.983 0.003 290.965);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.277 0.057 286.603);
  --primary-foreground: oklch(0.809 0.044 289.957);
  --secondary: oklch(0.306 0.039 258.308);
  --secondary-foreground: oklch(0.832 0.03 258.369);
  --accent: oklch(0.295 0.061 310.744);
  --accent-foreground: oklch(0.822 0.048 311.924);
  --destructive: oklch(0.654 0.209 37.251);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.057 286.603);
  --chart-1: oklch(0.277 0.057 286.603);
  --chart-2: oklch(0.306 0.039 258.308);
  --chart-3: oklch(0.295 0.061 310.744);
  --chart-4: oklch(0.334 0.043 258.304);
  --chart-5: oklch(0.274 0.063 286.026);
}