Differential for shadcn/ui

Differential is a shadcn/ui theme built around a vivid light pink primary color (#fbc6e0) with muted light pink accents (#d8c5cf). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid light pink primary (#fbc6e0) on a pink-tinted background (#0c0408).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0c0408black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf8fasnow
#0c0408black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf8fasnow
#0c0408black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fbc6e0pink
#fbc6e0pink
Primary foreground
#850a47brown
#850a47brown
Secondary
#e7dfe3gainsboro
#342d30darkslategray
Secondary foreground
#54404adarkslategray
#cdc6c9silver
Muted
#f5f0f2whitesmoke
#0f0a0dblack
Muted foreground
#4c3842darkslategray
#c7b3bdsilver
Accent
#d8c5cfthistle
#4c3942darkslategray
Accent foreground
#402b36darkslategray
#e0d6dbgainsboro
Destructive
#812309maroon
#f0572dtomato
Destructive foreground
#fbcec1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbc6e0pink
#fbc6e0pink

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button6.68:1AA
Secondary button7.26:1AAA
Muted text9.51:1AAA
Accent7.93:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.68:1AA
Secondary button7.99:1AAA
Muted text9.91:1AAA
Accent7.52:1AAA
Destructive6.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 345.259);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.007 345.327);
  --muted-foreground: oklch(0.368 0.032 347.304);
  --popover: oklch(0.983 0.004 345.259);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 345.259);
  --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.881 0.068 347.07);
  --primary-foreground: oklch(0.404 0.158 358.694);
  --secondary: oklch(0.911 0.01 345.429);
  --secondary-foreground: oklch(0.396 0.033 347.197);
  --accent: oklch(0.842 0.024 345.873);
  --accent-foreground: oklch(0.318 0.034 347.771);
  --destructive: oklch(0.403 0.133 35.066);
  --destructive-foreground: oklch(0.886 0.054 35.96);
  --ring: oklch(0.881 0.068 347.07);
  --chart-1: oklch(0.881 0.068 347.07);
  --chart-2: oklch(0.911 0.01 345.429);
  --chart-3: oklch(0.842 0.024 345.873);
  --chart-4: oklch(0.935 0.007 345.345);
  --chart-5: oklch(0.88 0.071 347.137);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.023 345.224);
  --foreground: oklch(0.992 0.002 345.186);
  --muted: oklch(0.154 0.011 346.9);
  --muted-foreground: oklch(0.786 0.026 346);
  --popover: oklch(0.122 0.023 345.224);
  --popover-foreground: oklch(0.992 0.002 345.186);
  --card: oklch(0.122 0.023 345.224);
  --card-foreground: oklch(0.992 0.002 345.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.881 0.068 347.07);
  --primary-foreground: oklch(0.404 0.158 358.694);
  --secondary: oklch(0.306 0.011 346.092);
  --secondary-foreground: oklch(0.833 0.01 345.448);
  --accent: oklch(0.368 0.03 347.16);
  --accent-foreground: oklch(0.886 0.013 345.518);
  --destructive: oklch(0.657 0.196 35.844);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.881 0.068 347.07);
  --chart-1: oklch(0.881 0.068 347.07);
  --chart-2: oklch(0.306 0.011 346.092);
  --chart-3: oklch(0.368 0.03 347.16);
  --chart-4: oklch(0.335 0.013 346.122);
  --chart-5: oklch(0.88 0.071 347.137);
}