GuideUpdated in v15Optional

Paragraphs

Style running text, from lead paragraphs to captions.

Variants

body is the default when no variant is set.

<p wrTypography variant="lead">Lead paragraph — calmer subhead under a headline.</p>
<p wrTypography>Body copy in the default variant.</p>
<p wrTypography variant="small">Small print.</p>
<p wrTypography variant="caption">Captions and helper text.</p>
<p wrTypography variant="overline">Section label</p>

Lead paragraph — calmer subhead under a headline.

Body copy in the default variant.

Small print.

Captions and helper text.

Section label

Tones

Without a tone, a variant keeps its own colour.

<p wrTypography>Body, untoned</p>
<p wrTypography tone="base">Base</p>
<p wrTypography tone="muted">Muted</p>
<p wrTypography tone="primary">Primary</p>
<p wrTypography tone="success">Success</p>
<p wrTypography tone="warning">Warning</p>
<p wrTypography tone="danger">Danger</p>

Body, untoned

Base

Muted

Primary

Success

Warning

Danger

Alignment

<p wrTypography align="start">Start (default)</p>
<p wrTypography align="center">Centered</p>
<p wrTypography align="end">End</p>
<p wrTypography align="justify">Justified text fills the line width.</p>

Start (default)

Centered

End

Justified text fills the line width by adjusting word spacing, so every full line of a long paragraph sits flush with both edges.

Truncation

One line, cut with an ellipsis at the container edge.

<p wrTypography [truncate]="true" style="max-width: 18rem">
  A long line that gets ellipsized when it overflows the container.
</p>

A long line that gets ellipsized when it overflows the container.

See also