Style Encapsulation and Theming per Adapter
Specifies how grid themes (CSS custom properties) work with Shadow DOM in the custom element, Angular ViewEncapsulation and Blazor CSS isolation. Theme tokens and part selectors reach the grid predictably in every adapter.
Planned. This page shows the specification from issue #178. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
The same brand theme applied across adapter tabs, with a token editor.
Expected behavior
Token edits restyle every adapter the same way. Part selectors work through Shadow DOM, and the encapsulation docs show the working patterns.
Planned API surface
CSS custom properties --war-grid-*::part() namestheme attribute/propencapsulation guidanceAcceptance criteria
- Tokens apply identically across adapters (visual regression test) (pending)
- ::part names are stable and documented (pending)
- No adapter requires !important for theming (pending)
- Dark/high-contrast themes work in all modes (pending)