Skip to content

[draft] AST-049: Choose the mobile Pin target from the desktop ratio - #6771

Merged
imdreamrunner merged 9 commits into
feat/mobile-type-pinfrom
docs/ast-049-mobile-typography
Sep 30, 2026
Merged

imdreamrunner merged 9 commits into
feat/mobile-type-pinfrom
docs/ast-049-mobile-typography

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Minimum specification for choosing the mobile Pin target from the desktop ratio.

Exact decision needed

Desktop ratio r Pin target
r <= 1.25 Display 1, +6
1.25 < r < 1.414 Heading 2, +2
r >= 1.414 Heading 3, +1

Existing authority searched

Existing theme adaptation, application, and platform contracts retain ownership of their respective behavior.

Decision

Choose the pin from the desktop ratio, preserve the selected role, and raise a smaller reading base to 16px-reference. The spec has one short design-intent sentence per ratio row and one numbers-only example.

Rejected alternatives

No optimality claims or additional selection policies are introduced.

Claim scope and non-goals

Only docs/specs/AST-049-mobile-typography/spec.md changes. No code links, source quotations, provenance narrative, plan, or implementation changes remain in the spec.

Evidence and implementation relationship

Related implementation: PR #6699. Spec authority remains draft with no approval claimed.

Scope

  • Minimal normative requirements and design decisions.
  • No code, theme, token, schema, template, or current-authority changes.

Validation

Spec: 219 → 126 lines; 12,412 → 4,620 bytes.

node scripts/check-knowledge.mjs --base 9057ebe308c1625b587927583654f5a2ef391e80
Knowledge templates and records are aligned.
  • Prettier, whitespace checks, and normal commit hooks passed.
  • page.tsx / L60 / source-code-link matches: 0; blockquotes: 0.
  • 14 ratio/boundary checks, 336 size comparisons, and the numeric example passed.

@vercel

vercel Bot commented Sep 30, 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 Sep 30, 2026 7:35pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 30, 2026
@astracat-bot

astracat-bot Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Sep 30, 2026, 7:27 PM UTC

@imdreamrunner imdreamrunner changed the title [draft] AST-049: Mobile typography — 16px base, Pin mapping, narrow+touch [draft] AST-049: Choose the mobile Pin target from the desktop ratio Sep 30, 2026
@imdreamrunner
imdreamrunner marked this pull request as ready for review September 30, 2026 15:57

@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.

Thanks for keeping this to one concise, theme-agnostic draft and for separating what the explorer demonstrates from what still needs a decision.

Outcome: waiting for a maintainer decision. The supporting context is in good shape — the narrow-plus-coarse activation, CSS-only parity, identity preservation, and compatibility framing preserve current direction, the derivation and worked example faithfully match the cited explorer behaviour, and no separate code or evidence fix is being requested here.

Approval cannot complete yet because the core Pin rule itself has no governing spec to point to:

  • whether the desktop-ratio table with its discrete cutoffs should become the default;
  • whether that table should extend beyond the explored picker ratios and single explored base to the wider domain, together with the feasibility, precision, virtual-anchor, and floor-reporting guards; and
  • which governing record should own that choice.

A maintainer needs to provide or identify the governing spec for this addition — by adopting this rule in the owning record or naming the different claim that should govern it — including an explicit decision on the wider domain. Once that direction is settled, this draft can be accepted as the agreed record or revised to match it, and any later implementation can be reviewed on its own parity, compatibility, and browser evidence.

[Automated review]

@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.

Thanks for minimising this to the one sourced rule and for separating what the explorer demonstrates from what still needs a decision.

Outcome: waiting for a maintainer decision. The supporting context is in good shape — the narrow-plus-coarse activation and the platform-support deferral preserve current direction, the table, derivation, and worked example faithfully match the cited explorer behaviour, and the record itself passes the repository knowledge checks. No separate code fix is being requested here.

Approval cannot complete yet because the core Pin rule itself has no governing spec to point to:

  • whether the desktop-ratio table with its discrete cutoffs should become the default;
  • whether that table applies beyond the eight explored ratios at the single explored base, which the draft itself leaves as an open question; and
  • which governing record should own that choice.

A maintainer needs to provide or identify the governing spec for this addition — by adopting this rule in the owning record or naming the different claim that should govern it. Once that direction is settled, this draft can be accepted as the agreed record or revised to match it, and any later implementation can be reviewed on its own evidence.

[Automated review]

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@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.

Thanks for minimising this to the one sourced rule and for separating what the explorer demonstrates from what still needs a decision.

Outcome: waiting for a maintainer decision. The supporting context is in good shape — the narrow-plus-coarse activation and the platform-support deferral preserve current direction, the table, derivation, and worked example faithfully match the cited explorer behaviour, and the record itself passes the repository knowledge checks. No separate code fix is being requested here.

Approval cannot complete yet because the core Pin rule itself has no governing spec to point to:

  • whether the desktop-ratio table with its discrete cutoffs and Design intent rationale should become the default;
  • whether that table applies beyond the explored ratios at the single explored base, which the draft itself leaves as an open question about which base sizes and ratios the policy must support; and
  • which governing record should own that choice.

A maintainer needs to provide or identify the governing spec for this addition — by adopting this rule in the owning record or naming the different claim that should govern it. Once that direction is settled, this draft can be accepted as the agreed record or revised to match it, and any later implementation can be reviewed on its own evidence. One minor clarity point for that follow-up revision: the calculation block uses a referencePx symbol that is never defined, so naming what it denotes would keep the formula implementable without guessing.

