Courageous for shadcn/ui

Courageous is a shadcn/ui theme built around a red primary color (#d5a5a5) with indigo accents (#a5a5d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d5a5a5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150404black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#110404black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#150404black
#ffffffwhite
Primary
#d5a5a5tan
#d5a5a5tan
Primary foreground
#311717black
#311717black
Secondary
#a5d5a5lightgreen
#a5d5a5lightgreen
Secondary foreground
#173117black
#173117black
Muted
#dfe2dfgainsboro
#1d201dblack
Muted foreground
#485148darkslategray
#aeb7aedarkgray
Accent
#a5a5d5lightsteelblue
#a5a5d5lightsteelblue
Accent foreground
#171731black
#171731black
Destructive
#e30202red
#fd1c1cred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5a5a5tan
#d5a5a5tan

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.70:1AAA
Primary button7.68:1AAA
Secondary button8.47:1AAA
Muted text6.31:1AA
Accent7.41:1AAA
Destructive4.90:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.68:1AAA
Secondary button8.47:1AAA
Muted text7.95:1AAA
Accent7.41:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.033 22.133);
  --muted: oklch(0.91 0.006 145.524);
  --muted-foreground: oklch(0.424 0.019 145.23);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.033 22.133);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.13 0.029 21.841);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.765 0.057 18.466);
  --primary-foreground: oklch(0.241 0.042 20.602);
  --secondary: oklch(0.825 0.083 144.78);
  --secondary-foreground: oklch(0.283 0.056 143.925);
  --accent: oklch(0.738 0.069 284.596);
  --accent-foreground: oklch(0.219 0.05 281.515);
  --destructive: oklch(0.576 0.236 29.16);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.057 18.466);
  --chart-1: oklch(0.765 0.057 18.466);
  --chart-2: oklch(0.825 0.083 144.78);
  --chart-3: oklch(0.738 0.069 284.596);
  --chart-4: oklch(0.845 0.073 144.895);
  --chart-5: oklch(0.763 0.062 18.595);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.24 0.009 145.296);
  --muted-foreground: oklch(0.77 0.016 145.414);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.765 0.057 18.466);
  --primary-foreground: oklch(0.241 0.042 20.602);
  --secondary: oklch(0.825 0.083 144.78);
  --secondary-foreground: oklch(0.283 0.056 143.925);
  --accent: oklch(0.738 0.069 284.596);
  --accent-foreground: oklch(0.219 0.05 281.515);
  --destructive: oklch(0.631 0.248 28.334);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.765 0.057 18.466);
  --chart-1: oklch(0.765 0.057 18.466);
  --chart-2: oklch(0.825 0.083 144.78);
  --chart-3: oklch(0.738 0.069 284.596);
  --chart-4: oklch(0.845 0.073 144.895);
  --chart-5: oklch(0.763 0.062 18.595);
}