Theming

Every piece reads its colours, fonts and status shapes from one file of tokens, styles/highcommand/tokens.css, which the theme installs. Change a token and the whole kit follows, the maps and charts included.

The tokens that matter

--hq-bg-0 to -2
Surfaces, from the page to a raised panel.
--hq-fg-1 to -3
Ink, from headings to quiet labels.
--hq-line
Hairlines and borders.
--hq-accent
Selection, focus and links: the one colour most brands change.
--hq-st-*
The statuses (on track, at risk, late, blocked, neutral), each with a text, a fill and a line colour.
--hq-font-ui, -mono
The two typefaces.

Change the accent

Override it after the kit's own CSS. Give the light theme a deeper shade so it keeps its contrast on white; light can come from the attribute or from the visitor's system, so set both.

/* app/globals.css, after the High Command imports */
:root { --hq-accent: #8b7bff; }                      /* dark, the default */
:root[data-theme="light"] { --hq-accent: #5a3fd6; }  /* light, when you set it */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --hq-accent: #5a3fd6; }  /* light, from the visitor's system */
}

Light and dark

Dark is the default. With no attribute the kit follows the visitor's system; data-theme on <html> pins one. Maps and canvases read the same tokens and repaint when it changes.

// pin a theme, or remove the attribute to follow the visitor's system again
document.documentElement.dataset.theme = "light";   // or "dark"
delete document.documentElement.dataset.theme;

Fonts

The kit ships with Geist and Geist Mono. Load your own faces as you normally would, then point the two tokens at them.

:root {
  --hq-font-ui: "Inter", system-ui, sans-serif;
  --hq-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

Status colours

You can recolour the statuses, but keep their shapes. The shape is what lets someone who can't tell the colours apart still read a status, and it is what the kit's colour-blind safety rests on.

Your own parts, on the same tokens

The theme maps the tokens to Tailwind classes, so what you build beside the kit matches it and follows the theme.

<div className="bg-hq-bg-1 text-hq-fg-2 border border-hq-line">
  Your own panel, on the kit's surfaces
</div>