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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.36:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.60:1 | AA |
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);
}