3.0.0-alpha.7 Alpha
Default Default Classic Light Dark Light Dark System
Search /
Default Default Classic Light Dark Light Dark System
Style Utilities

Text

Text utility classes combine custom properties from your Web Awesome theme to conveniently style text content.

Web Awesome includes classes to set multiple text properties at once to style body text, headings, and captions.

Body

Use body classes to style the main content of your pages. Each wa-body-* class specifies the following properties:

Additionally, each class specifies a font-size that corresponds to a --wa-font-size-* property from your theme.

Class Name font-size Value Preview
wa-body-xs --wa-font-size-xs
wa-body-s --wa-font-size-s
wa-body-m --wa-font-size-m
wa-body-l --wa-font-size-l
wa-body-xl --wa-font-size-xl

Headings

Use heading classes to style section titles and headings in your content. Each wa-heading-* class specifies the following properties:

Additionally, each class specifies a font-size using a --wa-font-size-* property from your theme. Heading classes are one font size larger than the corresponding wa-body-* class.

Class Name font-size Value Preview
wa-heading-xs --wa-font-size-s
wa-heading-s --wa-font-size-m
wa-heading-m --wa-font-size-l
wa-heading-l --wa-font-size-xl
wa-heading-xl --wa-font-size-2xl
wa-heading-2xl --wa-font-size-3xl
wa-heading-3xl --wa-font-size-4xl

Captions

Use caption classes to style descriptions or auxiliary text in your content. Each wa-caption-* class specifies the following properties:

Additionally, each class specifies a font-size using a --wa-font-size-* property from your theme. Caption classes are one font size smaller than the corresponding wa-body-* class.

Class Name font-size Value Preview
wa-caption-xs --wa-font-size-2xs
wa-caption-s --wa-font-size-xs
wa-caption-m --wa-font-size-s
wa-caption-l --wa-font-size-m
wa-caption-xl --wa-font-size-l
    No results