Communion for shadcn/ui

Communion is a shadcn/ui theme built around a light orange primary color (#f7e8de) with muted light orange accents (#eceae9). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the light orange primary (#f7e8de) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf9f7snow
#000000black
Foreground
#110904black
#faf7f5whitesmoke
Card
#fdf9f7snow
#000000black
Card foreground
#110904black
#faf7f5whitesmoke
Popover
#fdf9f7snow
#000000black
Popover foreground
#110904black
#faf7f5whitesmoke
Primary
#f7e8deantiquewhite
#f7e8deantiquewhite
Primary foreground
#85461esaddlebrown
#85461esaddlebrown
Secondary
#eceae9linen
#1c1917black
Secondary foreground
#59504adarkolivegreen
#bbb1aadarkgray
Muted
#f0ecealinen
#15110fblack
Muted foreground
#48413ddarkslategray
#c2bbb7silver
Accent
#eceae9linen
#1c1917black
Accent foreground
#59504adarkolivegreen
#bbb1aadarkgray
Destructive
#870c03darkred
#fa2819orangered
Destructive foreground
#fec2belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7e8deantiquewhite
#f7e8deantiquewhite

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.87:1AAA
Primary button6.05:1AA
Secondary button6.56:1AA
Muted text8.55:1AAA
Accent6.56:1AA
Destructive6.57:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button6.05:1AA
Secondary button8.31:1AAA
Muted text9.90:1AAA
Accent8.31:1AAA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 54.441);
  --foreground: oklch(0.147 0.019 60.228);
  --muted: oklch(0.947 0.005 54.431);
  --muted-foreground: oklch(0.381 0.011 54.104);
  --popover: oklch(0.985 0.005 54.441);
  --popover-foreground: oklch(0.147 0.019 60.228);
  --card: oklch(0.985 0.005 54.441);
  --card-foreground: oklch(0.147 0.019 60.228);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.94 0.022 54.19);
  --primary-foreground: oklch(0.464 0.101 49.674);
  --secondary: oklch(0.939 0.003 54.46);
  --secondary-foreground: oklch(0.438 0.015 54.04);
  --accent: oklch(0.939 0.003 54.46);
  --accent-foreground: oklch(0.438 0.015 54.04);
  --destructive: oklch(0.397 0.155 30.084);
  --destructive-foreground: oklch(0.867 0.069 23.269);
  --ring: oklch(0.94 0.022 54.19);
  --chart-1: oklch(0.94 0.022 54.19);
  --chart-2: oklch(0.939 0.003 54.46);
  --chart-3: oklch(0.939 0.003 54.46);
  --chart-4: oklch(0.962 0.002 54.478);
  --chart-5: oklch(0.94 0.023 54.175);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.004 54.453);
  --muted: oklch(0.182 0.008 53.931);
  --muted-foreground: oklch(0.798 0.009 54.345);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.004 54.453);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.977 0.004 54.453);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.94 0.022 54.19);
  --primary-foreground: oklch(0.464 0.101 49.674);
  --secondary: oklch(0.216 0.007 54.075);
  --secondary-foreground: oklch(0.766 0.015 54.238);
  --accent: oklch(0.216 0.007 54.075);
  --accent-foreground: oklch(0.766 0.015 54.238);
  --destructive: oklch(0.632 0.241 29.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.94 0.022 54.19);
  --chart-1: oklch(0.94 0.022 54.19);
  --chart-2: oklch(0.216 0.007 54.075);
  --chart-3: oklch(0.216 0.007 54.075);
  --chart-4: oklch(0.249 0.009 54.037);
  --chart-5: oklch(0.94 0.023 54.175);
}