Synod for shadcn/ui

Synod is a shadcn/ui theme built around a pink primary color (#923f5d) with blue accents (#3f5d92). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#923f5d) on a neutral background (#080204).

Color palette

TokenLightDark
Background
#fefbfcsnow
#080204black
Foreground
#000000black
#fbf9fasnow
Card
#fefbfcsnow
#080204black
Card foreground
#000000black
#fbf9fasnow
Popover
#fefbfcsnow
#080204black
Popover foreground
#000000black
#fbf9fasnow
Primary
#923f5dsienna
#923f5dsienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5d923folivedrab
#5d923folivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e1e9ddgainsboro
#1a2216black
Muted foreground
#545f4edarkolivegreen
#a6b1a0darkgray
Accent
#3f5d92darkslateblue
#3f5d92darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7a2901saddlebrown
#fe712atomato
Destructive foreground
#ffc9aepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#923f5dsienna
#923f5dsienna

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button6.78:1AA
Secondary button3.70:1AA Large
Muted text5.41:1AA
Accent6.54:1AA
Destructive6.63:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button6.78:1AA
Secondary button3.70:1AA Large
Muted text7.31:1AAA
Accent6.54:1AA
Destructive7.58:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 352.647);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.925 0.018 133.731);
  --muted-foreground: oklch(0.472 0.03 134.027);
  --popover: oklch(0.991 0.002 352.647);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 352.647);
  --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.487 0.117 359.391);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.605 0.129 135.475);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.481 0.093 260.766);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.398 0.121 41.247);
  --destructive-foreground: oklch(0.876 0.072 47.885);
  --ring: oklch(0.487 0.117 359.391);
  --chart-1: oklch(0.487 0.117 359.391);
  --chart-2: oklch(0.605 0.129 135.475);
  --chart-3: oklch(0.481 0.093 260.766);
  --chart-4: oklch(0.637 0.136 135.493);
  --chart-5: oklch(0.487 0.125 359.965);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.019 352.209);
  --foreground: oklch(0.984 0.002 352.634);
  --muted: oklch(0.241 0.025 134.33);
  --muted-foreground: oklch(0.747 0.027 133.838);
  --popover: oklch(0.106 0.019 352.209);
  --popover-foreground: oklch(0.984 0.002 352.634);
  --card: oklch(0.106 0.019 352.209);
  --card-foreground: oklch(0.984 0.002 352.634);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.487 0.117 359.391);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.605 0.129 135.475);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.481 0.093 260.766);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.71 0.19 43.38);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.487 0.117 359.391);
  --chart-1: oklch(0.487 0.117 359.391);
  --chart-2: oklch(0.605 0.129 135.475);
  --chart-3: oklch(0.481 0.093 260.766);
  --chart-4: oklch(0.637 0.136 135.493);
  --chart-5: oklch(0.487 0.125 359.965);
}