WarUI

High-Contrast Theme and Contrast Compliance

GRID-A23-F18P1baselinePlanned

WarGrid ships a high-contrast theme. All bundled themes meet 4.5:1 for text and 3:1 for UI components and graphical states, so the defaults satisfy WCAG 1.4.3 and 1.4.11. The theme also honours prefers-contrast: more.

Planned. This page shows the specification from issue #203. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid in the default theme with a contrast audit table listing token pairs and ratios.

Expected behavior

The audit table shows a ratio for every pair and a pass/fail result. All bundled themes pass, and editing a token in the demo can surface a failure.

Planned API surface

themeautoContrastThemecontrastTokens

Acceptance criteria

  • Body text, headers and placeholder text meet 4.5:1 in all bundled themes. (pending)
  • Borders conveying structure, checkbox outlines and sort icons meet 3:1. (pending)
  • When autoContrastTheme is on, prefers-contrast: more applies the high-contrast tokens. (pending)
  • Disabled text is visually distinct, with its exemption documented. (pending)