Skip to content
astrostyle v0.6.2

Utilities

Single-purpose classes in the last cascade layer: they win over everything else in astrostyle, without !important. Leave the layer out with $emit-utilities: false.

Text roles 01

ap-u-text-display

ap-u-text-screen-title

ap-u-text-panel-title

ap-u-text-body

ap-u-text-data

ap-u-text-label

ap-u-text-caption

Truncate 02

ap-u-truncate keeps a single line and ends it with an ellipsis when the text is longer than its box, like this sentence that keeps going far beyond the edge.

Visually hidden 03

ap-u-visually-hidden hides content from the eyes but not from screen readers. ap-u-visually-hidden-focusable comes back while focused: press Tab from the top of this page to see the skip link.

Responsive display 04

Display utilities have mobile-first variants: ap-u-hidden@md hides from the md breakpoint up. Resize the window.

below sm sm to md md to lg lg and up