Mere Hematite for shadcn/ui

Mere Hematite is a shadcn/ui theme built around a neutral gray primary color (#606261) with neutral gray accents (#626061). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the neutral gray primary (#606261) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcfamintcream
#000000black
Foreground
#020d07black
#ffffffwhite
Card
#f4fbf7mintcream
#030303black
Card foreground
#010905black
#ffffffwhite
Popover
#f4fbf7mintcream
#030303black
Popover foreground
#010905black
#ffffffwhite
Primary
#606261dimgray
#606261dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#626061dimgray
#626061dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3d9degainsboro
#261c22black
Muted foreground
#444142darkslategray
#bebbbdsilver
Accent
#626061dimgray
#626061dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7f1a06maroon
#f43a15orangered
Destructive foreground
#fcc6bblightpink
#ffffffwhite
Border
#e2e9e5gainsboro
#1c2621black
Input
#e2e9e5gainsboro
#1c2621black
Ring
#606261dimgray
#606261dimgray

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.17:1AAA
Primary button6.15:1AA
Secondary button6.24:1AA
Muted text7.30:1AAA
Accent6.24:1AA
Destructive6.80:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.15:1AA
Secondary button6.24:1AA
Muted text8.67:1AAA
Accent6.24:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 163.282);
  --foreground: oklch(0.144 0.024 162.923);
  --muted: oklch(0.894 0.014 343.829);
  --muted-foreground: oklch(0.378 0.004 343.727);
  --popover: oklch(0.982 0.009 163.199);
  --popover-foreground: oklch(0.125 0.021 163.53);
  --card: oklch(0.982 0.009 163.199);
  --card-foreground: oklch(0.125 0.021 163.53);
  --border: oklch(0.928 0.01 163.176);
  --input: oklch(0.928 0.01 163.176);
  --primary: oklch(0.494 0.003 163.295);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.491 0.003 343.594);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.003 343.594);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.39 0.138 32.782);
  --destructive-foreground: oklch(0.871 0.064 31.372);
  --ring: oklch(0.494 0.003 163.295);
  --chart-1: oklch(0.494 0.003 163.295);
  --chart-2: oklch(0.491 0.003 343.594);
  --chart-3: oklch(0.491 0.003 343.594);
  --chart-4: oklch(0.518 0.003 343.595);
  --chart-5: oklch(0.498 0.012 162.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.019 345.358);
  --muted-foreground: oklch(0.796 0.004 343.556);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.258 0.017 161.635);
  --input: oklch(0.258 0.017 161.635);
  --primary: oklch(0.494 0.003 163.295);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.491 0.003 343.594);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.003 343.594);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.633 0.225 32.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.494 0.003 163.295);
  --chart-1: oklch(0.494 0.003 163.295);
  --chart-2: oklch(0.491 0.003 343.594);
  --chart-3: oklch(0.491 0.003 343.594);
  --chart-4: oklch(0.518 0.003 343.595);
  --chart-5: oklch(0.498 0.012 162.846);
}