Skip to content

CSS: gap ​

.--gap-md — Flex/grid gap utilities on the spacing scale, short (--gap-sm) or long (--gap-small) spelling. Usable bare or chained onto any component (.instui-view.--gap-sm) — components that already set their own gap from a component-specific token may have it overridden.

Source: index.ts

Usage ​

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

Demo ​

Examples ​

Modifiers ​

ModifierDescription
.--gap-mdApplies the medium spacing token as the gap.
.--gap-*Gap utilities across short and long spacing-step spellings.

Accessibility ​

A gap changes spacing only; reading and focus order still follow the DOM. Keep gaps between interactive controls large enough to meet WCAG 2.5.8 target spacing.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
forced-colors-focus-visibleWCAG 2.2 1.4.11, 2.4.7PassPassPassPass
more-contrast-respectedWCAG 2.2 1.4.3, 1.4.6PassPassPassPass
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-shared-tokens-spacing-general-space-none<length>0rem
--instui-spacing-space-lg<length>1rem
--instui-spacing-space-md<length>0.75rem
--instui-spacing-space-sm<length>0.5rem
--instui-spacing-space-xl<length>1.5rem
--instui-spacing-space-xs<length>0.25rem
--instui-spacing-space2xl<length>2rem
--instui-spacing-space2xs<length>0.125rem