Married for shadcn/ui

Married is a shadcn/ui theme built around a violet primary color (#a37bc6) with muted violet accents (#bbaec6). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the violet primary (#a37bc6) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0b0410black
Foreground
#0d0514black
#faf9fasnow
Card
#fdfbfdsnow
#0b0410black
Card foreground
#0d0514black
#faf9fasnow
Popover
#fdfbfdsnow
#0b0410black
Popover foreground
#0d0514black
#faf9fasnow
Primary
#a37bc6mediumpurple
#a37bc6mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#d4d0d7lightgrey
#1c1721black
Secondary foreground
#3b363fdarkslategray
#b6a7c3silver
Muted
#e3dceagainsboro
#1d1523black
Muted foreground
#4f4e50darkslategray
#b0afb1darkgray
Accent
#bbaec6silver
#31243ddarkslategray
Accent foreground
#221c27black
#cabcd7thistle
Destructive
#790f0bmaroon
#ec3832crimson
Destructive foreground
#f9c0belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a37bc6mediumpurple
#a37bc6mediumpurple

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.20:1AA
Secondary button7.73:1AAA
Muted text6.18:1AA
Accent7.92:1AAA
Destructive7.04:1AAA
Dark mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button6.20:1AA
Secondary button7.79:1AAA
Muted text8.12:1AAA
Accent8.05:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 309.755);
  --foreground: oklch(0.14 0.036 308.306);
  --muted: oklch(0.904 0.02 309.56);
  --muted-foreground: oklch(0.426 0.003 309.72);
  --popover: oklch(0.991 0.003 309.755);
  --popover-foreground: oklch(0.14 0.036 308.306);
  --card: oklch(0.991 0.003 309.755);
  --card-foreground: oklch(0.14 0.036 308.306);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.117 307.933);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.863 0.01 309.667);
  --secondary-foreground: oklch(0.342 0.017 309.279);
  --accent: oklch(0.77 0.036 309.328);
  --accent-foreground: oklch(0.236 0.023 308.823);
  --destructive: oklch(0.371 0.14 28.616);
  --destructive-foreground: oklch(0.858 0.066 20.812);
  --ring: oklch(0.651 0.117 307.933);
  --chart-1: oklch(0.651 0.117 307.933);
  --chart-2: oklch(0.863 0.01 309.667);
  --chart-3: oklch(0.77 0.036 309.328);
  --chart-4: oklch(0.888 0.008 309.691);
  --chart-5: oklch(0.647 0.126 307.77);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.032 309.664);
  --foreground: oklch(0.984 0.002 309.769);
  --muted: oklch(0.212 0.029 308.404);
  --muted-foreground: oklch(0.756 0.002 309.753);
  --popover: oklch(0.129 0.032 309.664);
  --popover-foreground: oklch(0.984 0.002 309.769);
  --card: oklch(0.129 0.032 309.664);
  --card-foreground: oklch(0.984 0.002 309.769);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.651 0.117 307.933);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.215 0.022 308.76);
  --secondary-foreground: oklch(0.75 0.043 309.219);
  --accent: oklch(0.287 0.048 308.074);
  --accent-foreground: oklch(0.815 0.042 309.279);
  --destructive: oklch(0.619 0.217 27.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.651 0.117 307.933);
  --chart-1: oklch(0.651 0.117 307.933);
  --chart-2: oklch(0.215 0.022 308.76);
  --chart-3: oklch(0.287 0.048 308.074);
  --chart-4: oklch(0.245 0.027 308.675);
  --chart-5: oklch(0.647 0.126 307.77);
}