Foolhardy for shadcn/ui

Foolhardy is a shadcn/ui theme built around a vivid green primary color (#aed317) with vivid indigo accents (#3d17d3). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid green primary (#aed317) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#090b05black
Foreground
#030401black
#ffffffwhite
Card
#fdfdfbsnow
#090b05black
Card foreground
#030401black
#ffffffwhite
Popover
#fdfdfbsnow
#090b05black
Popover foreground
#030401black
#ffffffwhite
Primary
#aed317yellowgreen
#aed317yellowgreen
Primary foreground
#171c03black
#171c03black
Secondary
#3d17d3mediumblue
#3d17d3mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1f1f4whitesmoke
#0c0b0eblack
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#3d17d3mediumblue
#3d17d3mediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d0703maroon
#f94039tomato
Destructive foreground
#fca9a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aed317yellowgreen
#aed317yellowgreen

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button10.08:1AAA
Secondary button9.26:1AAA
Muted text5.92:1AA
Accent9.26:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button10.08:1AAA
Secondary button9.26:1AAA
Muted text7.77:1AAA
Accent9.26:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 115.63);
  --foreground: oklch(0.102 0.014 116.109);
  --muted: oklch(0.959 0.004 295.506);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.995 0.003 115.63);
  --popover-foreground: oklch(0.102 0.014 116.109);
  --card: oklch(0.995 0.003 115.63);
  --card-foreground: oklch(0.102 0.014 116.109);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.811 0.192 121.858);
  --primary-foreground: oklch(0.213 0.044 119.256);
  --secondary: oklch(0.428 0.251 276.546);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.428 0.251 276.546);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.34 0.133 29.415);
  --destructive-foreground: oklch(0.815 0.099 21.635);
  --ring: oklch(0.811 0.192 121.858);
  --chart-1: oklch(0.811 0.192 121.858);
  --chart-2: oklch(0.428 0.251 276.546);
  --chart-3: oklch(0.428 0.251 276.546);
  --chart-4: oklch(0.448 0.263 276.378);
  --chart-5: oklch(0.821 0.196 122.043);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 116.013);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.153 0.006 294.855);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.143 0.014 116.013);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.014 116.013);
  --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.811 0.192 121.858);
  --primary-foreground: oklch(0.213 0.044 119.256);
  --secondary: oklch(0.428 0.251 276.546);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.428 0.251 276.546);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.222 27.465);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.811 0.192 121.858);
  --chart-1: oklch(0.811 0.192 121.858);
  --chart-2: oklch(0.428 0.251 276.546);
  --chart-3: oklch(0.428 0.251 276.546);
  --chart-4: oklch(0.448 0.263 276.378);
  --chart-5: oklch(0.821 0.196 122.043);
}