Ban is a shadcn/ui theme built around a near-white primary color (#f9fbfb) with near-white accents (#fbfbf9). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-white primary (#f9fbfb) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #050a0ablack |
| Foreground | #010404black | #fcfdfdwhite |
| Card | #f8fcfcmintcream | #060e0dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefdwhite | #050a0ablack |
| Popover foreground | #010404black | #fcfdfdwhite |
| Primary | #f9fbfbghostwhite | #f9fbfbghostwhite |
| Primary foreground | #263634darkslategray | #263634darkslategray |
| Secondary | #fbf9fbsnow | #fbf9fbsnow |
| Secondary foreground | #6d5071dimgray | #6d5071dimgray |
| Muted | #f4eaf5whitesmoke | #130a15black |
| Muted foreground | #4f3d52darkslategray | #bfadc2silver |
| Accent | #fbfbf9snow | #fbfbf9snow |
| Accent foreground | #363426darkslategray | #363426darkslategray |
| Destructive | #6f0a01maroon | #fd2a17orangered |
| Destructive foreground | #feaca4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9fbfbghostwhite | #f9fbfbghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 12.16:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 8.46:1 | AAA |
| Accent | 12.05:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 12.16:1 | AAA |
| Secondary button | 6.59:1 | AA |
| Muted text | 9.21:1 | AAA |
| Accent | 12.05:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Ban in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 187.688);
--foreground: oklch(0.1 0.013 187.153);
--muted: oklch(0.948 0.017 321.643);
--muted-foreground: oklch(0.387 0.043 321.883);
--popover: oklch(0.994 0.002 187.688);
--popover-foreground: oklch(0.1 0.013 187.153);
--card: oklch(0.988 0.005 187.626);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.986 0.002 187.702);
--primary-foreground: oklch(0.317 0.021 186.038);
--secondary: oklch(0.984 0.003 321.6);
--secondary-foreground: oklch(0.475 0.063 321.93);
--accent: oklch(0.986 0.002 99.371);
--accent-foreground: oklch(0.321 0.023 100.259);
--destructive: oklch(0.346 0.134 30.834);
--destructive-foreground: oklch(0.821 0.098 25.152);
--ring: oklch(0.986 0.002 187.702);
--chart-1: oklch(0.986 0.002 187.702);
--chart-2: oklch(0.984 0.003 321.6);
--chart-3: oklch(0.986 0.002 99.371);
--chart-4: oklch(1.008 0.001 141.588);
--chart-5: oklch(0.986 0.002 187.694);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 187.336);
--foreground: oklch(0.993 0.001 187.718);
--muted: oklch(0.163 0.026 321.991);
--muted-foreground: oklch(0.77 0.036 321.722);
--popover: oklch(0.14 0.011 187.336);
--popover-foreground: oklch(0.993 0.001 187.718);
--card: oklch(0.155 0.013 186.182);
--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.986 0.002 187.702);
--primary-foreground: oklch(0.317 0.021 186.038);
--secondary: oklch(0.984 0.003 321.6);
--secondary-foreground: oklch(0.475 0.063 321.93);
--accent: oklch(0.986 0.002 99.371);
--accent-foreground: oklch(0.321 0.023 100.259);
--destructive: oklch(0.637 0.243 30.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.986 0.002 187.702);
--chart-1: oklch(0.986 0.002 187.702);
--chart-2: oklch(0.984 0.003 321.6);
--chart-3: oklch(0.986 0.002 99.371);
--chart-4: oklch(1.008 0.001 141.588);
--chart-5: oklch(0.986 0.002 187.694);
}