Skip to content
The Membrane Palette
Layoutstable

Text

Tone (muted, subtle, human, digital) and reading measure for running copy — combine with the .type-* size classes instead of writing inline color or max-width.

Examples

Tones and measure

Workshop

AI literacy, from the classroom up

Six weeks for educators who want to use AI with intention — warm in how we teach, precise in how we build.

Updated 3 days ago · v2.1

HTML for “Tones and measure”
<div class="mp-stack" data-gap="2">
  <p class="mp-text type-label" data-tone="human">Workshop</p>
  <h3 class="type-h3">AI literacy, from the classroom up</h3>
  <p class="mp-text type-body-lg" data-tone="muted" data-measure>Six weeks for educators who want to use AI with intention — warm in how we teach, precise in how we build.</p>
  <p class="mp-text type-small" data-tone="subtle">Updated 3 days ago · <span class="mp-text" data-tone="digital">v2.1</span></p>
</div>

Guidance

Size comes from the typography composites in tokens/base.css (.type-body-lg, .type-small, …); .mp-text adds the two things pages otherwise hand-code: which text color and how wide a line may run. It also removes the default paragraph margin, because spacing belongs to the surrounding Stack.

ToneTokenUse
(none)inheritsbody copy
muted--color-text-secondaryledes, descriptions
subtle--color-text-tertiarymetadata, timestamps
human--color-human-textwarm emphasis, overlines
digital--color-digital-texttechnical emphasis

Accessibility

  • Every tone is a gate-checked text token (≥ 4.5:1 on page and card surfaces in both modes).
  • data-measure keeps lines near 65 characters (WCAG 1.4.8 guidance for readable text).

API

Text classes
ClassKind
.mp-textroot
Text attributes
AttributeValues
data-tonemuted · subtle · human · digital
data-measureboolean — presence enables it

No component tokens: Text reads the semantic tokens directly.

Design tokens consumed: --color-digital-text --color-human-text --color-text-secondary --color-text-tertiary --measure

Source