Skip to content

feat(themes): pin type scale on touch + narrow viewports - #6699

Merged
cixzhang merged 8 commits into
mainfrom
feat/mobile-type-pin
Oct 12, 2026
Merged

cixzhang merged 8 commits into
mainfrom
feat/mobile-type-pin

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

User impact

On a touch device in a narrow viewport (< 1024px, coarse pointer), every first-party theme with a 14px type base rendered body/label/code at 14px — below the 16px input minimum that applies only on iOS/WebKit when (pointer: coarse) and @supports (-webkit-touch-callout: none) both match, to prevent zoom-on-focus — while the naive alternative (lifting the whole ladder to a 16px base at the desktop ratio) would have grown Display 1 from 42px to 48px (neutral/chocolate) or 53px to 61px (butter/stone) on a phone.

This change applies the Mobile Type Pin model (sandbox explorer: apps/sandbox Mobile Type page, Pin strategy): floor the base to 16px, re-derive the ratio from the theme's own desktop scale so Display 1 — the mobile typography design proposal's pin target for ratio ≤ 1.25 (step +6) — holds its desktop size, and let every role between follow the pinned ladder.

Theme Desktop scale Touch + narrow (pinned) Display 1
neutral base 14, ratio 1.2 base 16, ratio 1.1736 = 1.2·(14/16)^(1/6) 42px → 42px
chocolate base 14, ratio 1.2 base 16, ratio 1.1736 42px → 42px
butter base 14, ratio 1.25 base 16, ratio 1.2225 = 1.25·(14/16)^(1/6) 53px → 53px
stone base 14, ratio 1.25 base 16, ratio 1.2225 53px → 53px
gothic, matcha, y2k base 16, ratio 1.25 no rule — pinned ladder ≡ desktop ladder 61px → 61px

Full pinned ladder (px), neutral/chocolate: display 42/36/30, headings 26/22/19/16/14/12, body/label/code 16, large 19, supporting 14. Butter/stone: display 53/44/36, headings 29/24/20/16/13/11, body/label/code 16, large 20, supporting 13 (the pinned ladder supersedes butter/stone's desktop-only --text-supporting-size: 12px pin under this condition, per the adaptation contract that a declared scale's generated leaves are rule writes).

Visual authority

  • Correction already settled by current family, design, theme, or objective accessibility authority.

Design spec: #6842 (docs/design/mobile-typography.md) — proposed base floor M = max(B, 16) with 1rem as the 16px reference (no document-root change), the ratio-to-target table (both ratios here fall in the r ≤ 1.25 → Display 1, step +6 branch), and the mobile condition on the effective lg breakpoint (stock 1024 CSS px, upper edge exclusive, governed by spec:AST-012). Mechanism: spec:AST-012 (Theme adaptations, current) — one ordered rule when: {pointer: 'coarse', width: {below: 'lg'}}, compiled to @media (width < 1024px) and (pointer: coarse), CSS-first with runtime/built parity. Values: the Mobile Type explorer's Pin derivation above; 16px floor matches the existing iOS/WebKit input minimum in core, gated by both (pointer: coarse) and @supports (-webkit-touch-callout: none).

Design approval: rubyycheung on #6771 (2b88483)

Before and after

Real Chromium (Playwright, 390px, touch/mobile context so (pointer: coarse) and (width < 1024px) both match), neutral theme built CSS, same sample card — before = built CSS with the adaptation block removed, after = this PR:

  • Computed probe before: body 14px, display-1 42px
  • Computed probe after: body 16px, display-1 42px (pinned)

Before/after screenshots were captured from the same harness (390px card, body text visibly larger, display headline identical); the computed probe above is the machine-checked form of that evidence.

State matrix

  • Themes: neutral, chocolate, butter, stone changed; gothic, matcha, y2k verified no-op (already base 16).
  • Desktop / fine pointer / ≥ 1024px: unchanged — root tokens asserted in tests (--font-size-base stays 0.875rem, --font-size-5xl stays at desktop display-1).
  • Light/dark: type tokens are scheme-independent; no color tokens touched.
  • Narrow + fine pointer (e.g. small desktop window) and wide (≥ 1024px) + coarse: unchanged, by design — width and pointer are separate axes and both must match. Coarse-pointer viewports from 768px up to (excluding) 1024px — portrait tablets — now receive the pinned ladder under the lg cutoff.
  • Component overrides (butter Sarina display pins): preserved. The generated adaptation media block writes tokens only — invariant type-scale component rules are omitted per fix(theme): preserve component overrides in type-scale adaptations #6710 (merged, 039a67ea539), so butter's root font-family: Sarina pins for display-1/2/3 are no longer clobbered under touch + narrow. Verified on this branch rebased onto that main: the built butter theme.css media block contains no font-family declaration and the root Sarina pins are intact.

