Comradeship for shadcn/ui

Comradeship is a shadcn/ui theme built around a red primary color (#b65949) with neutral gray accents (#e2e0df). The light mode uses a neutral background (#fefcfb). Dark mode keeps the red primary (#b65949) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefcfbsnow
#030202black
Foreground
#0c0504black
#ffffffwhite
Card
#fcf8f7snow
#070404black
Card foreground
#080302black
#ffffffwhite
Popover
#fcf8f7snow
#070404black
Popover foreground
#080302black
#ffffffwhite
Primary
#b65949indianred
#b65949indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e2e0dfgainsboro
#1c1c1cblack
Secondary foreground
#4a4545darkslategray
#b6b5b4silver
Muted
#eee0ddantiquewhite
#221411black
Muted foreground
#4c403ddarkslategray
#c2b5b3silver
Accent
#e2e0dfgainsboro
#1c1c1cblack
Accent foreground
#4a4545darkslategray
#b6b5b4silver
Destructive
#8e3001saddlebrown
#fe6316orangered
Destructive foreground
#ffd6c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b65949indianred
#b65949indianred

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.47:1AAA
Primary button4.64:1AA
Secondary button7.13:1AAA
Muted text7.73:1AAA
Accent7.13:1AAA
Destructive6.08:1AA
Dark mode
Text on background20.71:1AAA
Text on card20.43:1AAA
Primary button4.64:1AA
Secondary button8.32:1AAA
Muted text8.99:1AAA
Accent8.32:1AAA
Destructive7.00:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 29.476);
  --foreground: oklch(0.125 0.015 34.558);
  --muted: oklch(0.916 0.016 29.535);
  --muted-foreground: oklch(0.382 0.018 29.713);
  --popover: oklch(0.983 0.005 29.484);
  --popover-foreground: oklch(0.109 0.013 34.665);
  --card: oklch(0.983 0.005 29.484);
  --card-foreground: oklch(0.109 0.013 34.665);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.124 31.507);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.907 0.002 29.476);
  --secondary-foreground: oklch(0.396 0.007 29.533);
  --accent: oklch(0.907 0.002 29.476);
  --accent-foreground: oklch(0.396 0.007 29.533);
  --destructive: oklch(0.443 0.137 40.611);
  --destructive-foreground: oklch(0.906 0.053 48.114);
  --ring: oklch(0.574 0.124 31.507);
  --chart-1: oklch(0.574 0.124 31.507);
  --chart-2: oklch(0.907 0.002 29.476);
  --chart-3: oklch(0.907 0.002 29.476);
  --chart-4: oklch(0.93 0.002 29.474);
  --chart-5: oklch(0.575 0.133 31.677);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.006 32.242);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.024 30.335);
  --muted-foreground: oklch(0.783 0.015 29.543);
  --popover: oklch(0.112 0.008 32.242);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.112 0.008 32.242);
  --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.574 0.124 31.507);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.226 0.001 29.479);
  --secondary-foreground: oklch(0.773 0.001 29.474);
  --accent: oklch(0.226 0.001 29.479);
  --accent-foreground: oklch(0.773 0.001 29.474);
  --destructive: oklch(0.691 0.204 41.377);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.574 0.124 31.507);
  --chart-1: oklch(0.574 0.124 31.507);
  --chart-2: oklch(0.226 0.001 29.479);
  --chart-3: oklch(0.226 0.001 29.479);
  --chart-4: oklch(0.259 0.001 29.48);
  --chart-5: oklch(0.575 0.133 31.677);
}