Tighten prose-lg body rhythm to match design reference#55
Merged
Conversation
Published post bodies render with `prose prose-lg`, but Tiptap stores class-less HTML so the body fell through to the stock @tailwindcss/ typography prose-lg defaults — line-height 1.78 and ~56px above h2 — which is markedly airier than the design reference (leading-relaxed, mt-12/mb-6). The reference tames prose via per-block utilities that an editor will never emit, so the fix belongs in the prose config itself. Override only the lg modifier: line-height 1.6, h2 48/24px, h3 ~34/12px. Body font stays 18px (better for long-form reading than the reference's 16px) and paragraph margins are left untouched. Applies equally to the Tiptap editor (WYSIWYG parity) and the About page (same prose content).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Published post bodies render with
prose prose-lg, but Tiptap storesclass-less HTML, so the body fell through to the stock
@tailwindcss/typographyprose-lgdefaults (line-height 1.78, ~56pxabove
<h2>) — markedly airier than thedesign_reference/mock, whichtames prose via per-block utilities (
leading-relaxed,mt-12/mb-6)that an editor will never emit. The fix belongs in the prose config
itself so the rendered post and the Tiptap editor stay in sync.
Overrides only the
lgmodifier intailwind.config.js:prose-lg<h2>top / bottom<h3>top / bottom<p>marginsBody stays 18px (better for long-form reading than the reference's 16px).
Applies equally to the Tiptap editor (WYSIWYG parity) and the About page
(same
prose-lgcontent) — both intentional.Test plan
collectstaticto DO Spaces so prod picks up rebuilt CSS