Scope

  • Appearance is the primary intent.
  • Behavior, API, interaction model, and unrelated layout changes were removed or split.
  • The evidence shows the changed pixels actively running, not only source or computed styles.
  • Public text and artifacts contain no internal Meta context.

Testing

  • New per-theme tests (*Theme.test.ts for neutral/chocolate/butter/stone) assert the rule condition, the media query (width < 1024px) and (pointer: coarse), pinned tokens (base 1rem, display-1 token identical to desktop), and that desktop tokens are untouched: 4 files, 15 tests passed (pnpm vitest run --project=node).
  • pnpm -F @astryxdesign/theme-{neutral,chocolate,butter,stone} build — all build; built theme.css contains exactly one adaptation media block with the pinned ladder.
  • pnpm check:changesets, eslint and prettier --check on all touched files — pass.
  • pnpm bundle:cli-themes regenerated: the CLI's bundled theme copies carry the same adaptation blocks, satisfying the drift guard (scripts/check-cli-theme-bundle.test.mjs — 7 themes pass).
  • After rebasing onto main with fix(theme): preserve component overrides in type-scale adaptations #6710: core adaptation suite packages/core/src/theme/themeAdaptations.test.ts — 55 tests passed; butter rebuilt and its media block re-inspected (token writes only, no component font-family rules).
  • lg-cutoff verification (per design:mobile-typography): 4 theme suites re-run — 15 tests pass; CLI bundle drift guard scripts/check-cli-theme-bundle.test.mjs — 15 tests pass; core + 4 themes rebuilt, each built theme.css re-inspected — exactly one @media (width < 1024px) and (pointer: coarse) block, token writes only, zero 768 remnants, butter root Sarina pins intact; grep across the PR's changed files for 768 / below: 'md' — zero hits.

Brought to mergeable for 0.7.0 (maintainer, 2026-10-12)

  • main merged in (no conflicts); Ivor's commits and credit are preserved.
  • Authority: design:mobile-typography DR1–DR3 (merged). The four rules match DR2's table exactly: r ≤ 1.25 → Display 1 pinned at step +6, so r_pin = r·(14/16)^(1/6) = 1.1736 for neutral/chocolate and 1.2225 for butter/stone; activation is DR3's (width < lg) and (pointer: coarse).
  • Changeset reclassified [breaking] (a visible change for existing apps on touch + narrow) for the four theme packages and the CLI (its theme templates carry the rule), with a migration: extend the theme and append a later rule for the same condition to keep the 14px phone scale.
  • Verification on the merged head: theme and template-sync suites 42/42; check:changesets valid under the declared 0.7.0; check:sync clean.
  • Real Chrome 155, touch emulation + (pointer: coarse) at 390px, light and dark, all four themes: body 14 → 16px, large 17 → 19px (neutral/chocolate) and 18 → 20px (butter/stone), supporting 12 → 14/13px; a 1280px fine-pointer viewport is unchanged. Private evidence: https://artifacts.internalmeta.com/a/893496983731812

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

vercel Bot commented Sep 28, 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 12, 2026 12:40pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 12, 2026, 1:04 PM UTC

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

42 of 448 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 754,077
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,188
Chat Full AI Chat probe light 238,081
Chat Full AI Chat probe dark 237,048
Markdown Default probe light 159,625
Markdown Default probe dark 158,986
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
TableRowExpansion Detail Panel neutral dark 5,129
TableRowExpansion Detail Panel neutral light 4,050

and 22 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Sep 28, 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.

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports, and the implementation checks out against the theme adaptation contract — the condition, the re-derived ratios, the pinned Display 1, and the unchanged desktop scale are all covered by the new per-theme tests.

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. So a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports under 768px (including non-iOS devices), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

