Synod for shadcn/ui

Synod is a shadcn/ui theme built around an indigo primary color (#5638cc) with green accents (#38cc56). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#5638cc) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#05040bblack
Foreground
#060311black
#ffffffwhite
Card
#f9f8fcghostwhite
#05040bblack
Card foreground
#060311black
#ffffffwhite
Popover
#f9f8fcghostwhite
#05040bblack
Popover foreground
#060311black
#ffffffwhite
Primary
#5638ccslateblue
#5638ccslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cc5638chocolate
#cc5638chocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5d1cdlightgrey
#321f1ablack
Muted foreground
#54504fdarkslategray
#b0acabdarkgray
Accent
#38cc56limegreen
#38cc56limegreen
Accent foreground
#0c2d12black
#0c2d12black
Destructive
#a3330asaddlebrown
#f26836tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5638ccslateblue
#5638ccslateblue

Contrast

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

Light mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button7.40:1AAA
Secondary button4.24:1AA Large
Muted text5.44:1AA
Accent7.08:1AAA
Destructive6.91:1AA
Dark mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button7.40:1AAA
Secondary button4.24:1AA Large
Muted text6.92:1AA
Accent7.08:1AAA
Destructive6.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 295.481);
  --foreground: oklch(0.119 0.034 292.919);
  --muted: oklch(0.877 0.023 34.299);
  --muted-foreground: oklch(0.435 0.005 34.3);
  --popover: oklch(0.981 0.005 295.481);
  --popover-foreground: oklch(0.119 0.034 292.919);
  --card: oklch(0.981 0.005 295.481);
  --card-foreground: oklch(0.119 0.034 292.919);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0.213 283.882);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.157 35.201);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.743 0.202 146.356);
  --accent-foreground: oklch(0.263 0.062 147.489);
  --destructive: oklch(0.484 0.154 37.282);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0.213 283.882);
  --chart-1: oklch(0.474 0.213 283.882);
  --chart-2: oklch(0.599 0.157 35.201);
  --chart-3: oklch(0.743 0.202 146.356);
  --chart-4: oklch(0.62 0.147 35.2);
  --chart-5: oklch(0.47 0.221 282.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.021 294.658);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.032 34.644);
  --muted-foreground: oklch(0.747 0.005 34.307);
  --popover: oklch(0.115 0.021 294.658);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.021 294.658);
  --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.474 0.213 283.882);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.599 0.157 35.201);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.743 0.202 146.356);
  --accent-foreground: oklch(0.263 0.062 147.489);
  --destructive: oklch(0.681 0.182 39.363);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.474 0.213 283.882);
  --chart-1: oklch(0.474 0.213 283.882);
  --chart-2: oklch(0.599 0.157 35.201);
  --chart-3: oklch(0.743 0.202 146.356);
  --chart-4: oklch(0.62 0.147 35.2);
  --chart-5: oklch(0.47 0.221 282.977);
}