Skip to content

CSS: mask ​

.instui-mask — An in-flow overlay that fills its positioned parent and centres its content — e.g. a spinner over a card. For a modal, prefer a native <dialog> (its ::backdrop is the mask). Every one of these modifiers is also available globally (bare, or chained onto any other component) — see the mask global utility.

Source: mask.css

Usage ​

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/mask.css";

Examples ​

html
<div style="position: relative">
  <div class="instui-mask">
    <span class="instui-spinner" role="status" aria-label="Loading"></span>
  </div>
</div>

Modifiers ​

ModifierDescription
.-blurBlur what's behind the mask with a backdrop-filter.
.-fullscreenFixed to the viewport, covering it at a high z-index.

Conditions ​

TypeQueryDescription
media(prefers-reduced-transparency: reduce)—

Accessibility ​

A contained spinner honors reduced motion without hiding the overlay or loading indicator. Keep its status role and meaningful loading label.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
reflow-at-320pxWCAG 2.2 1.4.10PassPassPassPass
text-spacing-no-clippingWCAG 2.2 1.4.12PassPassPassPass
Screen reader (simulated)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
AnnouncementsPassPassPassPass

These automated results do not establish that the page meets WCAG; manual review is still needed.

Tokens consumed ​

TokenTypeValue
--instui-component-mask-background-color<color>LightDarklight-dark(rgba(255,255,255,0.75), rgba(28,34,43,0.75))