[Automated review]

@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.

Thanks for keeping this to the one minimised rule and for separating what is already settled from what still needs a decision. Adding a co-owner is a welcome ownership signal, and it does not change the decision still needed below.

Outcome: waiting for a maintainer decision. The supporting context is in good shape — the narrow-plus-coarse activation and the platform-support deferral preserve current direction, the table, derivation, and worked example check out exactly, and the record passes the repository knowledge checks. No separate code fix is being requested here.

Approval cannot complete yet because the core Pin rule itself has no governing spec to point to:

  • whether the desktop-ratio table with its discrete cutoffs and Design intent rationale should become the default;
  • whether that table applies beyond the explored ratios at the single explored base, which the draft itself leaves as an open question about which base sizes and ratios the policy must support; and
  • which governing record should own that choice.

A maintainer needs to provide or identify the governing spec for this addition — by adopting this rule in the owning record or naming the different claim that should govern it. Once that direction is settled, this draft can be accepted as the agreed record or revised to match it, and any later implementation can be reviewed on its own evidence. One minor clarity point for that follow-up revision: the calculation block uses a referencePx symbol that is never defined, so naming what it denotes would keep the formula implementable without guessing.

[Automated review]


## Intent

The mobile scale MUST raise a desktop base below 16px-reference to 16px-reference

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.

Do we want to mention it's because our input auto changes to 16px on mobile and we want to balance the rest of the text styles used

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.

will add

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.

Added the motivation to Intent in 2b88483: balance the rest of the text styles with the automatic 16px-reference input minimum on coarse-pointer iOS. The Pin rule is unchanged. Leaving this open for your confirmation.

@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate label Sep 30, 2026

@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.

Thanks for adding the input-balance rationale the review asked for, and for keeping this to the one minimised rule.

Outcome: waiting for a maintainer decision. The supporting context is in good shape — the narrow-plus-coarse activation and the platform-support deferral preserve current direction, the table, derivation, and worked example check out exactly, and the record passes the repository knowledge checks. No separate code fix is being requested here.

Approval cannot complete yet because the core Pin rule itself has no governing spec to point to:

  • whether the desktop-ratio table with its discrete cutoffs and Design intent rationale should become the default;
  • whether that table applies beyond the explored ratios at the single explored base, which the draft itself leaves as an open question about which base sizes and ratios the policy must support;
  • whether the new iOS-input rationale for the floor is meant to justify activation on all primary-coarse devices, or is iOS-scoped motivation only; and
  • which governing record should own that choice.

A maintainer needs to provide or identify the governing spec for this addition — by adopting this rule in the owning record or naming the different claim that should govern it. Once that direction is settled, this draft can be accepted as the agreed record or revised to match it, and any later implementation can be reviewed on its own evidence. One minor clarity point for that follow-up revision: the calculation block uses a referencePx symbol that is never defined, so naming what it denotes would keep the formula implementable without guessing.

[Automated review]

@imdreamrunner
imdreamrunner merged commit 4d973b5 into feat/mobile-type-pin Sep 30, 2026
2 of 3 checks passed
@github-actions
github-actions Bot deleted the docs/ast-049-mobile-typography branch October 1, 2026 06:25
cixzhang added a commit that referenced this pull request Oct 12, 2026
* feat(themes): pin type scale on touch + narrow viewports

Mobile Type (Pin model): under (width < 768px) and (pointer: coarse),
the 14px-base themes floor their type base to 16px and re-derive the
ratio so Display 1 (the recommended anchor for ratio <= 1.25) holds
its desktop size.

- neutral, chocolate: base 14 -> 16, ratio 1.2 -> 1.1736 (display-1 42px)
- butter, stone: base 14 -> 16, ratio 1.25 -> 1.2225 (display-1 53px)
- gothic, matcha, y2k are already base 16; their pinned ladder equals
  their desktop ladder, so they need no adaptation rule.

Desktop scales are unchanged. Body/label/code rise 14px -> 16px to
match the existing 16px coarse-pointer input floor.

* [draft] AST-049: Choose the mobile Pin target from the desktop ratio (#6771)

* docs(specs): add AST-049 mobile typography spec (draft)

* docs(specs): make AST-049 plan concise

* docs(specs): make AST-049 concise and spec-only

* docs(specs): define Pin targets by desktop ratio

* docs(specs): minimise AST-049 to the sourced Pin rule

* docs(specs): make AST-049 a minimal normative spec

* docs(specs): add rubyycheung as AST-049 co-owner

* docs(specs): address Ruby review on AST-049

* docs(specs): use lg breakpoint for AST-049 mobile predicate

* feat(themes): move the mobile type pin cutoff to the lg breakpoint

AST-049 as merged sets the mobile condition to
(width < 1024px) and (pointer: coarse) — the effective lg breakpoint,
upper edge exclusive — instead of md/768px. Update the four 14px-base
themes' adaptation rules, their tests, the changeset text, and the
regenerated CLI theme templates. Pin math is unchanged: both ratios
(1.2, 1.25) stay in the r <= 1.25 branch pinning Display 1 at +6.

* docs(specs): approve AST-049

* docs(specs): move AST-049 out of the implementation PR

* docs(changeset): the touch-and-narrow type pin is a breaking visible change; add the migration

* docs(changeset): name the inherited-rule effect on extending themes, pin supporting text in the butter/stone opt-out, and state which tiers grow

---------

Co-authored-by: Cindy Zhang <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 409b853e Deployed Sep 30, 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.

2 participants