WarUI

Multiple scoped themes on one page

GRID-A25-F07P1baselinePlanned

Different grids, or a grid inside a themed panel, can use different themes and densities at the same time. This supports dark sidebars, embedded previews and admin consoles without global side effects.

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 light page with a dark side panel containing a grid, and a light main grid.

Expected behavior

Each region renders independently. Nesting a grid inherits the nearest ancestor theme unless the grid sets its own theme option.

Planned API surface

data-war-theme attributedata-war-density attributetheme optiondensity option

Acceptance criteria

  • The nearest ancestor data-war-theme wins for a grid with no explicit option (pending)
  • Popups (filter menus, editors, tooltips) use the theme of the grid that opened them, even when portalled to body (pending)
  • Two grids with different themes can coexist without style leakage (pending)
  • Density and theme scopes can be nested independently (pending)