Steel for shadcn/ui

Steel is a shadcn/ui theme built around a vivid purple primary color (#d714b6) with vivid cyan accents (#14b6d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d714b6) on a purple-tinted background (#10040e).

Color palette

TokenLightDark
Background
#ffffffwhite
#10040eblack
Foreground
#0c040ablack
#fbf9fbsnow
Card
#fcfcfcsnow
#140512black
Card foreground
#080207black
#fdfcfdwhite
Popover
#fcfcfcsnow
#140512black
Popover foreground
#080207black
#fdfcfdwhite
Primary
#d714b6mediumvioletred
#d714b6mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b6d714yellowgreen
#b6d714yellowgreen
Secondary foreground
#181c03black
#181c03black
Muted
#eeefecwhitesmoke
#131310black
Muted foreground
#707458dimgray
#a3a78bdarkseagreen
Accent
#14b6d7darkturquoise
#14b6d7darkturquoise
Accent foreground
#03181cblack
#03181cblack
Destructive
#6f0606maroon
#f53d3dtomato
Destructive foreground
#fbadadlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d714b6mediumvioletred
#d714b6mediumvioletred

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.10:1AAA
Primary button4.51:1AA
Secondary button10.51:1AAA
Muted text4.19:1AA Large
Accent7.57:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.32:1AAA
Primary button4.51:1AA
Secondary button10.51:1AAA
Muted text7.47:1AAA
Accent7.57:1AAA
Destructive3.74:1AA Large

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.124 0.026 332.058);
  --muted: oklch(0.95 0.004 114.15);
  --muted-foreground: oklch(0.548 0.043 115.519);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.108 0.022 331.797);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.108 0.022 331.797);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.602 0.257 337.215);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.825 0.193 120.193);
  --secondary-foreground: oklch(0.215 0.045 117.801);
  --accent: oklch(0.717 0.125 217.028);
  --accent-foreground: oklch(0.192 0.03 211.937);
  --destructive: oklch(0.345 0.136 28.378);
  --destructive-foreground: oklch(0.821 0.092 19.23);
  --ring: oklch(0.602 0.257 337.215);
  --chart-1: oklch(0.602 0.257 337.215);
  --chart-2: oklch(0.825 0.193 120.193);
  --chart-3: oklch(0.717 0.125 217.028);
  --chart-4: oklch(0.865 0.203 120.223);
  --chart-5: oklch(0.608 0.262 337.387);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.032 332.938);
  --foreground: oklch(0.984 0.004 330.874);
  --muted: oklch(0.187 0.006 114.702);
  --muted-foreground: oklch(0.718 0.04 115.11);
  --popover: oklch(0.15 0.036 333.435);
  --popover-foreground: oklch(0.992 0.002 330.847);
  --card: oklch(0.15 0.036 333.435);
  --card-foreground: oklch(0.992 0.002 330.847);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.257 337.215);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.825 0.193 120.193);
  --secondary-foreground: oklch(0.215 0.045 117.801);
  --accent: oklch(0.717 0.125 217.028);
  --accent-foreground: oklch(0.192 0.03 211.937);
  --destructive: oklch(0.64 0.22 26.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.257 337.215);
  --chart-1: oklch(0.602 0.257 337.215);
  --chart-2: oklch(0.825 0.193 120.193);
  --chart-3: oklch(0.717 0.125 217.028);
  --chart-4: oklch(0.865 0.203 120.223);
  --chart-5: oklch(0.608 0.262 337.387);
}