Army is a shadcn/ui theme built around a muted deep green primary color (#11120d) with muted light green accents (#eaeae6). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#11120d) on a green-tinted background (#0f1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0f1005black |
| Foreground | #040401black | #fdfdfbsnow |
| Card | #fcfcf7snow | #121406black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfefbwhite | #0f1005black |
| Popover foreground | #040401black | #fdfdfbsnow |
| Primary | #11120dblack | #11120dblack |
| Primary foreground | #b3b69adarkgray | #b3b69adarkgray |
| Secondary | #eaeae6linen | #151513black |
| Secondary foreground | #555648darkolivegreen | #b1b1a9darkgray |
| Muted | #e5e6e0gainsboro | #1e1f19black |
| Muted foreground | #4e503fdarkolivegreen | #bec0afsilver |
| Accent | #eaeae6linen | #151513black |
| Accent foreground | #555648darkolivegreen | #b1b1a9darkgray |
| Destructive | #c71100firebrick | #ff3624orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #11120dblack | #11120dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 6.19:1 | AA |
| Muted text | 6.58:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 5.99:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 8.95:1 | AAA |
| Accent | 8.44:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Army in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 111.842);
--foreground: oklch(0.107 0.019 113.291);
--muted: oklch(0.923 0.008 111.948);
--muted-foreground: oklch(0.424 0.027 112.977);
--popover: oklch(0.995 0.003 111.842);
--popover-foreground: oklch(0.107 0.019 113.291);
--card: oklch(0.99 0.007 111.905);
--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.179 0.01 112.794);
--primary-foreground: oklch(0.767 0.038 112.712);
--secondary: oklch(0.936 0.006 111.89);
--secondary-foreground: oklch(0.448 0.023 112.716);
--accent: oklch(0.936 0.006 111.89);
--accent-foreground: oklch(0.448 0.023 112.716);
--destructive: oklch(0.525 0.209 30.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.179 0.01 112.794);
--chart-1: oklch(0.179 0.01 112.794);
--chart-2: oklch(0.936 0.006 111.89);
--chart-3: oklch(0.936 0.006 111.89);
--chart-4: oklch(0.957 0.004 111.851);
--chart-5: oklch(0.18 0.012 112.965);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.167 0.024 113.9);
--foreground: oklch(0.995 0.003 111.829);
--muted: oklch(0.237 0.011 112.681);
--muted-foreground: oklch(0.802 0.024 112.33);
--popover: oklch(0.167 0.024 113.9);
--popover-foreground: oklch(0.995 0.003 111.829);
--card: oklch(0.184 0.027 114.306);
--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.179 0.01 112.794);
--primary-foreground: oklch(0.767 0.038 112.712);
--secondary: oklch(0.197 0.004 112.162);
--secondary-foreground: oklch(0.759 0.011 112.063);
--accent: oklch(0.197 0.004 112.162);
--accent-foreground: oklch(0.759 0.011 112.063);
--destructive: oklch(0.65 0.237 29.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.179 0.01 112.794);
--chart-1: oklch(0.179 0.01 112.794);
--chart-2: oklch(0.197 0.004 112.162);
--chart-3: oklch(0.197 0.004 112.162);
--chart-4: oklch(0.231 0.005 112.208);
--chart-5: oklch(0.18 0.012 112.965);
}