---
title: "Text"
description: "Five sizes and a few ways to say more."
group: "Content"
order: 1
---

Five sizes and a few ways to say more.

Styles: `components/text.css`.

```html
<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.

```html
<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.

```html
<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>
```
