Skip to content
SprecherEast
Issue 616

One definition for the article reading width (48rem) and the page wrapper padding

Back to our plan
Done
frontendstylingtech-debtpriority: medium

In plain words: the article width max-w-[48rem] is copied into nine files (PageHeader uses 50rem, probably drift), and pt-24 pb-24 is copied into seven route files.

Details: FormBlock, ForumPrompt, PageHero, CallToActionBlock, ArchiveBlock, richTextBlocks, posts and events detail pages, PageHeader. Pages: posts, posts paging, search, resources, faq, events layout, EventListPage. Make one theme token or CSS variable for the width, and use the kit Section/page shell (or one exported constant) for the wrapper. Decide on PageHeader's 50rem on purpose. Hero heights min-h-[60vh]/[80vh] in EmptyState, Section and PageHero become tokens too.

Acceptance criteria

  • Each number is defined once; the comment in ForumPrompt that says to keep it in sync is gone
  • Pages look the same at the six widths, light and dark

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab