Sympathetic for shadcn/ui

Sympathetic is a shadcn/ui theme built around a vivid light purple primary color (#fba7ec) with vivid light cyan accents (#a7ecfb). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#fba7ec) on a purple-tinted background (#0f060d).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0f060dblack
Foreground
#000000black
#fbf9fasnow
Card
#faf4f9whitesmoke
#120710black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcf8fbsnow
#0f060dblack
Popover foreground
#000000black
#fbf9fasnow
Primary
#fba7ecplum
#fba7ecplum
Primary foreground
#6b0558purple
#6b0558purple
Secondary
#ecfba7palegoldenrod
#ecfba7palegoldenrod
Secondary foreground
#080a00black
#080a00black
Muted
#eeeeecwhitesmoke
#131311black
Muted foreground
#62635fdimgray
#9fa09cdarkgray
Accent
#a7ecfbpaleturquoise
#a7ecfbpaleturquoise
Accent foreground
#05586bteal
#05586bteal
Destructive
#8a2500darkred
#ff5e24tomato
Destructive foreground
#ffcebdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fba7ecplum
#fba7ecplum

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.42:1AAA
Primary button6.63:1AA
Secondary button17.93:1AAA
Muted text5.21:1AA
Accent6.11:1AA
Destructive6.34:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.26:1AAA
Primary button6.63:1AA
Secondary button17.93:1AAA
Muted text7.08:1AAA
Accent6.11:1AA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 331.496);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.003 114.88);
  --muted-foreground: oklch(0.497 0.006 115.051);
  --popover: oklch(0.983 0.006 331.496);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.009 331.541);
  --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.832 0.13 333.474);
  --primary-foreground: oklch(0.361 0.154 338.071);
  --secondary: oklch(0.957 0.107 116.924);
  --secondary-foreground: oklch(0.137 0.029 115.809);
  --accent: oklch(0.902 0.071 213.178);
  --accent-foreground: oklch(0.427 0.076 219.113);
  --destructive: oklch(0.422 0.142 36.766);
  --destructive-foreground: oklch(0.89 0.06 40.941);
  --ring: oklch(0.832 0.13 333.474);
  --chart-1: oklch(0.832 0.13 333.474);
  --chart-2: oklch(0.957 0.107 116.924);
  --chart-3: oklch(0.902 0.071 213.178);
  --chart-4: oklch(0.964 0.09 116.565);
  --chart-5: oklch(0.831 0.134 333.539);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.024 333.132);
  --foreground: oklch(0.984 0.003 331.445);
  --muted: oklch(0.185 0.004 115.253);
  --muted-foreground: oklch(0.704 0.006 114.971);
  --popover: oklch(0.139 0.024 333.132);
  --popover-foreground: oklch(0.984 0.003 331.445);
  --card: oklch(0.152 0.028 333.628);
  --card-foreground: oklch(0.992 0.001 331.426);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.832 0.13 333.474);
  --primary-foreground: oklch(0.361 0.154 338.071);
  --secondary: oklch(0.957 0.107 116.924);
  --secondary-foreground: oklch(0.137 0.029 115.809);
  --accent: oklch(0.902 0.071 213.178);
  --accent-foreground: oklch(0.427 0.076 219.113);
  --destructive: oklch(0.687 0.207 38.218);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.832 0.13 333.474);
  --chart-1: oklch(0.832 0.13 333.474);
  --chart-2: oklch(0.957 0.107 116.924);
  --chart-3: oklch(0.902 0.071 213.178);
  --chart-4: oklch(0.964 0.09 116.565);
  --chart-5: oklch(0.831 0.134 333.539);
}