Fearless for shadcn/ui

Fearless is a shadcn/ui theme built around a green primary color (#3b7a24) with green accents (#247a38). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#3b7a24) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#020401black
Foreground
#091504black
#f7f8f7whitesmoke
Card
#fcfdfcwhite
#020401black
Card foreground
#091504black
#f7f8f7whitesmoke
Popover
#fcfdfcwhite
#020401black
Popover foreground
#091504black
#f7f8f7whitesmoke
Primary
#3b7a24forestgreen
#3b7a24forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#667a24olivedrab
#667a24olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddfd8gainsboro
#262720darkslategray
Muted foreground
#595b52dimgray
#abada4darkgray
Accent
#247a38forestgreen
#247a38forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#89200bdarkred
#ec3713orangered
Destructive foreground
#fbd3cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b7a24forestgreen
#3b7a24forestgreen

Contrast

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

Light mode
Text on background18.40:1AAA
Text on card18.40:1AAA
Primary button5.27:1AA
Secondary button4.81:1AA
Muted text5.12:1AA
Accent5.37:1AA
Destructive6.72:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button5.27:1AA
Secondary button4.81:1AA
Muted text6.62:1AA
Accent5.37:1AA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 137.195);
  --foreground: oklch(0.179 0.038 136.743);
  --muted: oklch(0.9 0.01 117.274);
  --muted-foreground: oklch(0.467 0.014 117.615);
  --popover: oklch(0.993 0.002 137.195);
  --popover-foreground: oklch(0.179 0.038 136.743);
  --card: oklch(0.993 0.002 137.195);
  --card-foreground: oklch(0.179 0.038 136.743);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.518 0.135 138.564);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.112 121.585);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.128 147.679);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.416 0.143 32.869);
  --destructive-foreground: oklch(0.899 0.046 31.231);
  --ring: oklch(0.518 0.135 138.564);
  --chart-1: oklch(0.518 0.135 138.564);
  --chart-2: oklch(0.545 0.112 121.585);
  --chart-3: oklch(0.512 0.128 147.679);
  --chart-4: oklch(0.582 0.121 121.636);
  --chart-5: oklch(0.524 0.141 138.681);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.014 135.773);
  --foreground: oklch(0.978 0.003 137.195);
  --muted: oklch(0.27 0.013 117.953);
  --muted-foreground: oklch(0.742 0.012 117.38);
  --popover: oklch(0.098 0.014 135.773);
  --popover-foreground: oklch(0.978 0.003 137.195);
  --card: oklch(0.098 0.014 135.773);
  --card-foreground: oklch(0.978 0.003 137.195);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.518 0.135 138.564);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.545 0.112 121.585);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.512 0.128 147.679);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.616 0.22 32.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.518 0.135 138.564);
  --chart-1: oklch(0.518 0.135 138.564);
  --chart-2: oklch(0.545 0.112 121.585);
  --chart-3: oklch(0.512 0.128 147.679);
  --chart-4: oklch(0.582 0.121 121.636);
  --chart-5: oklch(0.524 0.141 138.681);
}