Skip to content

Commit 1971834

Browse files
slorberclaude
andcommitted
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>
1 parent a65d043 commit 1971834

10 files changed

Lines changed: 32 additions & 24 deletions

File tree

‎packages/docusaurus-plugin-content-blog/assets/atom.css‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ main {
1010
width: 100%;
1111
margin: 2rem auto;
1212
max-width: 800px;
13-
/* No system-ui, see https://github.com/meta/docusaurus/issues/11727 */
13+
/* 'Segoe UI' before system-ui: Windows in Chinese, Japanese or Korean */
14+
/* resolves it to a UI font that ignores lang, see https://github.com/meta/docusaurus/pull/13133 */
15+
/* BlinkMacSystemFont: Chrome on macOS ignores -apple-system */
1416
/* stylelint-disable-next-line font-family-name-quotes */
1517
font-family:
16-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell,
17-
'Noto Sans', sans-serif;
18+
-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Ubuntu,
19+
Cantarell, 'Noto Sans', sans-serif;
1820
}
1921

2022
.info {

‎packages/docusaurus-plugin-content-blog/assets/rss.css‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ main {
1010
width: 100%;
1111
margin: 2rem auto;
1212
max-width: 800px;
13-
/* No system-ui, see https://github.com/meta/docusaurus/issues/11727 */
13+
/* 'Segoe UI' before system-ui: Windows in Chinese, Japanese or Korean */
14+
/* resolves it to a UI font that ignores lang, see https://github.com/meta/docusaurus/pull/13133 */
15+
/* BlinkMacSystemFont: Chrome on macOS ignores -apple-system */
1416
/* stylelint-disable-next-line font-family-name-quotes */
1517
font-family:
16-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell,
17-
'Noto Sans', sans-serif;
18+
-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Ubuntu,
19+
Cantarell, 'Noto Sans', sans-serif;
1820
}
1921

2022
.info {

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/custom-atom.css‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/blog/custom-rss.css‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/atom.css‎

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/custom-atom.css‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/custom-rss.css‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/docusaurus-plugin-content-blog/src/__tests__/__fixtures__/website/build-snap/blog/rss.css‎

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎website/_dogfooding/_blog tests/custom-atom.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ main {
1717
max-width: 800px;
1818
/* stylelint-disable-next-line font-family-name-quotes */
1919
font-family:
20-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell,
21-
'Noto Sans', sans-serif;
20+
-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Ubuntu,
21+
Cantarell, 'Noto Sans', sans-serif;
2222
}
2323

2424
.info {

‎website/_dogfooding/_blog tests/custom-rss.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ main {
1717
max-width: 800px;
1818
/* stylelint-disable-next-line font-family-name-quotes */
1919
font-family:
20-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell,
21-
'Noto Sans', sans-serif;
20+
-apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Ubuntu,
21+
Cantarell, 'Noto Sans', sans-serif;
2222
}
2323

2424
.info {

0 commit comments

Comments
 (0)