UI Docs Deploy now

Text

Five sizes and a few ways to say more.

Styles: components/text.css.

Title

1,284

Heading

Text

Small

Muted

Strong

Mono

0123456789

Centered

A line that is too long for its box ends with three dots instead of breaking the layout around it, however long it gets, on any screen, in any language, for as long as it needs to go on.

Only for screen readers: this part is read out but never shown. (hidden)

A line with a link in it.

Code
<div class="moin-stack" data-gap="4">
  <p class="moin-title">Title</p>
  <p class="moin-number">1,284</p>
  <p class="moin-heading">Heading</p>
  <p class="moin-text">Text</p>
  <p class="moin-small moin-muted">Small</p>
  <p class="moin-text moin-muted">Muted</p>
  <p class="moin-text moin-strong">Strong</p>
  <p class="moin-text moin-mono">Mono</p>
  <p class="moin-text moin-digits">0123456789</p>
  <p class="moin-text moin-center">Centered</p>
  <p class="moin-text moin-truncate">A line that is too long for its box ends with three dots instead of breaking the layout around it, however long it gets, on any screen, in any language, for as long as it needs to go on.</p>
  <p class="moin-text">Only for screen readers:<span class="moin-sr-only"> this part is read out but never shown.</span> (hidden)</p>
  <p class="moin-text">A line with <a href="#" class="moin-link">a link</a> in it.</p>
</div>

Colors and long words

moin-foreground is the plain text color inside a quiet line. moin-live, moin-running and moin-failed are the colors of a state. moin-break breaks a long word instead of pushing the box wider.

A quiet line with one plain word in it.

Live

Running

Failed

averyveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongword

Code
<div class="moin-stack" data-gap="2">
  <p class="moin-text moin-muted">A quiet line with <span class="moin-foreground">one plain word</span> in it.</p>
  <p class="moin-text moin-live">Live</p>
  <p class="moin-text moin-running">Running</p>
  <p class="moin-text moin-failed">Failed</p>
  <p class="moin-text moin-break">averyveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylongword</p>
</div>

Big type

The sizes of a landing page. moin-display is its one promise. moin-statement is a section in a few words. moin-lead is the sentence after it. It stops at --measure, and data-large makes it larger from a tablet up. moin-huge is a sign-off word as big as the page.

One promise.

Four steps. Live.

A sentence that leads to the rest.

A larger one from a tablet up, kept to 34 characters wide.

Bye

Code
<div class="moin-stack" data-gap="6">
  <p class="moin-display">One promise.</p>
  <p class="moin-statement">Four steps. Live.</p>
  <p class="moin-lead">A sentence that leads to the rest.</p>
  <p class="moin-lead" data-large style="--measure:34ch">A larger one from a tablet up, kept to 34 characters wide.</p>
  <p class="moin-huge moin-strong">Bye</p>
</div>

This page as Markdown