Repository navigation
fix(blog): use the Infima base font stack in the feed stylesheets, without system-ui - #13144
Conversation
On Windows in Chinese, Japanese or Korean, browsers resolve system-ui to a CJK UI font that ignores lang. BlinkMacSystemFont keeps San Francisco on Chrome/Edge for macOS, which ignore -apple-system, and sans-serif avoids falling back to the default serif font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Same approach as #13133: Linux has no 'Segoe UI', so it still reaches system-ui and renders the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow the stack of #13148: no system-ui, with 'Ubuntu Sans' and 'Adwaita Sans' for current Linux desktops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main refactored --ifm-font-family-base: Roboto after the Linux fonts, Arial for Arabic and Hebrew in Chrome on macOS, and emoji fonts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motivation
Follow-up of #13148, which dropped
system-uifrom the Infima base font stack: the RSS/Atom feed stylesheets (xslt: true) still usedsystem-ui. On Windows in Chinese, Japanese or Korean, browsers resolve it to a UI font (Yu Gothic UI, Microsoft YaHei UI…) that renders Latin and all Han glyphs regardless oflang.The feed stylesheets now use the same stack as
--ifm-font-family-base, so feeds render like the site:The feed pages are standalone XSL pages that don't load Infima, so they can't use the variable: the stack is copied, with a comment pointing to
--ifm-font-family-base, where each font is explained. Notably,BlinkMacSystemFontkeeps San Francisco in Chrome and Edge on macOS, which ignore-apple-system: just deletingsystem-uiwould have made them fall back to the default serif font.Also updated the custom feed stylesheets of the test fixtures and of the dogfood blog. The
build-snapCSS files are test outputs: the feed tests copy the stylesheets there.Test Plan
Blog plugin tests pass. The per-OS rendering of this stack is measured in #13148. Argos only screenshots the sitemap pages, so it doesn't capture the feeds: check them on the deploy preview links below.
Test links
Deploy preview: https://deploy-preview-13144--docusaurus-2.netlify.app/
Related issues/PRs
Follow-up of #13148, for #11727
🤖 Generated with Claude Code
Summary by CodeRabbit