BorderWhite is a shadcn/ui theme built around a neutral gray primary color (#b5bbbf) with neutral gray accents (#bbbfb5). The light mode uses a neutral background (#f7fafd). Dark mode keeps the neutral gray primary (#b5bbbf) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #000000black |
| Foreground | #050b10black | #ffffffwhite |
| Card | #f3f8fcaliceblue | #030303black |
| Card foreground | #03080cblack | #ffffffwhite |
| Popover | #f7fafdghostwhite | #000000black |
| Popover foreground | #050b10black | #ffffffwhite |
| Primary | #b5bbbfsilver | #b5bbbfsilver |
| Primary foreground | #1f2223black | #1f2223black |
| Secondary | #bfb5bbsilver | #bfb5bbsilver |
| Secondary foreground | #231f22black | #231f22black |
| Muted | #e7dfe4gainsboro | #20181dblack |
| Muted foreground | #685560dimgray | #aa97a3darkgray |
| Accent | #bbbfb5silver | #bbbfb5silver |
| Accent foreground | #22231fblack | #22231fblack |
| Destructive | #9b100ddarkred | #e61714red |
| Destructive foreground | #fcdfdemistyrose | #ffffffwhite |
| Border | #e5e9eblavender | #191d1fblack |
| Input | #e5e9eblavender | #191d1fblack |
| Ring | #b5bbbfsilver | #b5bbbfsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 5.24:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.26:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use BorderWhite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.005 236.507);
--foreground: oklch(0.145 0.016 234.025);
--muted: oklch(0.911 0.011 340.514);
--muted-foreground: oklch(0.472 0.03 341.627);
--popover: oklch(0.985 0.005 236.507);
--popover-foreground: oklch(0.145 0.016 234.025);
--card: oklch(0.977 0.007 236.544);
--card-foreground: oklch(0.132 0.014 230.227);
--border: oklch(0.931 0.005 236.507);
--input: oklch(0.931 0.005 236.507);
--primary: oklch(0.789 0.008 236.59);
--primary-foreground: oklch(0.248 0.005 236.756);
--secondary: oklch(0.784 0.013 340.621);
--secondary-foreground: oklch(0.245 0.009 341.023);
--accent: oklch(0.799 0.014 124.597);
--accent-foreground: oklch(0.254 0.009 124.854);
--destructive: oklch(0.439 0.171 28.541);
--destructive-foreground: oklch(0.927 0.033 18.921);
--ring: oklch(0.789 0.008 236.59);
--chart-1: oklch(0.789 0.008 236.59);
--chart-2: oklch(0.784 0.013 340.621);
--chart-3: oklch(0.799 0.014 124.597);
--chart-4: oklch(0.808 0.012 340.565);
--chart-5: oklch(0.789 0.012 236.657);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.221 0.016 341.832);
--muted-foreground: oklch(0.697 0.027 341.1);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.227 0.008 236.968);
--input: oklch(0.227 0.008 236.968);
--primary: oklch(0.789 0.008 236.59);
--primary-foreground: oklch(0.248 0.005 236.756);
--secondary: oklch(0.784 0.013 340.621);
--secondary-foreground: oklch(0.245 0.009 341.023);
--accent: oklch(0.799 0.014 124.597);
--accent-foreground: oklch(0.254 0.009 124.854);
--destructive: oklch(0.587 0.232 28.781);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.789 0.008 236.59);
--chart-1: oklch(0.789 0.008 236.59);
--chart-2: oklch(0.784 0.013 340.621);
--chart-3: oklch(0.799 0.014 124.597);
--chart-4: oklch(0.808 0.012 340.565);
--chart-5: oklch(0.789 0.012 236.657);
}