Boundary is a shadcn/ui theme built around a vivid purple primary color (#ed45c3) with neutral gray accents (#dddadc). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#ed45c3) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0a0509black |
| Foreground | #0e020bblack | #ffffffwhite |
| Card | #fefbfdsnow | #0a0509black |
| Card foreground | #0e020bblack | #ffffffwhite |
| Popover | #fefbfdsnow | #0a0509black |
| Popover foreground | #0e020bblack | #ffffffwhite |
| Primary | #ed45c3hotpink | #ed45c3hotpink |
| Primary foreground | #000000black | #000000black |
| Secondary | #dddadcgainsboro | #281f26black |
| Secondary foreground | #463f44darkslategray | #c5b4c1silver |
| Muted | #dfd8ddgainsboro | #272025black |
| Muted foreground | #4b3a47darkslategray | #c5b4c1silver |
| Accent | #dddadcgainsboro | #281f26black |
| Accent foreground | #463f44darkslategray | #c5b4c1silver |
| Destructive | #671c0amaroon | #ed5f3btomato |
| Destructive foreground | #f7baablightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ed45c3hotpink | #ed45c3hotpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.34:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.23:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use Boundary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 333.955);
--foreground: oklch(0.119 0.039 335.741);
--muted: oklch(0.889 0.01 334.057);
--muted-foreground: oklch(0.371 0.032 335.258);
--popover: oklch(0.991 0.005 333.955);
--popover-foreground: oklch(0.119 0.039 335.741);
--card: oklch(0.991 0.005 333.955);
--card-foreground: oklch(0.119 0.039 335.741);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.671 0.238 339.753);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.89 0.005 333.977);
--secondary-foreground: oklch(0.376 0.012 334.414);
--accent: oklch(0.89 0.005 333.977);
--accent-foreground: oklch(0.376 0.012 334.414);
--destructive: oklch(0.346 0.11 34.683);
--destructive-foreground: oklch(0.841 0.074 34.469);
--ring: oklch(0.671 0.238 339.753);
--chart-1: oklch(0.671 0.238 339.753);
--chart-2: oklch(0.89 0.005 333.977);
--chart-3: oklch(0.89 0.005 333.977);
--chart-4: oklch(0.914 0.004 333.953);
--chart-5: oklch(0.674 0.244 339.943);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.015 334.308);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.013 334.715);
--muted-foreground: oklch(0.789 0.026 334.431);
--popover: oklch(0.127 0.015 334.308);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.015 334.308);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.671 0.238 339.753);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.253 0.019 335.082);
--secondary-foreground: oklch(0.789 0.026 334.431);
--accent: oklch(0.253 0.019 335.082);
--accent-foreground: oklch(0.789 0.026 334.431);
--destructive: oklch(0.662 0.183 35.149);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.671 0.238 339.753);
--chart-1: oklch(0.671 0.238 339.753);
--chart-2: oklch(0.253 0.019 335.082);
--chart-3: oklch(0.253 0.019 335.082);
--chart-4: oklch(0.284 0.022 335.144);
--chart-5: oklch(0.674 0.244 339.943);
}