Components
Section heading
The three-part heading every section starts with.
Left aligned#
Projects
Things I built
A few products and experiments, from side projects to client work.
<div class="ha-section-heading">
<p class="ha-eyebrow">Projects</p>
<h2 class="ha-h1">Things I built</h2>
<p class="ha-lede">A few products and experiments, from side projects to client work.</p>
</div>Centered#
Skills
What I work with
Tools I reach for every week.
<div class="ha-section-heading ha-section-heading--center">
<p class="ha-eyebrow ha-eyebrow--plain">Skills</p>
<h2 class="ha-h1">What I work with</h2>
<p class="ha-lede">Tools I reach for every week.</p>
</div>Type roles#
Display
Heading 1
Heading 2
Heading 3
Lede, 18px or more.
Body, 16px.
Small, 15px.
Caption, 13px at weight 500, for metadata.
<p class="ha-display">Display</p>
<p class="ha-h1">Heading 1</p>
<p class="ha-h2">Heading 2</p>
<p class="ha-h3">Heading 3</p>
<p class="ha-lede">Lede, 18px or more.</p>
<p class="ha-body">Body, 16px.</p>
<p class="ha-small">Small, 15px.</p>
<p class="ha-caption">Caption, 13px at weight 500, for metadata.</p>These classes set the look only. Choose the element for the document outline: one h1 per page, then h2 and h3 in order.
| Class | Purpose |
|---|---|
ha-section | Top padding of --ha-section between landing sections. |
ha-section-heading, --center | The stack. |
ha-eyebrow, --plain | Mono label. Uppercase by default. |
ha-display, ha-h1, ha-h2, ha-h3, ha-lede, ha-body, ha-small, ha-caption | Type roles. |
ha-hl | Gradient highlight for a word in a heading. |
Do
- Keep the eyebrow to a few words.
- Let headings balance. They use
text-wrap: balance.
Don't
- Use
faintfor the lede. Usemuted. - Put a gradient highlight on more than a word or two.