Ironclad is a shadcn/ui theme built around a vivid deep yellow primary color (#707401) with vivid deep purple accents (#740170). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#707401) on a neutral background (#040401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040401black |
| Foreground | #080802black | #fbfbf9snow |
| Card | #ffffffwhite | #040401black |
| Card foreground | #080802black | #fbfbf9snow |
| Popover | #ffffffwhite | #040401black |
| Popover foreground | #080802black | #fbfbf9snow |
| Primary | #707401olive | #707401olive |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #017074teal | #017074teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4f1f1lavender | #0e1a1bblack |
| Muted foreground | #4e5f5fdimgray | #a0b0b1darkgray |
| Accent | #740170purple | #740170purple |
| Accent foreground | #fea9fbviolet | #fea9fbviolet |
| Destructive | #6f1301maroon | #fd411corangered |
| Destructive foreground | #feb3a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #707401olive | #707401olive |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 5.85:1 | AA |
| Muted text | 5.79:1 | AA |
| Accent | 6.18:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 5.00:1 | AA |
| Secondary button | 5.85:1 | AA |
| Muted text | 7.87:1 | AAA |
| Accent | 6.18:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Ironclad in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.02 110.072);
--muted: oklch(0.948 0.013 199.415);
--muted-foreground: oklch(0.471 0.021 199.052);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.02 110.072);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.02 110.072);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.538 0.119 112.053);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.084 198.96);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.39 0.177 330.072);
--accent-foreground: oklch(0.844 0.143 327.9);
--destructive: oklch(0.353 0.128 33.187);
--destructive-foreground: oklch(0.834 0.091 31.651);
--ring: oklch(0.538 0.119 112.053);
--chart-1: oklch(0.538 0.119 112.053);
--chart-2: oklch(0.496 0.084 198.96);
--chart-3: oklch(0.39 0.177 330.072);
--chart-4: oklch(0.542 0.092 199.012);
--chart-5: oklch(0.544 0.121 112.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.014 109.814);
--foreground: oklch(0.987 0.003 107.987);
--muted: oklch(0.208 0.018 198.628);
--muted-foreground: oklch(0.746 0.019 199.275);
--popover: oklch(0.103 0.014 109.814);
--popover-foreground: oklch(0.987 0.003 107.987);
--card: oklch(0.103 0.014 109.814);
--card-foreground: oklch(0.987 0.003 107.987);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.538 0.119 112.053);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.496 0.084 198.96);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.39 0.177 330.072);
--accent-foreground: oklch(0.844 0.143 327.9);
--destructive: oklch(0.654 0.228 32.794);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.538 0.119 112.053);
--chart-1: oklch(0.538 0.119 112.053);
--chart-2: oklch(0.496 0.084 198.96);
--chart-3: oklch(0.39 0.177 330.072);
--chart-4: oklch(0.542 0.092 199.012);
--chart-5: oklch(0.544 0.121 112.094);
}