Section heading
Body content…
Wrap a block of content in wa-prose to apply a hierarchical, asymmetric typographic rhythm: generous space above headings, tighter space below, more breathing room around major non-text blocks, and a true section divider for <hr>. Spacing is em-based and scales with wa-font-size-* utilities.
Reach for it on documentation, blog posts, articles, or marketing copy. Element styling (color, font, borders) still comes from native styles; wa-prose only adjusts rhythm, type scale, and the reading column.
Wrap your long-form content in any block element with the wa-prose class.
Body content…
By default, content is constrained to a comfortable reading column of 65ch. Override --wa-prose-line-length on the container — or set max-inline-size directly — to widen, narrow, or remove the constraint.
Each heading level gets generous space above and tight space below, so the eye reads it as part of the section it introduces — not the one it follows. When two headings sit back-to-back, the second tightens up so it reads as subordinate to the first.
Long before pulp mills and printing presses, people wrote on whatever surface would hold a mark. Clay, papyrus, palm leaves, bark, animal skins — each one pinned a culture's words to a place and a moment.
Early European paper was beaten from cotton and linen rags. Quality was measured in fiber: the longer the strand, the stronger the sheet, the longer it survived in a binding.
Hold a rag sheet up to the light and you can still see the maker's mark and the fine lines pressed in by the mould — small signatures of the hand that pulled it.
Lists get a small breath between multi-line items. Quiet markers and bold <dt> terms come from native styles.
Inline elements you'd reach for in long-form writing — <kbd>, <mark>, <sub>/<sup>, <abbr> — work as expected inside a prose container, styled by native styles.
Press ⌘ + K to open the command palette and jump anywhere from the keyboard. Inline notation reads cleanly too — H2O, E=mc2 — and abbreviations like ASAP hint their full meaning on hover.
Code samples, tables, callouts, and collapsible <details> get more breathing room than running prose, so they read as distinct chunks of content rather than another sentence.
Most rolls of film list the same three pieces of information on the side.
ISO 400
36 exposures
develop in HC-110, dilution B
| ISO | Best for |
|---|---|
| 100 | Bright daylight, fine grain |
| 400 | Mixed conditions, everyday use |
| 3200 | Low light, available light |
Exposing film at a higher ISO than its rated speed, then developing it longer to compensate. You gain a stop or two in low light, at the cost of more grain and deeper contrast.
<hr> marks a topic shift. Its own margin defines the gap; the heading or paragraph that follows hugs up to it so the divider stays visually anchored to what comes next.
A morning routine, repeated long enough, stops needing motivation. The coffee gets made, the bed gets pulled flat, the kettle clicks on while the blinds go up.
Travel, illness, a new schedule — the small steps drift apart. The trick is to rebuild around one anchor first, then let the rest follow.
A few quieter refinements come along with the rhythm:
<code> and <pre> so URLs and identifiers can't overflow the column.Apply any wa-font-size-* utility to a wa-prose container and text, headings, and rhythm scale together. No size variants required.
A quiet morning is the rarest hour of the day — claim it before the world wakes up.
A quiet morning is the rarest hour of the day — claim it before the world wakes up.
Set --wa-prose-rhythm-scale on the prose container to multiply every margin in the system. Values below 1 tighten the rhythm; values above loosen it. Type sizes are unaffected.
Two paragraphs of the same length, at the same size.
The space between them is what changes from one card to the next.
Two paragraphs of the same length, at the same size.
The space between them is what changes from one card to the next.
The wa-prose class and its element rules sit at 0,0,0 specificity, so any utility class you apply alongside — wa-heading-m, wa-cluster, wa-text-center, and so on — wins automatically. The same goes for plain element rules in your own stylesheet, no !important or specificity tricks required.
Color flows from your theme's color tokens, so prose follows dark mode and theme changes automatically. To recolor an element inside prose, use a descendant selector on your container.
css .changelog.wa-prose a { color: var(--wa-color-brand-on-quiet); }Apply wa-not-prose to any element inside a wa-prose container to disable prose rhythm for that element and its descendants. Other utilities — wa-cluster, wa-stack, wa-font-size-* — keep working in the opt-out subtree.
The content in this section follows prose rhythm and adopts a smaller font size. The callout below is given
wa-not-prose, so its spacing and font sizing revert to element defaults.
This callout and its child elements are exempt from wa-prose rules, thanks to
wa-not-prose.
And the content after picks the rhythm back up where it left off.