Blade is a shadcn/ui theme built around a yellow primary color (#c4ca21) with muted light yellow accents (#d3d3ca). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#c4ca21) on a neutral background (#070803).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070803black |
| Foreground | #080901black | #f9f9f6whitesmoke |
| Card | #fdfdf6snow | #0b0b04black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #fdfdf6snow | #0b0b04black |
| Popover foreground | #040401black | #fbfbf9snow |
| Primary | #c4ca21goldenrod | #c4ca21goldenrod |
| Primary foreground | #1a1a04black | #1a1a04black |
| Secondary | #d3d3calightgrey | #1f1f1eblack |
| Secondary foreground | #3b3b30darkslategray | #b9b9b6silver |
| Muted | #eaebd1antiquewhite | #2d2e14black |
| Muted foreground | #6b6c51dimgray | #adae93darkgray |
| Accent | #d3d3calightgrey | #1f1f1eblack |
| Accent foreground | #3b3b30darkslategray | #b9b9b6silver |
| Destructive | #e24e03orangered | #fb6418orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4ca21goldenrod | #c4ca21goldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 7.53:1 | AAA |
| Destructive | 3.94:1 | AA Large |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 9.88:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Blade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 108.022);
--foreground: oklch(0.134 0.022 110.241);
--muted: oklch(0.932 0.034 108.602);
--muted-foreground: oklch(0.522 0.04 109.282);
--popover: oklch(0.993 0.009 108.105);
--popover-foreground: oklch(0.107 0.018 110.241);
--card: oklch(0.993 0.009 108.105);
--card-foreground: oklch(0.107 0.018 110.241);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.807 0.171 111.765);
--primary-foreground: oklch(0.212 0.038 110.959);
--secondary: oklch(0.865 0.013 108.217);
--secondary-foreground: oklch(0.348 0.018 108.865);
--accent: oklch(0.865 0.013 108.217);
--accent-foreground: oklch(0.348 0.018 108.865);
--destructive: oklch(0.621 0.196 39.484);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.807 0.171 111.765);
--chart-1: oklch(0.807 0.171 111.765);
--chart-2: oklch(0.865 0.013 108.217);
--chart-3: oklch(0.865 0.013 108.217);
--chart-4: oklch(0.887 0.011 108.167);
--chart-5: oklch(0.818 0.175 111.822);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.015 109.649);
--foreground: oklch(0.98 0.004 108.008);
--muted: oklch(0.293 0.042 110.409);
--muted-foreground: oklch(0.742 0.037 108.827);
--popover: oklch(0.148 0.018 109.733);
--popover-foreground: oklch(0.987 0.002 107.985);
--card: oklch(0.148 0.018 109.733);
--card-foreground: oklch(0.987 0.002 107.985);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.807 0.171 111.765);
--primary-foreground: oklch(0.212 0.038 110.959);
--secondary: oklch(0.24 0.002 108.115);
--secondary-foreground: oklch(0.785 0.004 108.033);
--accent: oklch(0.24 0.002 108.115);
--accent-foreground: oklch(0.785 0.004 108.033);
--destructive: oklch(0.688 0.2 41.674);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.807 0.171 111.765);
--chart-1: oklch(0.807 0.171 111.765);
--chart-2: oklch(0.24 0.002 108.115);
--chart-3: oklch(0.24 0.002 108.115);
--chart-4: oklch(0.272 0.003 108.127);
--chart-5: oklch(0.818 0.175 111.822);
}