OptionalappOptionalhcHigh-contrast override tokens (rides the mode="hc" value).
OptionallayerWrap all emitted rules in @layer <layer>{…} (and prepend SXL_THEME_LAYER_ORDER so the cascade
order is deterministic). Omit for an unlayered sheet (e.g. storybook one-offs). See SXL_THEME_LAYERS.
OptionalmodeOptionalscopeWrap the theme rules in @scope (<scopeSelector>){…} so this instance's tokens don't collide with
other instances or shadow DOM boundaries (design §6). When both layer and scope are set the nesting
is @layer <layer>{ @scope (<sel>){ rules } } — the layer-order statement stays top-level (layers are
document-global) and @scope binds only the rules. Inside a scope the defaults attach to :scope
(the scope root), not :root. Omit for a global sheet.
OptionalsurfaceOptionalsurfacesExtra surfaces: name → per-mode partial overrides (e.g. { grid: GRID_SURFACE, header: HEADER_SURFACE }).
App baseline per mode.