Courageous for shadcn/ui

Courageous is a shadcn/ui theme built around a vivid green primary color (#73fc9c) with vivid orange accents (#fc9c73). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#73fc9c) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#031609black
#f9fafaghostwhite
Card
#fcfcfcsnow
#050a07black
Card foreground
#031207black
#fcfdfcwhite
Popover
#ffffffwhite
#030704black
Popover foreground
#031609black
#f9fafaghostwhite
Primary
#73fc9clightgreen
#73fc9clightgreen
Primary foreground
#013c13darkgreen
#013c13darkgreen
Secondary
#9c73fcmediumpurple
#9c73fcmediumpurple
Secondary foreground
#000000black
#000000black
Muted
#efedf2whitesmoke
#0e0d12black
Muted foreground
#5e5671dimgray
#968ea9darkgray
Accent
#fc9c73lightsalmon
#fc9c73lightsalmon
Accent foreground
#3c1301black
#3c1301black
Destructive
#6b2601maroon
#fe6410orangered
Destructive foreground
#ffc09fnavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73fc9clightgreen
#73fc9clightgreen

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.79:1AAA
Primary button9.74:1AAA
Secondary button6.27:1AA
Muted text5.94:1AA
Accent7.90:1AAA
Destructive7.02:1AAA
Dark mode
Text on background19.39:1AAA
Text on card19.54:1AAA
Primary button9.74:1AAA
Secondary button6.27:1AA
Muted text6.20:1AA
Accent7.90:1AAA
Destructive7.02:1AAA

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.18 0.038 152.591);
  --muted: oklch(0.95 0.006 299.927);
  --muted-foreground: oklch(0.47 0.045 298.384);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.18 0.038 152.591);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.162 0.033 153.783);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.179 150.988);
  --primary-foreground: oklch(0.311 0.089 147.781);
  --secondary: oklch(0.661 0.196 294.221);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.783 0.128 43.7);
  --accent-foreground: oklch(0.25 0.071 43.213);
  --destructive: oklch(0.366 0.108 43.068);
  --destructive-foreground: oklch(0.857 0.085 49.49);
  --ring: oklch(0.892 0.179 150.988);
  --chart-1: oklch(0.892 0.179 150.988);
  --chart-2: oklch(0.661 0.196 294.221);
  --chart-3: oklch(0.783 0.128 43.7);
  --chart-4: oklch(0.695 0.176 295.282);
  --chart-5: oklch(0.896 0.184 150.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 155.594);
  --foreground: oklch(0.985 0.001 155.841);
  --muted: oklch(0.163 0.01 299.022);
  --muted-foreground: oklch(0.662 0.042 298.969);
  --popover: oklch(0.12 0.011 155.594);
  --popover-foreground: oklch(0.985 0.001 155.841);
  --card: oklch(0.137 0.013 155.594);
  --card-foreground: oklch(0.993 0.001 155.855);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.179 150.988);
  --primary-foreground: oklch(0.311 0.089 147.781);
  --secondary: oklch(0.661 0.196 294.221);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.783 0.128 43.7);
  --accent-foreground: oklch(0.25 0.071 43.213);
  --destructive: oklch(0.691 0.204 41.966);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.892 0.179 150.988);
  --chart-1: oklch(0.892 0.179 150.988);
  --chart-2: oklch(0.661 0.196 294.221);
  --chart-3: oklch(0.783 0.128 43.7);
  --chart-4: oklch(0.695 0.176 295.282);
  --chart-5: oklch(0.896 0.184 150.844);
}