domestic-ui GitHub

Text helpers

Lead, small and muted text helpers from domestic-ui, with copyable markup.

Where text helpers are used The lead paragraph sits right under a page's heading in larger text, and small muted text holds metadata such as a last-updated line at the end.

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 valueEffect
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

How other systems do it

For comparison only; these are not the standard this system follows.

Search