You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
break(infima): drop system-ui from the base font stack - #13148
Drops system-ui from --ifm-font-family-base, and changes nothing else: #13159 refactors the font stacks first, so that the remaining fonts keep macOS, Windows and default Linux desktops on the font system-ui resolved to.
Why drop it:system-ui is meant for UI elements, not paragraphs of text (see MDN and #11727 (comment)). On Windows in Chinese, Japanese or Korean, Chrome, Edge and Firefox resolve it to a UI font like Yu Gothic UI or Microsoft YaHei UI, which renders every glyph whatever the lang: a Chinese site gets Japanese character shapes on Japanese Windows, and English text gets a cramped UI font.
The new stack:
-apple-system,BlinkMacSystemFont,'Segoe UI','Ubuntu Sans',Ubuntu,'Adwaita Sans',Cantarell,'Noto Sans',Roboto,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'
Compared to #13133: simpler (no new variable, no :lang() rules), and it also fixes a Chinese, Japanese or Korean block inside a page in another language. The cost: Linux users who set a custom desktop font (for example for dyslexia) no longer get it.
Prior art: VitePress (-apple-system, BlinkMacSystemFont, sans-serif), Rspress (… -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, …) and Tailwind 4.3.3, used by Fumadocs (-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif), none of them with system-ui (tailwindlabs/tailwindcss#20318). Starlight, Bootstrap v6 and GitHub Primer dropped it too.
Breaking change
Linux users with a custom desktop font (set in GNOME, KDE or another desktop environment, for example for dyslexia) no longer see Docusaurus sites in that font: they get the first installed font of the stack, like Ubuntu Sans, Adwaita Sans, Cantarell or Noto Sans. Linux without any of these fonts (minimal installs, CI runners) gets the browser's sans-serif instead of DejaVu Sans, like Liberation Sans in Chrome. Default Ubuntu, GNOME and KDE desktops are unchanged (see the test plan). Other platforms are unchanged, except Windows in Chinese, Japanese or Korean, which this PR fixes.
To restore the desktop font on Linux, sites can put system-ui back right after the Apple and Windows fonts, in src/css/custom.css:
Linux, Android and ChromeOS have none of the fonts before system-ui, so they get the desktop font again. macOS and Windows keep the new behavior, except that on Windows in Chinese, Japanese or Korean, Chinese, Japanese and Korean characters render with the UI font again, since 'Segoe UI' has none (Latin text stays fixed).
To restore the former behavior exactly, with the Windows bug, put system-ui first:
Screenshots on GitHub Actions runners, on real pages, compared pixel by pixel with the stack of #13159, with temporary workflows on a branch since deleted (run, Ubuntu run, Fedora and KDE run, screenshots in their artifacts). Pages: the CJK dogfood page, code blocks, the Japanese docs of the i18n staging site with <html lang> set to ja, zh-CN, zh-TW and ko, and a text with one line per script.
Setup
Result
Linux, Ubuntu, Fedora/GNOME and KDE fonts, Chrome and Firefox
Pixel-identical
Linux without a desktop font, like Argos, Chrome
DejaVu Sans to Liberation Sans
Linux with a custom desktop font
Changes to the first installed font of the stack
macOS, Chrome, Edge, Firefox and Safari (Playwright WebKit)
Pixel-identical
Windows in English, Chrome, Edge and Firefox
Pixel-identical
Windows in Japanese, Simplified Chinese, Traditional Chinese or Korean (simulated), Chrome, Edge and Firefox
Fixed: Latin in Segoe UI, and Microsoft YaHei, Microsoft JhengHei, Yu Gothic or Malgun Gothic per lang, including blocks nested in a page of another language
The Windows display languages are simulated by setting the OS menu font, which system-ui reads, and the browser locale: a real display language change needs a new sign-in. iOS and Android are not tested: -apple-system and Roboto resolve to the same fonts as system-ui there.
Argos runs Chromium on Linux without a desktop font, where system-ui was DejaVu Sans: the stack now reaches sans-serif, Liberation Sans there, so most screenshots change once. This doesn't reflect real Linux desktops, which keep their font. Naming 'DejaVu Sans' in the stack would avoid it, but on real desktops it renders ⚡-like symbols in black and white, instead of Noto Color Emoji.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
slorber
added
pr: bug fix
This PR fixes a bug in a past release.
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
labels
Nov 27, 2026
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The base font stack removes system-ui and adds platform-specific fallbacks, including Ubuntu Sans and Adwaita Sans. The comments explain platform font selection and the Windows CJK context. The project word list adds Adwaita.
Changes: Base Font Stack
Layer / File(s)
Summary
Update base font fallbacks packages/docusaurus-infima/styles/common/variables.css, project-words.txt
The font stack removes system-ui and adds platform-specific fonts and fallbacks. Comments describe platform mappings and the Windows CJK context. The word list adds Adwaita.
This updates the base font stack to drop system-ui and add explicit platform fonts. The change is documented as intentionally breaking for Linux users with custom desktop fonts. No concrete defect was found, and the change is low-risk to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "break(infima): drop system-ui from the base font stack" matches the main change. The diff replaces the start of --ifm-font-family-base, removing system-ui and adding platform fonts such as …
Linked Issues check
Directly linked open issue #11727 has one coding requirement: remove system-ui from --ifm-font-family-base. The head file packages/docusaurus-infima/styles/common/variables.css declares `-apple-…
Out of Scope Changes check
The supplied whole-PR summary lists two changed files against merge base d723cf0. (1) variables.css changes the --ifm-font-family-base declaration and its comments. The removal of system-ui, the…
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title "break(infima): drop system-ui from the base font stack" matches the main change. The diff replaces the start of --ifm-font-family-base, removing system-ui and adding platform fonts such as Ubuntu Sans and Adwaita Sans. The objectives confirm the PR removes system-ui from Infima's base font stack to fix CJK glyph shapes on Windows, which the linked issue requests. The title names the component (infima), the scope (base font stack), and the breaking nature of the change, so a teammate scanning history can identify the primary change.
Full details: Linked Issues check
Explanation
Directly linked open issue #11727 has one coding requirement: remove system-ui from --ifm-font-family-base. The head file packages/docusaurus-infima/styles/common/variables.css declares -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Ubuntu Sans', Ubuntu, 'Adwaita Sans', Cantarell, 'Noto Sans', sans-serif, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'. system-ui is absent. A comment in the same block states the reason and links this PR. The issue does not require a specific replacement stack, automated tests, or a particular implementation. The 'fixed by v4' note is a release target, not a coding task. Stack objective for #11727 (members #13159 and #13156-#13158 uncertain, not inspected; #13148 reviewed): Addressed. The reviewed head contains the final declaration without system-ui. Uncertain downstream members were not inspected and are not credited. The Windows CJK rendering and screenshot results in the PR description are environment claims and were not independently verified here. A whole-PR diff read was unavailable, so the result rests on the head file read and the supplied summary.
Full details: Out of Scope Changes check
Explanation
The supplied whole-PR summary lists two changed files against merge base d723cf0. (1) variables.css changes the --ifm-font-family-base declaration and its comments. The removal of system-ui, the added 'Ubuntu Sans' and 'Adwaita Sans', and the moved BlinkMacSystemFont implement the stack described in the PR and #11727. The comments document each entry, including the Arial rationale. The head file confirms this content. (2) project-words.txt adds Adwaita, the spell-check word for the new font name in those comments. No unrelated change was identified. The whole-PR diff tool was unavailable, so file-level results rely on the summary and the head file read.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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>
slorber
added
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
and removed
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
labels
Nov 27, 2026
slorber
added
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
and removed
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
labels
Nov 27, 2026
slorber
added
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
and removed
Argos
Add this label to run UI visual regression tests. See argos.yml GH action.
labels
Nov 27, 2026
…thout system-ui (#13144)
* fix(blog): remove system-ui from the feed stylesheet font stack
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>
* fix(blog): keep system-ui after 'Segoe UI' in the feed font stack
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>
* fix(blog): drop system-ui from the feed font stack, like Infima
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>
* fix(blog): use the Infima base font stack in the feed stylesheets
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>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgosAdd this label to run UI visual regression tests. See argos.yml GH action.CLA SignedSigned Facebook CLApr: breaking changeExisting sites may not build successfully in the new version. Description contains more details.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Drops
system-uifrom--ifm-font-family-base, and changes nothing else: #13159 refactors the font stacks first, so that the remaining fonts keep macOS, Windows and default Linux desktops on the fontsystem-uiresolved to.Why drop it:
system-uiis meant for UI elements, not paragraphs of text (see MDN and #11727 (comment)). On Windows in Chinese, Japanese or Korean, Chrome, Edge and Firefox resolve it to a UI font like Yu Gothic UI or Microsoft YaHei UI, which renders every glyph whatever thelang: a Chinese site gets Japanese character shapes on Japanese Windows, and English text gets a cramped UI font.The new stack:
Compared to #13133: simpler (no new variable, no
:lang()rules), and it also fixes a Chinese, Japanese or Korean block inside a page in another language. The cost: Linux users who set a custom desktop font (for example for dyslexia) no longer get it.Prior art: VitePress (
-apple-system, BlinkMacSystemFont, sans-serif), Rspress (… -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, …) and Tailwind 4.3.3, used by Fumadocs (-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif), none of them withsystem-ui(tailwindlabs/tailwindcss#20318). Starlight, Bootstrap v6 and GitHub Primer dropped it too.Breaking change
Linux users with a custom desktop font (set in GNOME, KDE or another desktop environment, for example for dyslexia) no longer see Docusaurus sites in that font: they get the first installed font of the stack, like Ubuntu Sans, Adwaita Sans, Cantarell or Noto Sans. Linux without any of these fonts (minimal installs, CI runners) gets the browser's
sans-serifinstead of DejaVu Sans, like Liberation Sans in Chrome. Default Ubuntu, GNOME and KDE desktops are unchanged (see the test plan). Other platforms are unchanged, except Windows in Chinese, Japanese or Korean, which this PR fixes.To restore the desktop font on Linux, sites can put
system-uiback right after the Apple and Windows fonts, insrc/css/custom.css:Linux, Android and ChromeOS have none of the fonts before
system-ui, so they get the desktop font again. macOS and Windows keep the new behavior, except that on Windows in Chinese, Japanese or Korean, Chinese, Japanese and Korean characters render with the UI font again, since'Segoe UI'has none (Latin text stays fixed).To restore the former behavior exactly, with the Windows bug, put
system-uifirst:Test Plan
Screenshots on GitHub Actions runners, on real pages, compared pixel by pixel with the stack of #13159, with temporary workflows on a branch since deleted (run, Ubuntu run, Fedora and KDE 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.lang, including blocks nested in a page of another languageThe Windows display languages are simulated by setting the OS menu font, which
system-uireads, and the browser locale: a real display language change needs a new sign-in. iOS and Android are not tested:-apple-systemandRobotoresolve to the same fonts assystem-uithere.Argos runs Chromium on Linux without a desktop font, where
system-uiwas DejaVu Sans: the stack now reachessans-serif, Liberation Sans there, so most screenshots change once. This doesn't reflect real Linux desktops, which keep their font. Naming'DejaVu Sans'in the stack would avoid it, but on real desktops it renders ⚡-like symbols in black and white, instead of Noto Color Emoji.Test links
Deploy preview: https://deploy-preview-13148--docusaurus-2.netlify.app/tests/pages/cjk-font-tests
Related issues/PRs
Fixes #11727
Follows #13159, which refactors the font stacks
Alternative to #13133 (closed), which kept
system-uiafter Windows fonts🤖 Generated with Claude Code