Sympathetic for shadcn/ui

Sympathetic is a shadcn/ui theme built around a yellow primary color (#b4a931) with muted light yellow accents (#d5d3b8). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the yellow primary (#b4a931) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fdfdfbsnow
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfbsnow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#b4a931goldenrod
#b4a931goldenrod
Primary foreground
#141305black
#141305black
Secondary
#deddcegainsboro
#2d2c1fdarkslategray
Secondary foreground
#494732darkolivegreen
#cbc9b4silver
Muted
#f5f5efwhitesmoke
#100f0ablack
Muted foreground
#5e5d5adimgray
#a5a5a1darkgray
Accent
#d5d3b8lightgrey
#424029darkslategray
Accent foreground
#3a3822darkslategray
#dad8c3lightgrey
Destructive
#b30600darkred
#eb0800red
Destructive foreground
#ffe6e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4a931goldenrod
#b4a931goldenrod

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.67:1AAA
Primary button7.71:1AAA
Secondary button6.86:1AA
Muted text6.00:1AA
Accent7.83:1AAA
Destructive6.04:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.71:1AAA
Secondary button8.41:1AAA
Muted text7.75:1AAA
Accent7.27:1AAA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 102.252);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.968 0.007 102.332);
  --muted-foreground: oklch(0.479 0.005 102.392);
  --popover: oklch(0.994 0.002 102.252);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.002 102.252);
  --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.724 0.136 104.043);
  --primary-foreground: oklch(0.183 0.026 104.269);
  --secondary: oklch(0.894 0.019 102.555);
  --secondary-foreground: oklch(0.393 0.034 103.465);
  --accent: oklch(0.862 0.036 102.864);
  --accent-foreground: oklch(0.336 0.036 103.691);
  --destructive: oklch(0.482 0.195 29.639);
  --destructive-foreground: oklch(0.946 0.027 20.021);
  --ring: oklch(0.724 0.136 104.043);
  --chart-1: oklch(0.724 0.136 104.043);
  --chart-2: oklch(0.894 0.019 102.555);
  --chart-3: oklch(0.862 0.036 102.864);
  --chart-4: oklch(0.914 0.015 102.485);
  --chart-5: oklch(0.733 0.14 103.998);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.011 103.177);
  --muted-foreground: oklch(0.72 0.005 102.321);
  --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.724 0.136 104.043);
  --primary-foreground: oklch(0.183 0.026 104.269);
  --secondary: oklch(0.29 0.022 103.327);
  --secondary-foreground: oklch(0.831 0.029 102.756);
  --accent: oklch(0.368 0.038 103.65);
  --accent-foreground: oklch(0.879 0.029 102.728);
  --destructive: oklch(0.591 0.24 29.522);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.724 0.136 104.043);
  --chart-1: oklch(0.724 0.136 104.043);
  --chart-2: oklch(0.29 0.022 103.327);
  --chart-3: oklch(0.368 0.038 103.65);
  --chart-4: oklch(0.325 0.025 103.366);
  --chart-5: oklch(0.733 0.14 103.998);
}