Skip to content

Text style

Utilities for common typographic treatments and sizes.

ClassStyles
af-text-mutedcolor: var(--af-color-text-muted)
af-text-monofont-family: var(--af-font-code)
af-text-smfont-size: var(--af-text-sm)
af-text-mdfont-size: var(--af-text-md)
af-text-lgfont-size: var(--af-text-lg)
af-text-body-smfont-size: var(--af-text-sm)
af-text-strongfont-weight: var(--af-weight-semibold)
af-titlelarge title style (2xl + semibold)
Text size

af-text-sm

af-text-md

af-text-lg

<div style="display:grid; gap: var(--af-space-2);">
  <p class="af-text-sm">
    af-text-sm
  </p>
  <p class="af-text-md">
    af-text-md
  </p>
  <p class="af-text-lg">
    af-text-lg
  </p>
</div>
  • af-text-muted
  • af-text-mono
  • af-text-sm
  • af-text-md
  • af-text-lg
  • af-text-body-sm
  • af-text-strong
  • af-title

All text style utilities support responsive variants using the @{bp} suffix. See Responsive Suffix for syntax and breakpoints.