Foolhardy for shadcn/ui

Foolhardy is a shadcn/ui theme built around a deep green primary color (#36652a) with deep purple accents (#592a65). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#36652a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030901black
#f9fbf9mintcream
Card
#ffffffwhite
#000000black
Card foreground
#030901black
#f9fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#030901black
#f9fbf9mintcream
Primary
#36652adarkolivegreen
#36652adarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#592a65darkslateblue
#592a65darkslateblue
Secondary foreground
#e8d4edgainsboro
#e8d4edgainsboro
Muted
#e4dbe6gainsboro
#221924black
Muted foreground
#413e42darkslategray
#c0bdc1silver
Accent
#592a65darkslateblue
#592a65darkslateblue
Accent foreground
#e8d4edgainsboro
#e8d4edgainsboro
Destructive
#d34203orangered
#fb5c18orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#36652adarkolivegreen
#36652adarkolivegreen

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button6.91:1AA
Secondary button7.75:1AAA
Muted text7.81:1AAA
Accent7.75:1AAA
Destructive4.62:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button6.91:1AA
Secondary button7.75:1AAA
Muted text9.14:1AAA
Accent7.75:1AAA
Destructive6.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.028 137.24);
  --muted: oklch(0.902 0.017 319.449);
  --muted-foreground: oklch(0.368 0.008 319.45);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.028 137.24);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.028 137.24);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.457 0.103 139.659);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.109 319.263);
  --secondary-foreground: oklch(0.893 0.04 319.456);
  --accent: oklch(0.375 0.109 319.263);
  --accent-foreground: oklch(0.893 0.04 319.456);
  --destructive: oklch(0.582 0.191 37.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.457 0.103 139.659);
  --chart-1: oklch(0.457 0.103 139.659);
  --chart-2: oklch(0.375 0.109 319.263);
  --chart-3: oklch(0.375 0.109 319.263);
  --chart-4: oklch(0.401 0.118 319.252);
  --chart-5: oklch(0.462 0.109 139.711);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 139.444);
  --muted: oklch(0.23 0.023 319.465);
  --muted-foreground: oklch(0.803 0.006 319.446);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 139.444);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 139.444);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.457 0.103 139.659);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.375 0.109 319.263);
  --secondary-foreground: oklch(0.893 0.04 319.456);
  --accent: oklch(0.375 0.109 319.263);
  --accent-foreground: oklch(0.893 0.04 319.456);
  --destructive: oklch(0.679 0.207 39.41);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.457 0.103 139.659);
  --chart-1: oklch(0.457 0.103 139.659);
  --chart-2: oklch(0.375 0.109 319.263);
  --chart-3: oklch(0.375 0.109 319.263);
  --chart-4: oklch(0.401 0.118 319.252);
  --chart-5: oklch(0.462 0.109 139.711);
}