Text helpers
Lead, small and muted text helpers from domestic-ui, with copyable markup.
Live example
Lead paragraph
<p data-text="lead">Plan your week in five minutes. Everything else stays out of the way.</p>
<p>Regular body text follows at the normal size.</p>
Small and muted
<p data-text="small">Prices include tax.</p>
<p data-text="muted">Shared with 3 people.</p>
<p data-text="small muted">Last updated <time datetime="2026-05-03">3 May 2026</time>.</p>
Attributes
data-text="lead | small | muted" (combinable)
| Attribute or value | Effect |
|---|---|
data-text="lead | small | muted" |
Values are a space-separated list, so they combine: data-text="small muted".
- Values combine:
data-text="small muted". - Size and color only. For meaning, use
<small>,<strong>or<em>.
Accessibility
- Muted text uses
--dui-color-text-muted, tested at 4.5:1 on every surface (WCAG 1.4.3).
Specifications
See also
- Atoms
- Component API convention
- Accessibility baseline
- Source:
css/components/atoms/text.css,examples/atoms/text.html
How other systems do it
For comparison only; these are not the standard this system follows.