Inverse
The Inverse utility applies the framework inverse color scheme to one element and its descendants. Use it for greater visual control, or to distinguish an active element and communicate a state transition without changing its siblings.
Usage
Add inverse to a container to apply the opposite of the screen's color scheme to that container and its descendants.
Use it as a visual treatment, or apply it semantically to identify the active item, selected row, or current state.
<div class="item inverse">
<div class="content">
<span class="title">Active item</span>
</div>
</div>
Active Collection Rows
Invert individual rows to make active resources scannable inside a longer collection. The row background, text, item metadata, and other framework paint change together.
<!-- Active row -->
<div class="item inverse item--emphasis-3 rounded--xsmall">
<div class="meta"></div>
<div class="content">
<span class="title title--small">Desk M1</span>
<span class="description">Occupied</span>
</div>
</div>
<!-- Inactive sibling -->
<div class="item bg--white rounded--xsmall">
<div class="meta"></div>
<div class="content">
<span class="title title--small">Desk M3</span>
<span class="description">Available</span>
</div>
</div>
Active Collection Cards
Use inverse cards when several resources share the same grid and only some need attention. The stronger surface separates occupied rooms from available rooms without changing the grid structure.
<div class="grid grid--cols-2 gap--small">
<div class="bg--white rounded--xsmall p--3">
<div class="title">Available</div>
</div>
<div class="inverse rounded--xsmall p--3">
<div class="title">Marketing Sync</div>
<div class="description">11:00 - 12:30</div>
</div>
</div>
State Transitions
Apply inverse to a larger status surface when a state transition should change the whole composition. For example, an occupied meeting room can invert its schedule, dividers, and attendee details as one semantic state.
<div class="view view--full">
<div class="layout layout--col gap--large p--16 inverse rounded">
<div class="flex flex--col flex--center gap--large h--full">
<div class="text--large font--regular">11:00 - 12:30</div>
<div class="divider w--full"></div>
<div class="text--mega font--bold text--center">Marketing Sync</div>
<div class="divider w--full"></div>
<div class="text--large font--regular">[email protected] & 5 more</div>
</div>
</div>
</div>
Paint and Cascade Behavior
Inverse flips framework background, text, border, stroke, semantic, icon, chart, and component-slot paint for the element subtree. It applies dark paint on a light screen and light paint on a dark-mode screen without changing siblings.
A slot value declared directly on the element overrides the inverse default, and a theme can define its own inverse treatment with .screen--theme-<id> .inverse.
See
Theme Slots
Theme Slots
Every themable surface: semantic channels, component slots, utility remaps, border lines, and the chart ramp
Every surface a theme can re-point, with the mixin that sets it: semantic channels, component slots, utility remaps, border lines, and the chart ramp. Slots take token references, so each one still resolves through the device mode at render time.
and
Themes
Themes
Opt-in stylesheets that re-theme screens while preserving device-capability rendering
Themes are standalone stylesheets that re-point semantic channels, component slots, and utility tokens at different palette tokens. A themed screen still renders through its device mode: dither patterns on 1-bit, palette images on limited color, solids on full color.
.
Unlike the invert image filter, inverse changes semantic framework paint instead of flipping pixels.
dark: utilities still require screen--dark-mode; inverse changes paint, not variant activation.