One fix is needed regardless: the CLI theme bundle copies were not regenerated, so astryx theme add scaffolds of the four themes would not include the new rule, and the bundle drift check fails for exactly those four themes. Running pnpm bundle:cli-themes and committing the regenerated bundle resolves it.

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

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports, and the implementation checks out against the theme adaptation contract — the condition, the re-derived ratios, the pinned Display 1, and the unchanged desktop scale are all covered by the new per-theme tests, and the rendered result was reproduced in Chromium at a phone viewport (body 14px → 16px, Display 1 unchanged). The CLI theme bundle copies are also regenerated, so scaffolded themes carry the same rule.

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. So a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports under 768px (including non-iOS devices), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

[Automated review]

github-actions Bot added a commit that referenced this pull request Sep 29, 2026
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.

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

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports, and the implementation checks out against the theme adaptation contract — the condition, the re-derived ratios, the pinned Display 1, and the unchanged desktop scale are all covered by the new per-theme tests, and the rendered result was reproduced in Chromium at a phone viewport (body 14px → 16px, Display 1 unchanged). The CLI theme bundle copies are also regenerated, so scaffolded themes carry the same rule.

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. So a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports under 768px (including non-iOS devices), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

[Automated review]

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

Change looks good from the design side 👍

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

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

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports, and the implementation checks out against the theme adaptation contract — the condition, the re-derived ratios, the pinned Display 1, and the unchanged desktop scale are all covered by the new per-theme tests, the CLI theme bundle copies are regenerated and in sync, and the rendered result was reproduced in Chromium at phone, portrait-tablet (900px), boundary (1024px), and desktop widths (body 14px → 16px where the condition matches, Display 1 unchanged, no pin at or above 1024px).

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. The new spec proposed alongside this change is still a draft with approval pending, so a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports below 1024px (including whether it applies beyond iOS), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

One tiny wording fix can ride along: the proposed spec still says this PR changes only the specification, which is no longer accurate now that the spec and the implementation travel together.

[Automated review]

github-actions Bot added a commit that referenced this pull request Sep 30, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 1, 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.

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports. The implementation lines up with the theme adaptation contract on static checking — the condition, the re-derived ratios, the pinned Display 1, the unchanged desktop scale asserted in the new per-theme tests, and CLI theme bundle copies that match their sources byte-for-byte, so scaffolded themes carry the same rule.

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. The new spec proposed alongside this change travels inside the PR and is not yet the governing record on main, so a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports below 1024px (including whether it applies beyond iOS), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

[Automated review]

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 1, 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.

This change pins the type scale of the four 14px-base themes (neutral, chocolate, butter, stone) on touch + narrow viewports. The implementation lines up with the theme adaptation contract on static checking — the condition, the re-derived ratios, the pinned Display 1, the unchanged desktop scale asserted in the new per-theme tests, and CLI theme bundle copies that match their sources byte-for-byte, so scaffolded themes carry the same rule.

Approval needs a maintainer decision first. The adaptation spec covers the mechanism, but it expressly leaves adding adaptation rules to bundled themes and choosing product-specific values out of scope, and the existing 16px floor in the specs is scoped to iOS text entry. The mobile-typography proposal that travelled with this PR was moved out in the latest commit and is not yet the governing record on main, so a maintainer needs to provide or identify the governing spec for this addition — a theme-level 16px floor for all type roles on coarse-pointer viewports below 1024px (including whether it applies beyond iOS), Display 1 as the pin anchor, and the re-derived ratios for these four themes — or update the existing spec. Once that is settled, the change can be judged on its merits; nothing here asks for the change to be removed or split in the meantime.

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

Approving. On narrow touch screens, the four 14px themes now raise body text to 16px and keep Display 1 at its desktop size, as the merged mobile typography record specifies.

  • Values: I computed every step from 4xs to 5xl with the record's formula, using its exact pinned ratio and rounding halves up. Butter and stone (ratio 1.25) and neutral and chocolate (1.2) match at all twelve steps; the four-decimal ratios in the themes give the same pixels. Display 1 stays at 53px and 42px, and body goes from 14 to 16px. Gothic, matcha and y2k already start at 16px and correctly have no rule. The CLI templates carry the same rules, and regenerating them from the theme packages reproduces those files exactly.
  • In Chrome with a touch pointer, the mobile sizes apply at 390 and 1023px and not at 1024 or 1280px. Without a touch pointer they never apply, and the root font size stays 16px throughout.
  • Merged onto current main, where none of its files have changed, the theme and core theme tests (1,476) pass, the five built themes produce the expected rule, and the sync, Changeset, CLI-structure, lint and Prettier checks pass. The touch-pointer story guards added to main since the last CI run give identical results with and without this change.

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

