Text #
The aFP Design System provides utility classes to style text consistently across your UI. These utilities cover body text, headings, captions, and links, and use the typography tokens defined in the design tokens documentation. They ensure uniform font sizes, line heights, weights, and colors for a cohesive visual hierarchy.
Body #
Body text classes are intended for general content, paragraphs, and smaller blocks of text. They use the body font family, normal weight, and standard line-height. For token reference, see font sizes.
| Class | Value | Preview |
|---|---|---|
afp-body-xs |
--afp-font-size-xs |
Lorem ipsum dolor |
afp-body-s |
--afp-font-size-s |
Lorem ipsum dolor |
afp-body-m |
--afp-font-size-m |
Lorem ipsum dolor |
afp-body-l |
--afp-font-size-l |
Lorem ipsum dolor |
afp-body-xl |
--afp-font-size-xl |
Lorem ipsum dolor |
Headings #
Heading classes define visual hierarchy for titles and headings. They use the body font family with bold weight and condensed line-height. For token reference, see font sizes.
| Class | Value | Preview |
|---|---|---|
afp-heading-xs |
--afp-font-size-s |
Lorem ipsum dolor |
afp-heading-s |
--afp-font-size-m |
Lorem ipsum dolor |
afp-heading-m |
--afp-font-size-l |
Lorem ipsum dolor |
afp-heading-l |
--afp-font-size-xl |
Lorem ipsum dolor |
afp-heading-xl |
--afp-font-size-2xl |
Lorem ipsum dolor |
afp-heading-2xl |
--afp-font-size-3xl |
Lorem ipsum dolor |
afp-heading-3xl |
--afp-font-size-4xl |
Lorem ipsum dolor |
Captions #
Caption classes are used for secondary or supporting text such as labels, hints, or small notes. They use a quieter text color and condensed line-height. For token reference, see font sizes.
| Class | Value | Preview |
|---|---|---|
afp-caption-xs |
--afp-font-size-2xs |
Lorem ipsum dolor |
afp-caption-s |
--afp-font-size-xs |
Lorem ipsum dolor |
afp-caption-m |
--afp-font-size-s |
Lorem ipsum dolor |
afp-caption-l |
--afp-font-size-m |
Lorem ipsum dolor |
afp-caption-xl |
--afp-font-size-l |
Lorem ipsum dolor |
Links #
Link classes provide consistent styles for hyperlinks. afp-link is the default style with standard underline and hover color, while afp-link-plain removes the underline for a cleaner look. For token reference, see links.
| Class | Preview |
|---|---|
afp-link |
Lorem ipsum dolor |
afp-link-plain |
Lorem ipsum dolor |