Steel for shadcn/ui

Steel is a shadcn/ui theme built around a light green primary color (#e3e7c5) with light green accents (#d2e7c5). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the light green primary (#e3e7c5) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fcfcf7snow
#030401black
Foreground
#040401black
#ffffffwhite
Card
#fcfcf7snow
#030401black
Card foreground
#040401black
#ffffffwhite
Popover
#fcfcf7snow
#030401black
Popover foreground
#040401black
#ffffffwhite
Primary
#e3e7c5gainsboro
#e3e7c5gainsboro
Primary foreground
#515723darkolivegreen
#515723darkolivegreen
Secondary
#e7dac5wheat
#e7dac5wheat
Secondary foreground
#574323darkolivegreen
#574323darkolivegreen
Muted
#f5f1eblinen
#14100ablack
Muted foreground
#6b655bdimgray
#a49d94darkgray
Accent
#d2e7c5lightgrey
#d2e7c5lightgrey
Accent foreground
#375723darkolivegreen
#375723darkolivegreen
Destructive
#83280csaddlebrown
#ed643btomato
Destructive foreground
#fad3c7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e7c5gainsboro
#e3e7c5gainsboro

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.04:1AA
Secondary button6.83:1AA
Muted text5.12:1AA
Accent6.28:1AA
Destructive6.71:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button6.04:1AA
Secondary button6.83:1AA
Muted text7.04:1AAA
Accent6.28:1AA
Destructive6.49:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 111.905);
  --foreground: oklch(0.104 0.015 113.023);
  --muted: oklch(0.959 0.009 79.916);
  --muted-foreground: oklch(0.51 0.017 79.832);
  --popover: oklch(0.99 0.007 111.905);
  --popover-foreground: oklch(0.104 0.015 113.023);
  --card: oklch(0.99 0.007 111.905);
  --card-foreground: oklch(0.104 0.015 113.023);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.917 0.045 112.701);
  --primary-foreground: oklch(0.439 0.074 115.031);
  --secondary: oklch(0.894 0.032 79.82);
  --secondary-foreground: oklch(0.397 0.054 78.087);
  --accent: oklch(0.904 0.051 133.387);
  --accent-foreground: oklch(0.419 0.087 134.925);
  --destructive: oklch(0.413 0.13 36.207);
  --destructive-foreground: oklch(0.896 0.047 37.596);
  --ring: oklch(0.917 0.045 112.701);
  --chart-1: oklch(0.917 0.045 112.701);
  --chart-2: oklch(0.894 0.032 79.82);
  --chart-3: oklch(0.904 0.051 133.387);
  --chart-4: oklch(0.914 0.026 79.855);
  --chart-5: oklch(0.92 0.049 112.761);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.011 112.758);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.014 79.454);
  --muted-foreground: oklch(0.7 0.016 79.878);
  --popover: oklch(0.101 0.011 112.758);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.101 0.011 112.758);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.917 0.045 112.701);
  --primary-foreground: oklch(0.439 0.074 115.031);
  --secondary: oklch(0.894 0.032 79.82);
  --secondary-foreground: oklch(0.397 0.054 78.087);
  --accent: oklch(0.904 0.051 133.387);
  --accent-foreground: oklch(0.419 0.087 134.925);
  --destructive: oklch(0.669 0.178 37.295);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.917 0.045 112.701);
  --chart-1: oklch(0.917 0.045 112.701);
  --chart-2: oklch(0.894 0.032 79.82);
  --chart-3: oklch(0.904 0.051 133.387);
  --chart-4: oklch(0.914 0.026 79.855);
  --chart-5: oklch(0.92 0.049 112.761);
}