Crusader for shadcn/ui

Crusader is a shadcn/ui theme built around a teal primary color (#38856f) with near-white accents (#e6eae9). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the teal primary (#38856f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#000000black
Foreground
#010403black
#f6f9f8whitesmoke
Card
#f4fbf9mintcream
#030303black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f4fbf9mintcream
#030303black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#38856fseagreen
#38856fseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e6eae9lavender
#2a3733darkslategray
Secondary foreground
#4a5551darkslategray
#c2d1cdlightgrey
Muted
#d9dddcgainsboro
#222625darkslategray
Muted foreground
#54645fdimgray
#9baba7darkgray
Accent
#e6eae9lavender
#2a3733darkslategray
Accent foreground
#4a5551darkslategray
#c2d1cdlightgrey
Destructive
#a12a0cfirebrick
#f05933tomato
Destructive foreground
#fde8e3mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38856fseagreen
#38856fseagreen

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.98:1AAA
Primary button4.41:1AA Large
Secondary button6.37:1AA
Muted text4.57:1AA
Accent6.37:1AA
Destructive6.24:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.89:1AAA
Primary button4.41:1AA Large
Secondary button7.83:1AAA
Muted text6.41:1AA
Accent7.83:1AAA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 177.563);
  --foreground: oklch(0.1 0.014 177.886);
  --muted: oklch(0.895 0.005 177.555);
  --muted-foreground: oklch(0.488 0.021 176.377);
  --popover: oklch(0.982 0.008 177.486);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 177.486);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.562 0.084 171.798);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.933 0.004 177.601);
  --secondary-foreground: oklch(0.437 0.015 176.693);
  --accent: oklch(0.933 0.004 177.601);
  --accent-foreground: oklch(0.437 0.015 176.693);
  --destructive: oklch(0.471 0.16 34.118);
  --destructive-foreground: oklch(0.946 0.024 34.298);
  --ring: oklch(0.562 0.084 171.798);
  --chart-1: oklch(0.562 0.084 171.798);
  --chart-2: oklch(0.933 0.004 177.601);
  --chart-3: oklch(0.933 0.004 177.601);
  --chart-4: oklch(0.956 0.002 177.641);
  --chart-5: oklch(0.569 0.089 171.38);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 177.633);
  --muted: oklch(0.263 0.007 176.972);
  --muted-foreground: oklch(0.728 0.02 176.912);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.986 0.002 177.66);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 177.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.562 0.084 171.798);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.324 0.019 175.864);
  --secondary-foreground: oklch(0.848 0.017 177.114);
  --accent: oklch(0.324 0.019 175.864);
  --accent-foreground: oklch(0.848 0.017 177.114);
  --destructive: oklch(0.658 0.193 35.031);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.562 0.084 171.798);
  --chart-1: oklch(0.562 0.084 171.798);
  --chart-2: oklch(0.324 0.019 175.864);
  --chart-3: oklch(0.324 0.019 175.864);
  --chart-4: oklch(0.356 0.022 175.807);
  --chart-5: oklch(0.569 0.089 171.38);
}