Skip to content

Variants

Minimal set of CSS classes that add visual variation to the Semantic Styling, without affecting the underlying semantics.

Why do we need them?

The purpose of ARIA is to communicate semantics and interaction state to assistive technologies: pressed, expanded, selected, disabled, current, etc. Things like This button is visually less important is a presentation concern, not an accessibility semantic.

Available Variants

VariantDescriptionElements
.cardVisual container with background, shadow, and optional header/footerAny block element
.containerResponsive width wrapper with horizontal paddingAny block element
.secondaryLower-emphasis style for links and buttons<a>, <button>
.contrastHigh-contrast style for links, buttons, and accordions<a>, <button>, <details>
.ghostTransparent background with colored text/border<button>, <details>
.stripedAlternating row background colors<table>