Courageous for shadcn/ui

Courageous is a shadcn/ui theme built around a vivid purple primary color (#e208c2) with vivid pink accents (#e20855). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#e208c2) on a purple-tinted background (#0e060d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060dblack
Foreground
#040103black
#ffffffwhite
Card
#fcfcfcsnow
#110810black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#110810black
Popover foreground
#000000black
#ffffffwhite
Primary
#e208c2deeppink
#e208c2deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9608e2darkviolet
#9608e2darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9e5eblavender
#18141ablack
Muted foreground
#55485bdarkslategray
#b0a4b7darkgray
Accent
#e20855crimson
#e20855crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a82200firebrick
#f53100orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e208c2deeppink
#e208c2deeppink

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button4.15:1AA Large
Secondary button6.11:1AA
Muted text6.84:1AA
Accent4.75:1AA
Destructive7.25:1AAA
Dark mode
Text on background19.95:1AAA
Text on card19.67:1AAA
Primary button4.15:1AA Large
Secondary button6.11:1AA
Muted text7.67:1AAA
Accent4.75:1AA
Destructive3.95: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.086 0.018 331.279);
  --muted: oklch(0.927 0.01 314.162);
  --muted-foreground: oklch(0.421 0.036 313.753);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.624 0.273 336.77);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.533 0.271 306.754);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.231 12.488);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.476 0.174 33.336);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.273 336.77);
  --chart-1: oklch(0.624 0.273 336.77);
  --chart-2: oklch(0.533 0.271 306.754);
  --chart-3: oklch(0.584 0.231 12.488);
  --chart-4: oklch(0.558 0.284 306.674);
  --chart-5: oklch(0.631 0.276 336.915);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.02 331.63);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.014 313.826);
  --muted-foreground: oklch(0.734 0.031 313.986);
  --popover: oklch(0.153 0.023 332.003);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.023 332.003);
  --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.624 0.273 336.77);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.533 0.271 306.754);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.584 0.231 12.488);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.627 0.233 32.672);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.624 0.273 336.77);
  --chart-1: oklch(0.624 0.273 336.77);
  --chart-2: oklch(0.533 0.271 306.754);
  --chart-3: oklch(0.584 0.231 12.488);
  --chart-4: oklch(0.558 0.284 306.674);
  --chart-5: oklch(0.631 0.276 336.915);
}