Steel for shadcn/ui

Steel is a shadcn/ui theme built around a green primary color (#3ecc79) with muted light green accents (#b5d4c2). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#3ecc79) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#010402black
Foreground
#03160bblack
#f5faf7whitesmoke
Card
#fcfdfcwhite
#010402black
Card foreground
#03160bblack
#f5faf7whitesmoke
Popover
#fcfdfcwhite
#010402black
Popover foreground
#03160bblack
#f5faf7whitesmoke
Primary
#3ecc79mediumseagreen
#3ecc79mediumseagreen
Primary foreground
#0d301cblack
#0d301cblack
Secondary
#d5e2dagainsboro
#121c16black
Secondary foreground
#364f40darkslategray
#a0c0addarkgray
Muted
#d7dfdbgainsboro
#202823darkslategray
Muted foreground
#4a5e52darkslategray
#a1b5a9darkgray
Accent
#b5d4c2silver
#233e2edarkslategray
Accent foreground
#203729darkslategray
#bbd8c7silver
Destructive
#b6280cfirebrick
#e6330forangered
Destructive foreground
#fef7f5floralwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3ecc79mediumseagreen
#3ecc79mediumseagreen

Contrast

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

Light mode
Text on background18.36:1AAA
Text on card18.36:1AAA
Primary button6.91:1AA
Secondary button6.68:1AA
Muted text5.14:1AA
Accent8.00:1AAA
Destructive6.00:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button6.91:1AA
Secondary button8.86:1AAA
Muted text7.00:1AAA
Accent7.68:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 160.955);
  --foreground: oklch(0.18 0.035 157);
  --muted: oklch(0.897 0.01 160.737);
  --muted-foreground: oklch(0.462 0.031 159.318);
  --popover: oklch(0.993 0.002 160.955);
  --popover-foreground: oklch(0.18 0.035 157);
  --card: oklch(0.993 0.002 160.955);
  --card-foreground: oklch(0.18 0.035 157);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.749 0.169 153.245);
  --primary-foreground: oklch(0.278 0.056 154.547);
  --secondary: oklch(0.901 0.018 160.535);
  --secondary-foreground: oklch(0.402 0.04 158.426);
  --accent: oklch(0.841 0.041 159.82);
  --accent-foreground: oklch(0.312 0.037 157.773);
  --destructive: oklch(0.508 0.182 32.552);
  --destructive-foreground: oklch(0.981 0.008 31.059);
  --ring: oklch(0.749 0.169 153.245);
  --chart-1: oklch(0.749 0.169 153.245);
  --chart-2: oklch(0.901 0.018 160.535);
  --chart-3: oklch(0.841 0.041 159.82);
  --chart-4: oklch(0.922 0.014 160.65);
  --chart-5: oklch(0.758 0.176 152.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.014 160.942);
  --foreground: oklch(0.98 0.007 160.845);
  --muted: oklch(0.266 0.014 159.713);
  --muted-foreground: oklch(0.754 0.028 160.115);
  --popover: oklch(0.098 0.014 160.942);
  --popover-foreground: oklch(0.98 0.007 160.845);
  --card: oklch(0.098 0.014 160.942);
  --card-foreground: oklch(0.98 0.007 160.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.749 0.169 153.245);
  --primary-foreground: oklch(0.278 0.056 154.547);
  --secondary: oklch(0.213 0.017 158.966);
  --secondary-foreground: oklch(0.778 0.043 159.643);
  --accent: oklch(0.336 0.042 157.56);
  --accent-foreground: oklch(0.856 0.039 159.909);
  --destructive: oklch(0.602 0.219 32.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.749 0.169 153.245);
  --chart-1: oklch(0.749 0.169 153.245);
  --chart-2: oklch(0.213 0.017 158.966);
  --chart-3: oklch(0.336 0.042 157.56);
  --chart-4: oklch(0.249 0.022 158.751);
  --chart-5: oklch(0.758 0.176 152.881);
}