Overriding individual tokens with plain CSS
Any token can be overridden at any CSS scope, whether :root, a container or a single grid, using standard custom properties. No build step or JavaScript is needed, which keeps theming accessible to designers.
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
Two grids side by side. The right one is wrapped in .brand-zone.
Expected behavior
Edits apply only at the selected scope, and the CSS panel shows the exact declarations being used. Derived states such as hover and selection tint follow the overridden accent color.
Planned API surface
--war-grid-header-bg token--war-color-accent token--war-grid-border-color tokenCSS custom property cascadeAcceptance criteria
- Overriding --war-color-accent updates the selection, focus, checkbox and sort indicators (pending)
- Overrides at a container scope do not affect grids outside that container (pending)
- Derived tokens are computed from base tokens with relative color or color-mix, with a documented fallback (pending)
- Invalid token values fall back to the default and log a dev-mode warning (pending)
- The generated CSS in the panel can be copied and pasted and works as shown (pending)