Steel for shadcn/ui

Steel is a shadcn/ui theme built around a neutral gray primary color (#323934) with neutral gray accents (#393432). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#323934) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020804black
#f6f9f7whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#010402black
#f9fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#020804black
#f6f9f7whitesmoke
Primary
#323934darkslategray
#323934darkslategray
Primary foreground
#ccd1cdlightgrey
#ccd1cdlightgrey
Secondary
#343239darkslategray
#343239darkslategray
Secondary foreground
#cdccd1lightgrey
#cdccd1lightgrey
Muted
#e6e3f3lavender
#100c1cblack
Muted foreground
#5c5a63dimgray
#9e9ca5darkgray
Accent
#393432darkslategray
#393432darkslategray
Accent foreground
#d1cdcclightgrey
#d1cdcclightgrey
Destructive
#931f0bdarkred
#df3011orangered
Destructive foreground
#fcdad4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#323934darkslategray
#323934darkslategray

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.15:1AAA
Primary button7.67:1AAA
Secondary button7.89:1AAA
Muted text5.36:1AA
Accent7.79:1AAA
Destructive6.58:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.88:1AAA
Primary button7.67:1AAA
Secondary button7.89:1AAA
Muted text7.08:1AAA
Accent7.79:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.019 152.525);
  --muted: oklch(0.922 0.022 296.654);
  --muted-foreground: oklch(0.472 0.015 296.495);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.019 152.525);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.015 152.525);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.336 0.012 152.634);
  --primary-foreground: oklch(0.856 0.009 153.073);
  --secondary: oklch(0.323 0.011 296.439);
  --secondary-foreground: oklch(0.847 0.008 296.907);
  --accent: oklch(0.329 0.008 37.649);
  --accent-foreground: oklch(0.851 0.005 37.712);
  --destructive: oklch(0.435 0.154 32.151);
  --destructive-foreground: oklch(0.915 0.038 29.672);
  --ring: oklch(0.336 0.012 152.634);
  --chart-1: oklch(0.336 0.012 152.634);
  --chart-2: oklch(0.323 0.011 296.439);
  --chart-3: oklch(0.329 0.008 37.649);
  --chart-4: oklch(0.351 0.013 296.421);
  --chart-5: oklch(0.338 0.018 152.329);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.978 0.004 153.181);
  --muted: oklch(0.17 0.033 293.334);
  --muted-foreground: oklch(0.697 0.014 296.722);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.978 0.004 153.181);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.002 153.201);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.012 152.634);
  --primary-foreground: oklch(0.856 0.009 153.073);
  --secondary: oklch(0.323 0.011 296.439);
  --secondary-foreground: oklch(0.847 0.008 296.907);
  --accent: oklch(0.329 0.008 37.649);
  --accent-foreground: oklch(0.851 0.005 37.712);
  --destructive: oklch(0.588 0.214 31.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.012 152.634);
  --chart-1: oklch(0.336 0.012 152.634);
  --chart-2: oklch(0.323 0.011 296.439);
  --chart-3: oklch(0.329 0.008 37.649);
  --chart-4: oklch(0.351 0.013 296.421);
  --chart-5: oklch(0.338 0.018 152.329);
}