Default theme driven by shared WarUI design tokens
WarGrid renders with the default WarUI light theme. Every color, spacing, radius, font and border value comes from shared --war-* CSS custom properties, so the grid matches other WarUI components without extra configuration. This example establishes the token contract that all later theming features build on.
Planned. This page shows the specification from issue #205. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A 50-row grid next to a WarUI button and text input, all in the default light theme. A side panel lists the resolved token values.
Expected behavior
Hovering a grid region shows the token names that style it. The grid header, borders and focus ring match the sibling WarUI components.
Planned API surface
theme option--war-color-* tokens--war-space-* tokens--war-radius-* tokens--war-font-* tokens--war-grid-* component tokensgetComputedTokens() methodAcceptance criteria
- All visual values in the grid stylesheet reference --war-* custom properties, with no hard-coded colors outside the fallback layer (pending)
- Grid-specific tokens (--war-grid-*) default to references to global tokens, not to literal values (pending)
- The focus ring on a grid cell uses the same token as the focus ring on WarUI buttons (pending)
- The grid renders correctly when no theme option is passed (pending)
- getComputedTokens() returns a map of token names to their resolved values for the grid host (pending)