fH for shadcn/ui

fH is a shadcn/ui theme built around a neutral gray primary color (#c5c8c9) with muted light cyan accents (#d7e2e4). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the neutral gray primary (#c5c8c9) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020304black
Foreground
#000000black
#f8fbfcghostwhite
Card
#fbfdfewhite
#020304black
Card foreground
#000000black
#f8fbfcghostwhite
Popover
#fbfdfewhite
#020304black
Popover foreground
#000000black
#f8fbfcghostwhite
Primary
#c5c8c9silver
#c5c8c9silver
Primary foreground
#2c2f30darkslategray
#2c2f30darkslategray
Secondary
#d7e2e4gainsboro
#222c2fdarkslategray
Secondary foreground
#374d53darkslategray
#b8c7ccsilver
Muted
#f1f3f3whitesmoke
#0c0d0eblack
Muted foreground
#575e60dimgray
#9fa6a8darkgray
Accent
#d7e2e4gainsboro
#222c2fdarkslategray
Accent foreground
#374d53darkslategray
#b8c7ccsilver
Destructive
#9d3e0csaddlebrown
#ef6f2achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5c8c9silver
#c5c8c9silver

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button8.02:1AAA
Secondary button6.75:1AA
Muted text5.93:1AA
Accent6.75:1AA
Destructive6.71:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.02:1AAA
Secondary button8.17:1AAA
Muted text7.86:1AAA
Accent8.17:1AAA
Destructive6.95:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 216.02);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.962 0.002 216.018);
  --muted-foreground: oklch(0.478 0.01 216.113);
  --popover: oklch(0.993 0.002 216.02);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.002 216.02);
  --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.831 0.004 216.032);
  --primary-foreground: oklch(0.302 0.004 216.078);
  --secondary: oklch(0.905 0.012 216.072);
  --secondary-foreground: oklch(0.403 0.028 216.671);
  --accent: oklch(0.905 0.012 216.072);
  --accent-foreground: oklch(0.403 0.028 216.671);
  --destructive: oklch(0.488 0.138 43.157);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.004 216.032);
  --chart-1: oklch(0.831 0.004 216.032);
  --chart-2: oklch(0.905 0.012 216.072);
  --chart-3: oklch(0.905 0.012 216.072);
  --chart-4: oklch(0.927 0.009 216.055);
  --chart-5: oklch(0.832 0.007 216.049);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.007 212.915);
  --foreground: oklch(0.986 0.003 216.026);
  --muted: oklch(0.159 0.002 216.085);
  --muted-foreground: oklch(0.719 0.009 216.067);
  --popover: oklch(0.094 0.007 212.915);
  --popover-foreground: oklch(0.986 0.003 216.026);
  --card: oklch(0.094 0.007 212.915);
  --card-foreground: oklch(0.986 0.003 216.026);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.004 216.032);
  --primary-foreground: oklch(0.302 0.004 216.078);
  --secondary: oklch(0.287 0.015 216.408);
  --secondary-foreground: oklch(0.82 0.018 216.124);
  --accent: oklch(0.287 0.015 216.408);
  --accent-foreground: oklch(0.82 0.018 216.124);
  --destructive: oklch(0.685 0.176 44.981);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.831 0.004 216.032);
  --chart-1: oklch(0.831 0.004 216.032);
  --chart-2: oklch(0.287 0.015 216.408);
  --chart-3: oklch(0.287 0.015 216.408);
  --chart-4: oklch(0.319 0.017 216.433);
  --chart-5: oklch(0.832 0.007 216.049);
}