Armament is a shadcn/ui theme built around a muted green primary color (#7d884e) with muted purple accents (#884e7d). The light mode uses a neutral background (#fcfdf6). Dark mode keeps the muted green primary (#7d884e) on a green-tinted background (#0d0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdf6snow | #0d0e07black |
| Foreground | #121604black | #fbfbf9snow |
| Card | #fcfdf6snow | #0d0e07black |
| Card foreground | #121604black | #fbfbf9snow |
| Popover | #fcfdf6snow | #0d0e07black |
| Popover foreground | #121604black | #fbfbf9snow |
| Primary | #7d884edimgray | #7d884edimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4e7d88slategray | #4e7d88slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eceeeewhitesmoke | #111313black |
| Muted foreground | #4b5e63dimgray | #9cb0b4darkgray |
| Accent | #884e7ddimgray | #884e7ddimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b20e06firebrick | #f9392ftomato |
| Destructive foreground | #feeceblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d884edimgray | #7d884edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.02:1 | AAA |
| Text on card | 18.02:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 4.53:1 | AA |
| Muted text | 5.84:1 | AA |
| Accent | 6.10:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 3.81:1 | AA Large |
| Secondary button | 4.53:1 | AA |
| Muted text | 8.26:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Armament in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 115);
--foreground: oklch(0.189 0.034 117.749);
--muted: oklch(0.947 0.002 212.663);
--muted-foreground: oklch(0.469 0.025 212.883);
--popover: oklch(0.993 0.009 115);
--popover-foreground: oklch(0.189 0.034 117.749);
--card: oklch(0.993 0.009 115);
--card-foreground: oklch(0.189 0.034 117.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.604 0.081 117.403);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.561 0.054 213.489);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.101 334.002);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.484 0.192 29.56);
--destructive-foreground: oklch(0.958 0.02 21.159);
--ring: oklch(0.604 0.081 117.403);
--chart-1: oklch(0.604 0.081 117.403);
--chart-2: oklch(0.561 0.054 213.489);
--chart-3: oklch(0.509 0.101 334.002);
--chart-4: oklch(0.59 0.057 213.501);
--chart-5: oklch(0.613 0.089 117.637);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.016 116.208);
--foreground: oklch(0.987 0.003 114.879);
--muted: oklch(0.183 0.003 212.684);
--muted-foreground: oklch(0.743 0.023 212.735);
--popover: oklch(0.159 0.016 116.208);
--popover-foreground: oklch(0.987 0.003 114.879);
--card: oklch(0.159 0.016 116.208);
--card-foreground: oklch(0.987 0.003 114.879);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.604 0.081 117.403);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.561 0.054 213.489);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.101 334.002);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.642 0.228 28.529);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.081 117.403);
--chart-1: oklch(0.604 0.081 117.403);
--chart-2: oklch(0.561 0.054 213.489);
--chart-3: oklch(0.509 0.101 334.002);
--chart-4: oklch(0.59 0.057 213.501);
--chart-5: oklch(0.613 0.089 117.637);
}