Skip to content

docs(design): mobile typography — Pin target by desktop ratio - #6842

Merged
imdreamrunner merged 1 commit into
mainfrom
docs/design-mobile-typography
Oct 6, 2026
Merged

imdreamrunner merged 1 commit into
mainfrom
docs/design-mobile-typography

Conversation

@imdreamrunner

Copy link
Copy Markdown
Contributor

Exact decision needed

Choose the mobile Pin target from the desktop typography ratio.

Existing authority searched

The design:typography-hierarchy draft covers general text-role hierarchy, not this mobile size policy. A separate record has its own requirement set, owners, and approval lifecycle, as permitted by the design-record guide. The overlapping implementation is #6699.

Decision

Propose design:mobile-typography: a 16px-reference reading minimum, ratio-selected Pin target and size relationship, and the exclusive lg/1024px plus coarse-pointer condition. Exact-head owner approval is still required.

Rejected alternatives

No additional selection or fallback policies are introduced.

Claim scope and non-goals

Only docs/design/mobile-typography.md is added. No implementation, API, theme, or audit changes.

Evidence and implementation relationship

One numeric example and boundary/state verification cases are included. Related implementation: #6699. The broader hierarchy draft remains untouched.

Scope

  • One design record containing observable requirements, not implementation structure or a review transcript.
  • Public-safe content; no unrelated changes.

Validation

  • pnpm check:knowledge and base-aware knowledge validation.
  • Prettier and git diff --check.
  • Numeric example and ratio/mobile boundary checks.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 1, 2026 5:34am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 6, 2026, 11:15 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 1, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2026
@imdreamrunner
imdreamrunner marked this pull request as ready for review October 1, 2026 16:06

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for keeping this to one focused design record. The proposal is clear and internally consistent: the worked example checks out, the narrow-width plus coarse-pointer wording matches the current adaptation vocabulary, and the repository knowledge and formatting checks pass.

Approval needs a maintainer decision first. This record would make a new mobile Pin policy current — raising a below-16 base to 16, choosing Display 1, Heading 2, or Heading 3 as the preserved role from the desktop ratio, and applying that profile on coarse-pointer viewports. The existing current authority only settles the 16px floor for iOS text entry; it does not settle this whole-scale policy, the supported desktop base and ratio domain, or extending it beyond iOS.

A maintainer who owns design or engineering specs needs to approve this exact version to adopt the record as current, or point to the governing record that should own that choice instead. No separate code fix is being requested while that decision is pending.

[Automated review]


No component-specific contract links are introduced.

## Decision log

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is all this stuff below meant to be in the spec or in the actual docs on the doc site and in the CLI?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is docs/design/mobile-typography.md going to be in the doc or just spec?

(my intention was to put them in design spec, no CLI or doc site)

astracat-bot[bot]
astracat-bot Bot previously approved these changes Oct 6, 2026

@rubyycheung rubyycheung left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I compared this with the Mobile Type sandbox from #4883. This PR matches the Pin model we designed there: floor the mobile base at 16px, re-derive the ratio so the selected role keeps its desktop size, and choose the pin target from the desktop ratio. Display 1 is recommended up to 1.25, Heading 2 between 1.25 and 1.414, and Heading 3 at 1.414 and above.

This is the behavior we want, so I’m approving it. I’d also like this recommendation added to the theme-authoring docs so people using a different scale can discover it.

@rubyycheung
rubyycheung dismissed astracat-bot[bot]’s stale review October 6, 2026 23:14

Approval was submitted under the wrong identity.

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 6, 2026
@imdreamrunner
imdreamrunner merged commit 69de788 into main Oct 6, 2026
56 of 57 checks passed
@github-actions
github-actions Bot deleted the docs/design-mobile-typography branch October 7, 2026 06:24

This branch was successfully deployed

1 active deployment
Preview — aa9fb528 Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants