Skip to content

CSS: icon ​

.instui-icon — The icon system: .instui-icon sizing plus the shared -icon-<name> painter that masks a glyph (in currentColor) before any element.

Source: icon.css

Usage ​

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

Modifiers ​

ModifierDescription
.-icon-*Set the glyph token (--pantoken-glyph) and render it via the shared painter (for example -icon-search).

Pseudo-elements ​

Pseudo-elementDescription
::beforeThe glyph itself: a 1em box masked from --pantoken-glyph and filled with currentColor.

Conditions ​

TypeQueryDescription
media(forced-colors: active)—

Accessibility ​

The glyph is decorative, so mark it aria-hidden="true"; give it a role or label only when the icon conveys meaning on its own.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
forced-colors-focus-visibleWCAG 2.2 1.4.11, 2.4.7PassPassPassPass
reduced-motion-respectedWCAG 2.2 2.3.3, 2.2.2PassPassPassPass
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
--pantoken-glyph<url>url("data:image/svg+xml