Communicant for shadcn/ui

Communicant is a shadcn/ui theme built around a vivid deep red primary color (#300d03) with muted light red accents (#eae3e1). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the vivid deep red primary (#300d03) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf8f6snow
#000000black
Foreground
#0c0504black
#fdfcfcsnow
Card
#fdf8f6snow
#000000black
Card foreground
#0c0504black
#fdfcfcsnow
Popover
#fdf8f6snow
#000000black
Popover foreground
#0c0504black
#fdfcfcsnow
Primary
#300d03black
#300d03black
Primary foreground
#f78c6esalmon
#f78c6esalmon
Secondary
#eae3e1gainsboro
#191615black
Secondary foreground
#5a453fdarkolivegreen
#b5adaadarkgray
Muted
#e9e0ddgainsboro
#221916black
Muted foreground
#6e615edimgray
#a19491rosybrown
Accent
#eae3e1gainsboro
#191615black
Accent foreground
#5a453fdarkolivegreen
#b5adaadarkgray
Destructive
#843406saddlebrown
#e55b0bchocolate
Destructive foreground
#fcd6c0peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#300d03black
#300d03black

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.54:1AAA
Secondary button7.02:1AAA
Muted text4.56:1AA
Accent7.02:1AAA
Destructive6.28:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.54:1AAA
Secondary button8.16:1AAA
Muted text5.88:1AA
Accent8.16:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 35.991);
  --foreground: oklch(0.127 0.015 42.281);
  --muted: oklch(0.912 0.011 35.976);
  --muted-foreground: oklch(0.505 0.017 35.944);
  --popover: oklch(0.983 0.006 35.991);
  --popover-foreground: oklch(0.127 0.015 42.281);
  --card: oklch(0.983 0.006 35.991);
  --card-foreground: oklch(0.127 0.015 42.281);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.216 0.062 38.481);
  --primary-foreground: oklch(0.748 0.137 36.338);
  --secondary: oklch(0.921 0.008 35.984);
  --secondary-foreground: oklch(0.411 0.03 35.98);
  --accent: oklch(0.921 0.008 35.984);
  --accent-foreground: oklch(0.411 0.03 35.98);
  --destructive: oklch(0.431 0.121 44.153);
  --destructive-foreground: oklch(0.902 0.052 51.842);
  --ring: oklch(0.216 0.062 38.481);
  --chart-1: oklch(0.216 0.062 38.481);
  --chart-2: oklch(0.921 0.008 35.984);
  --chart-3: oklch(0.921 0.008 35.984);
  --chart-4: oklch(0.945 0.005 35.992);
  --chart-5: oklch(0.217 0.064 38.865);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 36.007);
  --muted: oklch(0.223 0.016 35.976);
  --muted-foreground: oklch(0.678 0.016 35.953);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 36.007);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 36.007);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.216 0.062 38.481);
  --primary-foreground: oklch(0.748 0.137 36.338);
  --secondary: oklch(0.203 0.004 35.957);
  --secondary-foreground: oklch(0.754 0.011 35.97);
  --accent: oklch(0.203 0.004 35.957);
  --accent-foreground: oklch(0.754 0.011 35.97);
  --destructive: oklch(0.642 0.187 42.783);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.216 0.062 38.481);
  --chart-1: oklch(0.216 0.062 38.481);
  --chart-2: oklch(0.203 0.004 35.957);
  --chart-3: oklch(0.203 0.004 35.957);
  --chart-4: oklch(0.236 0.005 35.954);
  --chart-5: oklch(0.217 0.064 38.865);
}