War is a shadcn/ui theme built around a teal primary color (#2ec28c) with cyan accents (#2eaec2). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#2ec28c) on a teal-tinted background (#060e0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e0bblack |
| Foreground | #06140fblack | #fcfdfdwhite |
| Card | #fcfcfcsnow | #08120eblack |
| Card foreground | #04100cblack | #ffffffwhite |
| Popover | #ffffffwhite | #060e0bblack |
| Popover foreground | #06140fblack | #fcfdfdwhite |
| Primary | #2ec28cmediumseagreen | #2ec28cmediumseagreen |
| Primary foreground | #071d15black | #071d15black |
| Secondary | #2ec241limegreen | #2ec241limegreen |
| Secondary foreground | #071d0ablack | #071d0ablack |
| Muted | #eaf6ebhoneydew | #09150bblack |
| Muted foreground | #39463bdarkslategray | #b9c6bbsilver |
| Accent | #2eaec2lightseagreen | #2eaec2lightseagreen |
| Accent foreground | #071a1dblack | #071a1dblack |
| Destructive | #c55011chocolate | #eb6319chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2ec28cmediumseagreen | #2ec28cmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 8.91:1 | AAA |
| Accent | 6.79:1 | AA |
| Destructive | 4.63:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 10.52:1 | AAA |
| Accent | 6.79:1 | AA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use War in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.024 168.672);
--muted: oklch(0.961 0.019 149.436);
--muted-foreground: oklch(0.38 0.025 148.839);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.024 168.672);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.159 0.02 170.155);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.726 0.145 162.963);
--primary-foreground: oklch(0.209 0.033 166.688);
--secondary: oklch(0.714 0.209 144.696);
--secondary-foreground: oklch(0.206 0.047 146.542);
--accent: oklch(0.693 0.11 210.397);
--accent-foreground: oklch(0.203 0.026 208.526);
--destructive: oklch(0.578 0.164 43.045);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.726 0.145 162.963);
--chart-1: oklch(0.726 0.145 162.963);
--chart-2: oklch(0.714 0.209 144.696);
--chart-3: oklch(0.693 0.11 210.397);
--chart-4: oklch(0.747 0.219 144.674);
--chart-5: oklch(0.735 0.15 162.531);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.015 170.747);
--foreground: oklch(0.993 0.001 172.532);
--muted: oklch(0.182 0.028 147.589);
--muted-foreground: oklch(0.812 0.021 149.364);
--popover: oklch(0.155 0.015 170.747);
--popover-foreground: oklch(0.993 0.001 172.532);
--card: oklch(0.17 0.018 169.456);
--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.726 0.145 162.963);
--primary-foreground: oklch(0.209 0.033 166.688);
--secondary: oklch(0.714 0.209 144.696);
--secondary-foreground: oklch(0.206 0.047 146.542);
--accent: oklch(0.693 0.11 210.397);
--accent-foreground: oklch(0.203 0.026 208.526);
--destructive: oklch(0.662 0.185 43.328);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.726 0.145 162.963);
--chart-1: oklch(0.726 0.145 162.963);
--chart-2: oklch(0.714 0.209 144.696);
--chart-3: oklch(0.693 0.11 210.397);
--chart-4: oklch(0.747 0.219 144.674);
--chart-5: oklch(0.735 0.15 162.531);
}