Skip to content

Commit 36f73dd

Browse files
slorberclaude
andauthored
break(infima): drop system-ui from the base font stack (#13148)
* fix(infima): drop system-ui from the base font stack Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci(argos): render sans-serif with DejaVu Sans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Revert the Argos workflow change, #13149 is closed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(infima): explain each font of the base font stack Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(infima): explain each font of the font stacks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): remove the unreachable fonts after sans-serif Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(infima): keep Arial, which renders Arabic and Hebrew in Chrome on macOS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(infima): keep Arial, which renders Arabic and Hebrew in Chrome on macOS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): add BlinkMacSystemFont after -apple-system Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): add Ubuntu Sans and Adwaita Sans, the UI fonts of Ubuntu and GNOME 48+ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): add DejaVu Sans, the default font of Linux without a desktop font Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): move Roboto after the Linux fonts, as Linux can also have it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): add ui-monospace, and remove the postcss-preset-env comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): remove DejaVu Sans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): add Noto Color Emoji, for Linux emojis Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(infima): move Arial before sans-serif, like other font stacks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f63a25b commit 36f73dd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/docusaurus-infima/styles/common/variables.css‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
--ifm-font-color-base: var(--ifm-color-content);
140140
--ifm-font-color-base-inverse: var(--ifm-color-content-inverse);
141141
--ifm-font-color-secondary: var(--ifm-color-content-secondary);
142-
/* system-ui: the font of the operating system UI */
142+
/* No system-ui: Windows in Chinese, Japanese or Korean resolves it to a UI font that ignores lang */
143+
/* Details: https://github.com/meta/docusaurus/pull/13148 */
143144
/* -apple-system: Safari and Firefox on macOS and iOS */
144145
/* BlinkMacSystemFont: Chrome and Edge on macOS, which ignore -apple-system */
145146
/* 'Segoe UI': Windows */
@@ -156,8 +157,8 @@
156157
/* 'Segoe UI Symbol': Windows symbols */
157158
/* 'Noto Color Emoji': Linux emojis */
158159
--ifm-font-family-base:
159-
system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Ubuntu Sans',
160-
Ubuntu, 'Adwaita Sans', Cantarell, 'Noto Sans', Roboto, Arial, sans-serif,
160+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Ubuntu Sans', Ubuntu,
161+
'Adwaita Sans', Cantarell, 'Noto Sans', Roboto, Arial, sans-serif,
161162
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
162163
/* ui-monospace: SF Mono in Safari */
163164
/* SFMono-Regular: SF Mono, when installed */

0 commit comments

Comments
 (0)