Courageous for shadcn/ui

Courageous is a shadcn/ui theme built around a light yellow primary color (#faf7e0) with muted yellow accents (#cbc7a9). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the light yellow primary (#faf7e0) on a neutral background (#080702).

Color palette

TokenLightDark
Background
#fdfcf7snow
#080702black
Foreground
#161304black
#f8f8f7whitesmoke
Card
#fcfbf2floralwhite
#0c0b04black
Card foreground
#121003black
#fafaf9snow
Popover
#fcfbf2floralwhite
#0c0b04black
Popover foreground
#121003black
#fafaf9snow
Primary
#faf7e0cornsilk
#faf7e0cornsilk
Primary foreground
#3a3309darkolivegreen
#3a3309darkolivegreen
Secondary
#d8d6calightgrey
#343228darkslategray
Secondary foreground
#413f2fdarkslategray
#ceccc0silver
Muted
#f0eddbbeige
#24210fblack
Muted foreground
#525252darkslategray
#adadaddarkgray
Accent
#cbc7a9silver
#504d34darkolivegreen
Accent foreground
#292719black
#e3e1d4gainsboro
Destructive
#6b2505maroon
#f4550borangered
Destructive foreground
#fbc2a7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf7e0cornsilk
#faf7e0cornsilk

Contrast

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

Light mode
Text on background18.14:1AAA
Text on card18.36:1AAA
Primary button11.72:1AAA
Secondary button7.31:1AAA
Muted text6.63:1AA
Accent8.77:1AAA
Destructive7.04:1AAA
Dark mode
Text on background18.96:1AAA
Text on card18.91:1AAA
Primary button11.72:1AAA
Secondary button7.95:1AAA
Muted text7.20:1AAA
Accent6.54:1AA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 99.452);
  --foreground: oklch(0.187 0.031 101.549);
  --muted: oklch(0.943 0.024 99.697);
  --muted-foreground: oklch(0.437 0 180);
  --popover: oklch(0.987 0.011 99.508);
  --popover-foreground: oklch(0.169 0.027 102.09);
  --card: oklch(0.987 0.011 99.508);
  --card-foreground: oklch(0.169 0.027 102.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.972 0.03 99.779);
  --primary-foreground: oklch(0.319 0.059 100.238);
  --secondary: oklch(0.876 0.017 99.626);
  --secondary-foreground: oklch(0.364 0.026 100.248);
  --accent: oklch(0.825 0.041 100.009);
  --accent-foreground: oklch(0.272 0.025 100.454);
  --destructive: oklch(0.367 0.107 41.14);
  --destructive-foreground: oklch(0.858 0.075 46.046);
  --ring: oklch(0.972 0.03 99.779);
  --chart-1: oklch(0.972 0.03 99.779);
  --chart-2: oklch(0.876 0.017 99.626);
  --chart-3: oklch(0.825 0.041 100.009);
  --chart-4: oklch(0.897 0.014 99.573);
  --chart-5: oklch(0.973 0.031 99.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.015 102.698);
  --foreground: oklch(0.979 0.002 99.37);
  --muted: oklch(0.245 0.031 100.657);
  --muted-foreground: oklch(0.749 0 158.199);
  --popover: oklch(0.146 0.018 102.33);
  --popover-foreground: oklch(0.986 0.001 99.36);
  --card: oklch(0.146 0.018 102.33);
  --card-foreground: oklch(0.986 0.001 99.36);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.972 0.03 99.779);
  --primary-foreground: oklch(0.319 0.059 100.238);
  --secondary: oklch(0.316 0.018 100.093);
  --secondary-foreground: oklch(0.844 0.017 99.637);
  --accent: oklch(0.415 0.038 100.446);
  --accent-foreground: oklch(0.907 0.018 99.619);
  --destructive: oklch(0.658 0.206 39.218);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.03 99.779);
  --chart-1: oklch(0.972 0.03 99.779);
  --chart-2: oklch(0.316 0.018 100.093);
  --chart-3: oklch(0.415 0.038 100.446);
  --chart-4: oklch(0.349 0.02 100.113);
  --chart-5: oklch(0.973 0.031 99.795);
}