Skip to content
SprecherEast
Issue 441

enhancement: Text, the shared heading and paragraph styles

Back to our plan
Done
enhancementfrontendstylingpriority: medium

Problem

Headings and paragraph styles are written out by hand wherever they appear. Some of the copies have already drifted apart:

  • the section headings on the events, resources and FAQ pages
  • the small uppercase labels on the sidebar lists and footer columns: text-sm font-semibold tracking-wider in one place, text-xs font-bold tracking-widest in another
  • the two-line card summaries on post and event cards

(L7, L8, H14–H16, C19, C26)

Goal

Add Text to src/platform/ui/, as specified in docs/ui/component-set.md:

  • variant: section, subsection, overline, label, lead, muted or small
  • as: h2–h6, p or span. Headings default to h2, the rest to p.
  • clamp: the number of lines, 1 to 3

label is a new variant: the quiet uppercase name of a sidebar list or footer column. The spec gets it too.

These use it: the section headings above, the sidebar and footer labels, and the card summaries. The list-page header's eyebrow and lead (PageHeader) move to Text once #440 merges, because that PR also changes PageHeader.

Acceptance criteria

  • Not done: Text is built, with tests.
  • Not done: The places listed use it, and the sidebar and footer labels match.
  • Not done: Visual QA at 6 widths in light and dark.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab