Skip to content

Density & hit area

Utilities for consistent hit targets and control density.

ClassStyles
af-hitmin-width/min-height: var(--af-hit-size)
af-hit-44min-width/min-height: 44px
af-density-compactsets --af-control-padding-* to compact values
af-density-comfortablesets --af-control-padding-* to comfortable values
af-control-paddingpadding: var(--af-control-padding-y) var(--af-control-padding-x)
Hit target
<button class="af-btn af-hit">
  af-hit
</button>
  • af-hit
  • af-hit-44
  • af-density-compact / af-density-comfortable
  • af-control-padding

Token: --af-hit-size defaults to 2.75rem (44px).

Responsive variants are generated for af-hit and af-hit-44 only. af-density-compact, af-density-comfortable, and af-control-padding do not currently have responsive variants.

See Responsive Suffix for syntax and breakpoints.