Boxy Tomorrow is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#414549). The light mode uses a neutral background (#1d1f20). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#1d1f20).
| Token | Light | Dark |
|---|---|---|
| Background | #1d1f20black | #1d1f20black |
| Foreground | #c5c9c6silver | #c5c9c6silver |
| Card | #18191bblack | #18191bblack |
| Card foreground | #d2d5d3lightgrey | #d2d5d3lightgrey |
| Popover | #161718black | #161718black |
| Popover foreground | #dfe1e0gainsboro | #dfe1e0gainsboro |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #24292edarkslategray | #24292edarkslategray |
| Muted foreground | #9ea8b3darkgray | #9ea8b3darkgray |
| Accent | #414549darkslategray | #414549darkslategray |
| Accent foreground | #dcdee0gainsboro | #dcdee0gainsboro |
| Destructive | #e6311aorangered | #e6311aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Input | #333333darkslategray | #333333darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.91:1 | AAA |
| Text on card | 11.85:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 4.36:1 | AA Large |
| Text on background | 9.91:1 | AAA |
| Text on card | 11.85:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Boxy Tomorrow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.236 0.004 248.017);
--foreground: oklch(0.831 0.005 157.147);
--muted: oklch(0.277 0.011 248.24);
--muted-foreground: oklch(0.728 0.019 248.091);
--popover: oklch(0.203 0.003 247.999);
--popover-foreground: oklch(0.909 0.003 157.208);
--card: oklch(0.215 0.004 248.006);
--card-foreground: oklch(0.87 0.004 157.179);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.009 248.058);
--accent-foreground: oklch(0.899 0.003 247.862);
--destructive: oklch(0.601 0.218 31.03);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.009 248.058);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.236 0.004 248.017);
--foreground: oklch(0.831 0.005 157.147);
--muted: oklch(0.277 0.011 248.24);
--muted-foreground: oklch(0.728 0.019 248.091);
--popover: oklch(0.203 0.003 247.999);
--popover-foreground: oklch(0.909 0.003 157.208);
--card: oklch(0.215 0.004 248.006);
--card-foreground: oklch(0.87 0.004 157.179);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.388 0.009 248.058);
--accent-foreground: oklch(0.899 0.003 247.862);
--destructive: oklch(0.601 0.218 31.03);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.388 0.009 248.058);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}