fH-Green for shadcn/ui

fH-Green is a shadcn/ui theme built around a green primary color (#2f7550) with orange accents (#75502f). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#2f7550) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#010402black
#f9fbfamintcream
Card
#ffffffwhite
#030705black
Card foreground
#010402black
#f9fbfamintcream
Popover
#ffffffwhite
#030705black
Popover foreground
#010402black
#f9fbfamintcream
Primary
#2f7550seagreen
#2f7550seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#502f75darkslateblue
#502f75darkslateblue
Secondary foreground
#eae2f3lavender
#eae2f3lavender
Muted
#d8cde5gainsboro
#261a32darkslategray
Muted foreground
#453b4fdarkslategray
#bab0c4silver
Accent
#75502fsaddlebrown
#75502fsaddlebrown
Accent foreground
#f3eae2linen
#f3eae2linen
Destructive
#811309maroon
#f03928orangered
Destructive foreground
#fbc6c1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2f7550seagreen
#2f7550seagreen

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button5.57:1AA
Secondary button8.33:1AAA
Muted text6.90:1AA
Accent5.98:1AA
Destructive6.88:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.57:1AA
Secondary button8.33:1AAA
Muted text7.90:1AAA
Accent5.98:1AA
Destructive3.94:1AA Large

CSS variables

Paste this into your globals.css to use fH-Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.016 164.417);
  --muted: oklch(0.864 0.036 307.308);
  --muted-foreground: oklch(0.369 0.037 306.612);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.016 164.417);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.016 164.417);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.092 157.968);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.381 0.118 303.605);
  --secondary-foreground: oklch(0.924 0.025 307.472);
  --accent: oklch(0.465 0.069 62.874);
  --accent-foreground: oklch(0.943 0.015 65.775);
  --destructive: oklch(0.389 0.145 30.056);
  --destructive-foreground: oklch(0.871 0.061 24.403);
  --ring: oklch(0.506 0.092 157.968);
  --chart-1: oklch(0.506 0.092 157.968);
  --chart-2: oklch(0.381 0.118 303.605);
  --chart-3: oklch(0.465 0.069 62.874);
  --chart-4: oklch(0.405 0.126 303.534);
  --chart-5: oklch(0.512 0.097 157.543);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.014 164.379);
  --foreground: oklch(0.986 0.003 164.199);
  --muted: oklch(0.245 0.048 305.402);
  --muted-foreground: oklch(0.771 0.031 307.321);
  --popover: oklch(0.122 0.014 164.379);
  --popover-foreground: oklch(0.986 0.003 164.199);
  --card: oklch(0.122 0.014 164.379);
  --card-foreground: oklch(0.986 0.003 164.199);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.506 0.092 157.968);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.381 0.118 303.605);
  --secondary-foreground: oklch(0.924 0.025 307.472);
  --accent: oklch(0.465 0.069 62.874);
  --accent-foreground: oklch(0.943 0.015 65.775);
  --destructive: oklch(0.626 0.221 29.79);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.092 157.968);
  --chart-1: oklch(0.506 0.092 157.968);
  --chart-2: oklch(0.381 0.118 303.605);
  --chart-3: oklch(0.465 0.069 62.874);
  --chart-4: oklch(0.405 0.126 303.534);
  --chart-5: oklch(0.512 0.097 157.543);
}