The theme rules match the now-current mobile typography design record: the shipped ratios reproduce its ladder at every step, Display 1 keeps its desktop size, and the pin applies only to coarse pointers below 1024px. Before this can be approved, the [breaking] Changeset needs three corrections:

  • Name app themes that extend these themes with their own typography.scale or type-size tokens: on touch + narrow screens the inherited rule replaces their values (a base-18 child drops to 16px body and 42px Display 1), so tell them to append their own rule for the same condition.
  • For butter and stone, the opt-out recipe should also write '--text-supporting-size': '12px', because scale alone restores supporting text to 11px rather than the previous 12px.
  • Replace "the display tier no longer grows": only Display 1 holds, while Display 2 and 3, headings and supporting text grow by 1–2px.

[Automated review]

'@astryxdesign/cli': minor
---

[breaking] On touch devices narrower than the `lg` breakpoint (`(width < 1024px) and (pointer: coarse)`), the 14px-base first-party themes now floor their type base to 16px and re-derive the ratio so Display 1 keeps its desktop size: neutral and chocolate (base 14, ratio 1.2 → 1.1736) and butter and stone (base 14, ratio 1.25 → 1.2225). Body, label and code text rise from 14px to 16px on phones and the display tier no longer grows; desktop sizes are unchanged. gothic, matcha and y2k already use a 16px base and need no rule. The CLI's theme templates carry the same rule, so a newly scaffolded theme gets it too.

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.

Only Display 1 keeps its desktop size here. Display 2 and 3 still grow 1–2px (neutral 35 → 36 and 29 → 30; butter 43 → 44 and 34 → 36), headings and supporting text grow too, and butter and stone supporting text moves from its 12px pin to 13px. Could this sentence say that Display 1 keeps its desktop size and every other role follows the pinned ladder?


[breaking] On touch devices narrower than the `lg` breakpoint (`(width < 1024px) and (pointer: coarse)`), the 14px-base first-party themes now floor their type base to 16px and re-derive the ratio so Display 1 keeps its desktop size: neutral and chocolate (base 14, ratio 1.2 → 1.1736) and butter and stone (base 14, ratio 1.25 → 1.2225). Body, label and code text rise from 14px to 16px on phones and the display tier no longer grows; desktop sizes are unchanged. gothic, matcha and y2k already use a 16px base and need no rule. The CLI's theme templates carry the same rule, so a newly scaffolded theme gets it too.

Migration: nothing to change to take the new phone scale. To keep the previous 14px phone scale in an app, extend the theme and append a later rule for the same condition, which wins by order: `defineTheme({name: 'app', extends: neutralTheme, adaptations: {rules: [{when: {pointer: 'coarse', width: {below: 'lg'}}, value: {typography: {scale: {base: 14, ratio: 1.2}}}}]}})` (butter and stone: `ratio: 1.25`). A theme that already sets its own touch-and-narrow typography rule keeps it. This cannot be rewritten by a codemod: whether an app wants the floor is a product choice.

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.

The migration has two gaps:

  • App themes that extends one of these themes and set their own typography.scale or type-size tokens are affected too. On touch + narrow screens the inherited rule replaces their values (a base-18 child renders 16px body and 42px Display 1), so they need to append their own rule for the same condition.
  • For butter and stone, scale: {base: 14, ratio: 1.25} alone restores supporting text to 11px (var(--font-size-sm)), not the previous 12px. The appended rule also needs tokens: {'--text-supporting-size': '12px'}.

…pin supporting text in the butter/stone opt-out, and state which tiers grow

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

Approving: on narrow touch screens the four 14px-base themes now raise body text to 16px while Display 1 keeps its desktop size, matching the current mobile typography design record at every step of the scale, and the rule applies only to coarse pointers below 1024px with the root font size, desktop output and CLI theme copies unchanged or in sync. The [breaking] Changeset now covers app themes that extend these themes and gives an opt-out that restores the previous phone sizes, including butter and stone's 12px supporting text. The one failing CI test is a CLI watch-mode test on an unrelated fixture theme that passes repeatedly against this revision outside CI, so rerunning that job should clear it.

[Automated review]

@cixzhang
cixzhang merged commit 8527f92 into main Oct 12, 2026
68 of 70 checks passed
@github-actions
github-actions Bot deleted the feat/mobile-type-pin branch October 13, 2026 06:27

This branch was successfully deployed

1 active deployment
Preview — 256701f7 Deployed Oct 12, 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. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants