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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 10.51:1 | AAA |
| Muted text | 4.19:1 | AA Large |
| Accent | 7.57:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 4.51:1 | AA |
| Secondary button | 10.51:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 3.74:1 | AA Large |
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);
}