Skip to content

fix(hero): keep the title one type step above the section headings - #55

Merged
steveapo merged 1 commit into
mainfrom
fix/hero-title-scale
Nov 21, 2026
Merged

steveapo merged 1 commit into
mainfrom
fix/hero-title-scale

Conversation

@steveapo

@steveapo steveapo commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The hero's title is the page's h1, and on a phone it was drawn smaller than the h2 section headings: --fs-display resolves to 24px at 375px wide, against the headings' fixed 30px, and stays under them until the window is 975px wide.

The title now stands one step of the type scale above the section headings at every width.

Width Title (h1) Section heading (h2)
up to 520px --fs-2xl, 30px --fs-xl, 24px
521px to 1099px --fs-3xl, 38px --fs-2xl, 30px
from 1100px --fs-4xl, 48px (unchanged) --fs-2xl, 30px (unchanged)

Tokens only; one file, app/globals.css.

Checked: tests (29 passed) and pnpm run check locally; computed sizes read in a browser at 375px (30 and 24) and 800px (38 and 30), no horizontal scroll at 375px. Not checked: Firefox and Safari.

🤖 Generated with Claude Code


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The h1 used the fluid --fs-display, which is 24px on a phone and stays under
the section headings' 30px until the window is 975px wide. The title now
takes fixed steps: 2xl up to 520px (section headings drop to xl there), 3xl
from 521px, 4xl from 1100px as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@steveapo
steveapo merged commit ddf6de5 into main Nov 21, 2026
2 checks passed
@steveapo
steveapo deleted the fix/hero-title-scale branch November 21, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant