From 39c9c92874eb32b346256cbcc713b87767b319ef Mon Sep 17 00:00:00 2001 From: simurai Date: Tue, 14 Sep 2021 09:58:30 +0900 Subject: [PATCH] Revert font stack changes (#1592) * Revert `$body-font` changes * Create thirty-pants-relate.md --- .changeset/thirty-pants-relate.md | 5 +++++ src/support/variables/typography.scss | 23 +---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) create mode 100644 .changeset/thirty-pants-relate.md diff --git a/.changeset/thirty-pants-relate.md b/.changeset/thirty-pants-relate.md new file mode 100644 index 0000000000..86c1506fd8 --- /dev/null +++ b/.changeset/thirty-pants-relate.md @@ -0,0 +1,5 @@ +--- +"@primer/css": minor +--- + +Revert font stack changes diff --git a/src/support/variables/typography.scss b/src/support/variables/typography.scss index 2f170b040e..cd22002895 100644 --- a/src/support/variables/typography.scss +++ b/src/support/variables/typography.scss @@ -32,28 +32,7 @@ $lh-condensed: 1.25 !default; $lh-default: 1.5 !default; // Font stacks -$body-font: - // Apple OSs - -apple-system, - BlinkMacSystemFont, - - // Windows - // Note this should be prioritized over `system-ui` to avoid legacy fonts. - // See https://infinnie.github.io/blog/2017/systemui.html - "Segoe UI Variable Text", - "Segoe UI", - "Meiryo", // Improves font rendering for Japanese, see https://github.com/primer/css/pull/1573. - - // Linux-friendly system-level fonts + fallbacks - system-ui, - ui-sans-serif, - Helvetica, - Arial, - sans-serif, - - // Emojis - "Apple Color Emoji", - "Segoe UI Emoji" !default; +$body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !default; // Monospace font stack // Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome