Married for shadcn/ui

Married is a shadcn/ui theme built around a light purple primary color (#faf5f9) with muted light red accents (#c7bcbc). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the light purple primary (#faf5f9) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#0b040ablack
Foreground
#150413black
#fcf8fbsnow
Card
#fcf3fblavenderblush
#0f060eblack
Card foreground
#11030fblack
#fdfbfdsnow
Popover
#fcf3fblavenderblush
#0f060eblack
Popover foreground
#11030fblack
#fdfbfdsnow
Primary
#faf5f9whitesmoke
#faf5f9whitesmoke
Primary foreground
#7b4274dimgray
#7b4274dimgray
Secondary
#d9d9d9gainsboro
#3a2738darkslategray
Secondary foreground
#404040darkslategray
#d4bfd2thistle
Muted
#edd4d4gainsboro
#2b1228black
Muted foreground
#4f4a4adarkslategray
#b5b0b4darkgray
Accent
#c7bcbcsilver
#4e2d4adarkslategray
Accent foreground
#2c2525darkslategray
#e1cbdfthistle
Destructive
#741e01maroon
#fd5f2btomato
Destructive foreground
#febea9lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf5f9whitesmoke
#faf5f9whitesmoke

Contrast

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

Light mode
Text on background18.76:1AAA
Text on card18.50:1AAA
Primary button6.78:1AA
Secondary button7.32:1AAA
Muted text6.21:1AA
Accent8.14:1AAA
Destructive6.81:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.41:1AAA
Primary button6.78:1AA
Secondary button7.99:1AAA
Muted text8.05:1AAA
Accent7.71:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 329.248);
  --foreground: oklch(0.15 0.044 331.836);
  --muted: oklch(0.891 0.027 17.676);
  --muted-foreground: oklch(0.414 0.006 17.404);
  --popover: oklch(0.973 0.015 329.308);
  --popover-foreground: oklch(0.137 0.039 331.464);
  --card: oklch(0.973 0.015 329.308);
  --card-foreground: oklch(0.137 0.039 331.464);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.975 0.007 329.219);
  --primary-foreground: oklch(0.467 0.104 331.505);
  --secondary: oklch(0.885 0 180);
  --secondary-foreground: oklch(0.371 0 168.69);
  --accent: oklch(0.805 0.012 17.416);
  --accent-foreground: oklch(0.273 0.011 17.849);
  --destructive: oklch(0.373 0.125 36.581);
  --destructive-foreground: oklch(0.856 0.08 39.221);
  --ring: oklch(0.975 0.007 329.219);
  --chart-1: oklch(0.975 0.007 329.219);
  --chart-2: oklch(0.885 0 180);
  --chart-3: oklch(0.805 0.012 17.416);
  --chart-4: oklch(0.908 0 180);
  --chart-5: oklch(0.975 0.008 329.228);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 330.221);
  --foreground: oklch(0.983 0.006 329.205);
  --muted: oklch(0.23 0.053 331.609);
  --muted-foreground: oklch(0.763 0.008 329.25);
  --popover: oklch(0.139 0.025 330.733);
  --popover-foreground: oklch(0.991 0.003 329.168);
  --card: oklch(0.139 0.025 330.733);
  --card-foreground: oklch(0.991 0.003 329.168);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.975 0.007 329.219);
  --primary-foreground: oklch(0.467 0.104 331.505);
  --secondary: oklch(0.302 0.041 330.603);
  --secondary-foreground: oklch(0.827 0.035 329.618);
  --accent: oklch(0.349 0.066 331.164);
  --accent-foreground: oklch(0.867 0.036 329.604);
  --destructive: oklch(0.686 0.202 37.632);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.975 0.007 329.219);
  --chart-1: oklch(0.975 0.007 329.219);
  --chart-2: oklch(0.302 0.041 330.603);
  --chart-3: oklch(0.349 0.066 331.164);
  --chart-4: oklch(0.331 0.046 330.646);
  --chart-5: oklch(0.975 0.008 329.228);
}