Skip to content
Halorav0.1.0

Components

Prose

Typography for the blog and any long-form page.

Example#

Why a design system

Long reading needs a calm page. The text is 18px with a 1.7 line height, and lines stop near 68 characters.

Good defaults are a kindness to the next person.

A list

  • Headings keep their rhythm.
  • Links use accent text, underlined.

Inline code and blocks both follow the active theme.

TokenValue
measure68ch
HTML
<article class="ha-prose">
  <h2>Why a design system</h2>
  <p>Long reading needs a calm page. The text is <strong>18px</strong> with a <a href="#prose">1.7 line height</a>, and lines stop near 68 characters.</p>
  <blockquote><p>Good defaults are a kindness to the next person.</p></blockquote>
  <h3>A list</h3>
  <ul><li>Headings keep their rhythm.</li><li>Links use accent text, underlined.</li></ul>
  <p>Inline <code>code</code> and blocks both follow the active theme.</p>
  <table><thead><tr><th>Token</th><th>Value</th></tr></thead><tbody><tr><td>measure</td><td>68ch</td></tr></tbody></table>
</article>
ClassPurpose
ha-proseWrap rendered markdown. Child elements are styled by tag.
  • Body copy is 18px, 17px under 600px. Quotes use muted color, which passes AA.
  • Tables scroll horizontally when they are wider than the column. Keep them focusable if they hold important data.
  • Images get a 16px radius. Always provide alt text.

Edit this page on GitHub

Type to search.