Steel is a shadcn/ui theme built around an indigo primary color (#381eb8) with violet accents (#851eb8). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the indigo primary (#381eb8) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030208black |
| Foreground | #020104black | #f6f5fawhitesmoke |
| Card | #f4f3fcghostwhite | #05030cblack |
| Card foreground | #000000black | #f9f8fbghostwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #020104black | #f6f5fawhitesmoke |
| Primary | #381eb8darkslateblue | #381eb8darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1e51b8royalblue | #1e51b8royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbe0ebgainsboro | #141924black |
| Muted foreground | #494f5adarkslategray | #a5abb6darkgray |
| Accent | #851eb8darkorchid | #851eb8darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c51407firebrick | #ec1809red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #381eb8darkslateblue | #381eb8darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 7.30:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 10.26:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.30:1 | AAA |
| Destructive | 4.46:1 | AA Large |
Paste this into your globals.css to use Steel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 293.913);
--foreground: oklch(0.076 0.018 292.418);
--muted: oklch(0.906 0.016 264.486);
--muted-foreground: oklch(0.426 0.019 264.346);
--popover: oklch(0.978 0.008 293.913);
--popover-foreground: oklch(0.076 0.018 292.418);
--card: oklch(0.967 0.012 293.832);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.399 0.219 277.346);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.467 0.172 262.125);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.222 310.397);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.523 0.206 29.779);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.399 0.219 277.346);
--chart-1: oklch(0.399 0.219 277.346);
--chart-2: oklch(0.467 0.172 262.125);
--chart-3: oklch(0.484 0.222 310.397);
--chart-4: oklch(0.49 0.182 262.122);
--chart-5: oklch(0.398 0.225 276.361);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.022 292.418);
--foreground: oklch(0.972 0.006 293.948);
--muted: oklch(0.214 0.024 263.873);
--muted-foreground: oklch(0.739 0.017 264.466);
--popover: oklch(0.096 0.022 292.418);
--popover-foreground: oklch(0.972 0.006 293.948);
--card: oklch(0.11 0.026 292.25);
--card-foreground: oklch(0.981 0.004 293.988);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.399 0.219 277.346);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.467 0.172 262.125);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.484 0.222 310.397);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.599 0.237 29.752);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.399 0.219 277.346);
--chart-1: oklch(0.399 0.219 277.346);
--chart-2: oklch(0.467 0.172 262.125);
--chart-3: oklch(0.484 0.222 310.397);
--chart-4: oklch(0.49 0.182 262.122);
--chart-5: oklch(0.398 0.225 276.361);
}