Church for shadcn/ui

Church is a shadcn/ui theme built around a vivid deep green primary color (#057024) with vivid deep purple accents (#700552). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid deep green primary (#057024) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#f8fcf9mintcream
#030704black
Foreground
#051008black
#f8fcf9mintcream
Card
#f8fcf9mintcream
#030704black
Card foreground
#051008black
#f8fcf9mintcream
Popover
#f8fcf9mintcream
#030704black
Popover foreground
#051008black
#f8fcf9mintcream
Primary
#057024darkgreen
#057024darkgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#700552purple
#700552purple
Secondary foreground
#fbace5pink
#fbace5pink
Muted
#f4ecf1whitesmoke
#130b11black
Muted foreground
#5b5259dimgray
#ada4aadarkgray
Accent
#700552purple
#700552purple
Accent foreground
#fbace5pink
#fbace5pink
Destructive
#870703darkred
#e10c05red
Destructive foreground
#fec0belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#057024darkgreen
#057024darkgreen

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button6.26:1AA
Secondary button6.61:1AA
Muted text6.46:1AA
Accent6.61:1AA
Destructive6.54:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button6.26:1AA
Secondary button6.61:1AA
Muted text7.98:1AAA
Accent6.61:1AA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 155.095);
  --foreground: oklch(0.157 0.025 153.661);
  --muted: oklch(0.95 0.012 335.416);
  --muted-foreground: oklch(0.45 0.015 335.783);
  --popover: oklch(0.987 0.005 155.095);
  --popover-foreground: oklch(0.157 0.025 153.661);
  --card: oklch(0.987 0.005 155.095);
  --card-foreground: oklch(0.157 0.025 153.661);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.475 0.142 146.251);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.367 0.152 344.182);
  --secondary-foreground: oklch(0.838 0.116 337.544);
  --accent: oklch(0.367 0.152 344.182);
  --accent-foreground: oklch(0.838 0.116 337.544);
  --destructive: oklch(0.395 0.157 29.513);
  --destructive-foreground: oklch(0.863 0.071 20.904);
  --ring: oklch(0.475 0.142 146.251);
  --chart-1: oklch(0.475 0.142 146.251);
  --chart-2: oklch(0.367 0.152 344.182);
  --chart-3: oklch(0.367 0.152 344.182);
  --chart-4: oklch(0.4 0.166 344.385);
  --chart-5: oklch(0.48 0.145 146.073);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.014 154.786);
  --foreground: oklch(0.987 0.005 155.103);
  --muted: oklch(0.165 0.018 337.099);
  --muted-foreground: oklch(0.728 0.013 335.519);
  --popover: oklch(0.121 0.014 154.786);
  --popover-foreground: oklch(0.987 0.005 155.103);
  --card: oklch(0.121 0.014 154.786);
  --card-foreground: oklch(0.987 0.005 155.103);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.475 0.142 146.251);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.367 0.152 344.182);
  --secondary-foreground: oklch(0.838 0.116 337.544);
  --accent: oklch(0.367 0.152 344.182);
  --accent-foreground: oklch(0.838 0.116 337.544);
  --destructive: oklch(0.574 0.232 29.385);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.475 0.142 146.251);
  --chart-1: oklch(0.475 0.142 146.251);
  --chart-2: oklch(0.367 0.152 344.182);
  --chart-3: oklch(0.367 0.152 344.182);
  --chart-4: oklch(0.4 0.166 344.385);
  --chart-5: oklch(0.48 0.145 146.073);
}