Battalion is a shadcn/ui theme built around a muted red primary color (#786466) with muted blue accents (#646678). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#786466) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #070303black |
| Foreground | #040102black | #f8f7f7whitesmoke |
| Card | #fdf7f8snow | #0b0405black |
| Card foreground | #000000black | #faf9f9snow |
| Popover | #fdf7f8snow | #0b0405black |
| Popover foreground | #000000black | #faf9f9snow |
| Primary | #786466dimgray | #786466dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #667864dimgray | #667864dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff1eewhitesmoke | #0e110eblack |
| Muted foreground | #495e45darkolivegreen | #a4baa1darkgray |
| Accent | #646678dimgray | #646678dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a71a02firebrick | #fd5335tomato |
| Destructive foreground | #ffe1dcmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #786466dimgray | #786466dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 4.75:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 5.63:1 | AA |
| Destructive | 6.11:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 5.52:1 | AA |
| Secondary button | 4.75:1 | AA |
| Muted text | 9.17:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 6.46:1 | AA |
Paste this into your globals.css to use Battalion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 7.818);
--foreground: oklch(0.084 0.013 8.627);
--muted: oklch(0.956 0.004 141.581);
--muted-foreground: oklch(0.456 0.047 141.307);
--popover: oklch(0.981 0.006 7.889);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 7.889);
--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.522 0.026 8.94);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.551 0.036 141.407);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.516 0.027 278.493);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.468 0.177 31.799);
--destructive-foreground: oklch(0.932 0.034 29.636);
--ring: oklch(0.522 0.026 8.94);
--chart-1: oklch(0.522 0.026 8.94);
--chart-2: oklch(0.551 0.036 141.407);
--chart-3: oklch(0.516 0.027 278.493);
--chart-4: oklch(0.578 0.038 141.406);
--chart-5: oklch(0.518 0.035 9.367);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 8.513);
--foreground: oklch(0.976 0.002 7.795);
--muted: oklch(0.172 0.006 141.493);
--muted-foreground: oklch(0.765 0.042 141.439);
--popover: oklch(0.122 0.017 8.577);
--popover-foreground: oklch(0.984 0.001 7.779);
--card: oklch(0.122 0.017 8.577);
--card-foreground: oklch(0.984 0.001 7.779);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.522 0.026 8.94);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.551 0.036 141.407);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.516 0.027 278.493);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.673 0.211 32.374);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.522 0.026 8.94);
--chart-1: oklch(0.522 0.026 8.94);
--chart-2: oklch(0.551 0.036 141.407);
--chart-3: oklch(0.516 0.027 278.493);
--chart-4: oklch(0.578 0.038 141.406);
--chart-5: oklch(0.518 0.035 9.367);
}