Bandolier is a shadcn/ui theme built around a cyan primary color (#368db5) with blue accents (#364db5). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#368db5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010304black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #368db5steelblue | #368db5steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #36b59dlightseagreen | #36b59dlightseagreen |
| Secondary foreground | #071815black | #071815black |
| Muted | #d3e4e1gainsboro | #1b2c29darkslategray |
| Muted foreground | #3b4f4bdarkslategray | #b0c4c1silver |
| Accent | #364db5darkslateblue | #364db5darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #893606saddlebrown | #f56a19chocolate |
| Destructive foreground | #fdd9c4bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #368db5steelblue | #368db5steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.60:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 3.74:1 | AA Large |
| Secondary button | 7.15:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Bandolier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.009 221.109);
--muted: oklch(0.904 0.018 183.774);
--muted-foreground: oklch(0.41 0.026 182.471);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.009 221.109);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.009 221.109);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.607 0.102 232.085);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.698 0.114 177.772);
--secondary-foreground: oklch(0.191 0.024 180.506);
--accent: oklch(0.465 0.166 269.315);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.443 0.125 43.89);
--destructive-foreground: oklch(0.91 0.049 51.897);
--ring: oklch(0.607 0.102 232.085);
--chart-1: oklch(0.607 0.102 232.085);
--chart-2: oklch(0.698 0.114 177.772);
--chart-3: oklch(0.465 0.166 269.315);
--chart-4: oklch(0.731 0.12 177.732);
--chart-5: oklch(0.611 0.106 232.538);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.277 0.023 181.905);
--muted-foreground: oklch(0.805 0.023 183.528);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.607 0.102 232.085);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.698 0.114 177.772);
--secondary-foreground: oklch(0.191 0.024 180.506);
--accent: oklch(0.465 0.166 269.315);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.687 0.19 44.419);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.607 0.102 232.085);
--chart-1: oklch(0.607 0.102 232.085);
--chart-2: oklch(0.698 0.114 177.772);
--chart-3: oklch(0.465 0.166 269.315);
--chart-4: oklch(0.731 0.12 177.732);
--chart-5: oklch(0.611 0.106 232.538);
}