Repository navigation
refactor(infima): refactor the font stacks before dropping system-ui - #13159
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: +92 B (0%) Total Size: 12.1 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Size Change: +92 B (0%) Total Size: 12.1 MB 📦 View Changed
ℹ️ View Unchanged
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
Screenshot of the visual change, which Argos can't show since it only runs Chromium on Linux:
Images from the test plan runs, published as GitHub Actions artifacts (they expire on February 25, 2027). 🤖 Generated with Claude Code |
|
Screenshots of the visual changes, which Argos can't show since it only runs Chromium on Linux without a desktop font:
Images from the test plan runs, published as GitHub Actions artifacts (they expire after 90 days). 🤖 Generated with Claude Code |
… macOS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…buntu and GNOME 48+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a desktop font Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o have it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64e510c to
81bacb9
Compare
Motivation
Refactors the font stacks of Infima before #13148 drops
system-ui, so that the drop changes nothing butsystem-ui. Whilesystem-uicomes first, these changes only affect the per-glyph fallback.Arialbeforesans-serif, like the other stacks below: restored, as Chrome and Edge on macOS render Arabic, Persian and Hebrew with it. refactor(infima): remove the unreachable fonts after sans-serif #13154 removed it (CodeRabbit). On Linux, it is Liberation Sans, which Chrome already uses forsans-serif.BlinkMacSystemFont: Chrome and Edge on macOS ignore-apple-system, and only get San Francisco through it (Blink rewrites it tosystem-uion macOS only, source).'Ubuntu Sans'and'Adwaita Sans': the UI fonts of Ubuntu 24.04+ and GNOME 48+ (Fedora 42+), before the olderUbuntuandCantarell.Robotomoves after the Linux fonts: Linux can have it installed, and its desktop font should win.'Noto Color Emoji': color emojis on Linux, like'Apple Color Emoji'and'Segoe UI Emoji'on macOS and Windows.ui-monospace: SF Mono in Safari.Comparison with other font stacks
system-ui-apple-system, BlinkMacSystemFont'Segoe UI'Roboto'Segoe UI''Segoe UI''Segoe UI''Segoe UI''Helvetica Neue'beforesans-serifHelveticaArialbeforesans-serif'Noto Color Emoji'ui-monospaceSimilar: like all of them, the stack starts with the Apple and Windows fonts, in the same order, has
Arialbeforesans-serif, ends with the emoji fonts including'Noto Color Emoji', and the code font starts withui-monospace.Different:
system-uiis gone, the UI fonts of Ubuntu and GNOME keep these default desktops on their usual font, while the others change them to Noto Sans or the browser default.Robotoafter the Linux fonts: the others put it right after'Segoe UI', so a Linux desktop with Roboto installed switches to it.'Helvetica Neue': it was the system font of macOS 10.10 and older, before San Francisco, which don't support-apple-system. Every Mac that Docusaurus supports reaches-apple-systemfirst, so it would never be used.Test Plan
Screenshots on GitHub Actions runners, on real pages, compared pixel by pixel with
main, with temporary workflows on a branch since deleted (run, Roboto run, screenshots in their artifacts). Pages: the CJK dogfood page, code blocks, the Japanese docs of the i18n staging site with<html lang>set toja,zh-CN,zh-TWandko, and a text with one line per script (Arabic, Hebrew, Russian, Greek, Vietnamese, Thai, Hindi, emojis and symbols).The stack evolved during the review, so some measurements used a slightly different stack: the Roboto move was measured with
'DejaVu Sans'in the stack, since removed, and'Noto Color Emoji'after thesystem-uidrop (run).Arialbeforesans-serifis not measured: it only changes the characters that all the fonts before it lack. Chrome and Edge on macOS already render Arabic, Persian and Hebrew with Arial, and Chrome on Linux already uses Liberation Sans forsans-serif. Firefox on Linux without the fonts above may switch from DejaVu Sans to Liberation Sans.Related issues/PRs
Part of the fix of #11727, followed by #13148
🤖 Generated with Claude Code
Summary by CodeRabbit