Fearless for shadcn/ui

Fearless is a shadcn/ui theme built around a vivid yellow primary color (#df9501) with vivid blue accents (#014bdf). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the vivid yellow primary (#df9501) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfbf8snow
#030302black
Foreground
#000000black
#fcfbf8snow
Card
#fcfbf8snow
#030302black
Card foreground
#000000black
#fcfbf8snow
Popover
#fcfbf8snow
#030302black
Popover foreground
#000000black
#fcfbf8snow
Primary
#df9501darkorange
#df9501darkorange
Primary foreground
#140e00black
#140e00black
Secondary
#014bdfroyalblue
#014bdfroyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbe2f0lavender
#0f1624black
Muted foreground
#54575fdimgray
#a0a4abdarkgray
Accent
#014bdfroyalblue
#014bdfroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a110fdarkred
#e7201dcrimson
Destructive foreground
#fad2d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df9501darkorange
#df9501darkorange

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.74:1AAA
Secondary button6.81:1AA
Muted text5.56:1AA
Accent6.81:1AA
Destructive6.99:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button7.74:1AAA
Secondary button6.81:1AA
Muted text7.22:1AAA
Accent6.81:1AA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 84.561);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.02 264.47);
  --muted-foreground: oklch(0.458 0.012 264.445);
  --popover: oklch(0.987 0.004 84.561);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 84.561);
  --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.727 0.154 73.767);
  --primary-foreground: oklch(0.166 0.034 89.325);
  --secondary: oklch(0.486 0.233 262.527);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.486 0.233 262.527);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.407 0.155 28.24);
  --destructive-foreground: oklch(0.897 0.046 19.188);
  --ring: oklch(0.727 0.154 73.767);
  --chart-1: oklch(0.727 0.154 73.767);
  --chart-2: oklch(0.486 0.233 262.527);
  --chart-3: oklch(0.486 0.233 262.527);
  --chart-4: oklch(0.509 0.245 262.577);
  --chart-5: oklch(0.733 0.156 73.209);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 87.935);
  --foreground: oklch(0.987 0.004 84.561);
  --muted: oklch(0.201 0.029 263.58);
  --muted-foreground: oklch(0.718 0.011 264.497);
  --popover: oklch(0.095 0.006 87.935);
  --popover-foreground: oklch(0.987 0.004 84.561);
  --card: oklch(0.095 0.006 87.935);
  --card-foreground: oklch(0.987 0.004 84.561);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.727 0.154 73.767);
  --primary-foreground: oklch(0.166 0.034 89.325);
  --secondary: oklch(0.486 0.233 262.527);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.486 0.233 262.527);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.229 28.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.727 0.154 73.767);
  --chart-1: oklch(0.727 0.154 73.767);
  --chart-2: oklch(0.486 0.233 262.527);
  --chart-3: oklch(0.486 0.233 262.527);
  --chart-4: oklch(0.509 0.245 262.577);
  --chart-5: oklch(0.733 0.156 73.209);
}