Fearless for shadcn/ui

Fearless is a shadcn/ui theme built around a muted deep red primary color (#0d0808) with muted deep orange accents (#0d0a08). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#0d0808) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0e0707black
Foreground
#0d0202black
#fbf9f9snow
Card
#fdf7f7snow
#110808black
Card foreground
#090101black
#fdfcfcsnow
Popover
#fefbfbsnow
#0e0707black
Popover foreground
#0d0202black
#fbf9f9snow
Primary
#0d0808black
#0d0808black
Primary foreground
#b88e8erosybrown
#b88e8erosybrown
Secondary
#0d080ablack
#0d080ablack
Secondary foreground
#b88ea3rosybrown
#b88ea3rosybrown
Muted
#f6eaf0lavenderblush
#15090fblack
Muted foreground
#6a535edimgray
#ac95a1darkgray
Accent
#0d0a08black
#0d0a08black
Accent foreground
#b8a38erosybrown
#b8a38erosybrown
Destructive
#772c03saddlebrown
#e55406orangered
Destructive foreground
#fdcbafpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0808black
#0d0808black

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.50:1AAA
Primary button6.92:1AA
Secondary button7.04:1AAA
Muted text5.93:1AA
Accent8.14:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.26:1AAA
Primary button6.92:1AA
Secondary button7.04:1AAA
Muted text7.00:1AAA
Accent8.14:1AAA
Destructive3.75: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.99 0.003 17.208);
  --foreground: oklch(0.114 0.03 23.185);
  --muted: oklch(0.947 0.015 345.565);
  --muted-foreground: oklch(0.469 0.034 346.967);
  --popover: oklch(0.99 0.003 17.208);
  --popover-foreground: oklch(0.114 0.03 23.185);
  --card: oklch(0.981 0.006 17.259);
  --card-foreground: oklch(0.099 0.026 23.097);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.14 0.009 18.245);
  --primary-foreground: oklch(0.687 0.051 18.484);
  --secondary: oklch(0.141 0.01 346.05);
  --secondary-foreground: oklch(0.693 0.058 347.223);
  --accent: oklch(0.148 0.007 69.072);
  --accent-foreground: oklch(0.729 0.039 67.158);
  --destructive: oklch(0.397 0.116 42.806);
  --destructive-foreground: oklch(0.878 0.068 49.748);
  --ring: oklch(0.14 0.009 18.245);
  --chart-1: oklch(0.14 0.009 18.245);
  --chart-2: oklch(0.141 0.01 346.05);
  --chart-3: oklch(0.148 0.007 69.072);
  --chart-4: oklch(0.175 0.016 347.391);
  --chart-5: oklch(0.14 0.01 18.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 18.932);
  --foreground: oklch(0.983 0.002 17.191);
  --muted: oklch(0.162 0.024 348.754);
  --muted-foreground: oklch(0.694 0.031 346.275);
  --popover: oklch(0.138 0.013 18.932);
  --popover-foreground: oklch(0.983 0.002 17.191);
  --card: oklch(0.149 0.016 19.095);
  --card-foreground: oklch(0.992 0.001 17.174);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.14 0.009 18.245);
  --primary-foreground: oklch(0.687 0.051 18.484);
  --secondary: oklch(0.141 0.01 346.05);
  --secondary-foreground: oklch(0.693 0.058 347.223);
  --accent: oklch(0.148 0.007 69.072);
  --accent-foreground: oklch(0.729 0.039 67.158);
  --destructive: oklch(0.633 0.193 40.873);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.14 0.009 18.245);
  --chart-1: oklch(0.14 0.009 18.245);
  --chart-2: oklch(0.141 0.01 346.05);
  --chart-3: oklch(0.148 0.007 69.072);
  --chart-4: oklch(0.175 0.016 347.391);
  --chart-5: oklch(0.14 0.01 18.42);
}