Text & Colors

Text alignment, color, font family and numeric utility classes.

Text Colors

sui-text-primary — Primary color text sui-text-success — Success color text sui-text-danger — Danger color text sui-text-warning — Warning color text sui-text-info — Info color text sui-text-muted — Muted color text
<span class="sui-text-primary">Primary color text</span>
<span class="sui-text-success">Success color text</span>
<span class="sui-text-danger">Danger color text</span>
<span class="sui-text-warning">Warning color text</span>
<span class="sui-text-info">Info color text</span>
<span class="sui-text-muted">Muted color text</span>

Text Alignment

Left aligned text
Center aligned text
Right aligned text
<div class="sui-text-left">Left aligned text</div>
<div class="sui-text-center">Center aligned text</div>
<div class="sui-text-right">Right aligned text</div>

Font Family & Numerals

sui-font-sans — Plus Jakarta Sans sui-font-mono — const x = 42;
Default
1,111.11
8,888.88
4,701.10
sui-tabular-nums
1,111.11
8,888.88
4,701.10
<div style="display:flex;flex-direction:column;gap:8px;">
  <span class="sui-font-sans">sui-font-sans — Plus Jakarta Sans</span>
  <span class="sui-font-mono">sui-font-mono — const x = 42;</span>
</div>

<div style="display:flex;gap:16px;flex-wrap:wrap;">
  <div class="sui-raised sui-text-right" style="border-radius:12px;padding:16px;min-width:140px;">
    <small class="sui-text-muted">Default</small>
    <div>1,111.11</div>
    <div>8,888.88</div>
    <div>4,701.10</div>
  </div>
  <div class="sui-raised sui-text-right sui-tabular-nums" style="border-radius:12px;padding:16px;min-width:140px;">
    <small class="sui-text-muted">sui-tabular-nums</small>
    <div>1,111.11</div>
    <div>8,888.88</div>
    <div>4,701.10</div>
  </div>
</div>

Reference

ClassDescription
sui-text-primary, -success, -danger, -warning, -infoColour from the matching --sui-*-text token, at least 4.5:1 on every theme background.
sui-text-mutedColour from --sui-text-muted.
sui-text-lefttext-align: start; right-aligned in RTL.
sui-text-centertext-align: center.
sui-text-righttext-align: end; left-aligned in RTL.
sui-font-sans, sui-font-monoUse the --sui-font / --sui-font-mono stacks; override a component's own font.
sui-tabular-numsEqual-width digits, so columns of numbers line up.
sui-proportional-numsBack to proportional digits.

Delete this item?

This action cannot be undone. This will permanently delete the item and remove all associated data.