Sympathetic for shadcn/ui

Sympathetic is a shadcn/ui theme built around a light violet primary color (#b698f0) with light purple accents (#e298f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#b698f0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040208black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#040208black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040208black
#ffffffwhite
Primary
#b698f0plum
#b698f0plum
Primary foreground
#210b4cmidnightblue
#210b4cmidnightblue
Secondary
#98a7f0lightsteelblue
#98a7f0lightsteelblue
Secondary foreground
#0b164cmidnightblue
#0b164cmidnightblue
Muted
#dbdde6gainsboro
#191b24black
Muted foreground
#44485adarkslategray
#a5a9bbdarkgray
Accent
#e298f0plum
#e298f0plum
Accent foreground
#410b4cmidnightblue
#410b4cmidnightblue
Destructive
#711e0amaroon
#eb4319orangered
Destructive foreground
#f8c2b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b698f0plum
#b698f0plum

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button7.19:1AAA
Secondary button7.40:1AAA
Muted text6.67:1AA
Accent7.26:1AAA
Destructive7.07:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.19:1AAA
Secondary button7.40:1AAA
Muted text7.33:1AAA
Accent7.26:1AAA
Destructive3.92: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.099 0.022 302.06);
  --muted: oklch(0.899 0.012 277.074);
  --muted-foreground: oklch(0.404 0.031 276.059);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.022 302.06);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.022 302.06);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.741 0.127 298.59);
  --primary-foreground: oklch(0.233 0.109 290.372);
  --secondary: oklch(0.745 0.107 274.839);
  --secondary-foreground: oklch(0.233 0.101 268.283);
  --accent: oklch(0.783 0.144 320.751);
  --accent-foreground: oklch(0.281 0.118 320.188);
  --destructive: oklch(0.368 0.119 34.556);
  --destructive-foreground: oklch(0.858 0.066 34.421);
  --ring: oklch(0.741 0.127 298.59);
  --chart-1: oklch(0.741 0.127 298.59);
  --chart-2: oklch(0.745 0.107 274.839);
  --chart-3: oklch(0.783 0.144 320.751);
  --chart-4: oklch(0.779 0.092 275.324);
  --chart-5: oklch(0.738 0.132 298.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.017 276.087);
  --muted-foreground: oklch(0.736 0.027 276.73);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.741 0.127 298.59);
  --primary-foreground: oklch(0.233 0.109 290.372);
  --secondary: oklch(0.745 0.107 274.839);
  --secondary-foreground: oklch(0.233 0.101 268.283);
  --accent: oklch(0.783 0.144 320.751);
  --accent-foreground: oklch(0.281 0.118 320.188);
  --destructive: oklch(0.625 0.211 34.217);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.741 0.127 298.59);
  --chart-1: oklch(0.741 0.127 298.59);
  --chart-2: oklch(0.745 0.107 274.839);
  --chart-3: oklch(0.783 0.144 320.751);
  --chart-4: oklch(0.779 0.092 275.324);
  --chart-5: oklch(0.738 0.132 298.45);
}