Skip to content

Commit

Permalink
Revert font stack changes (#1592)
Browse files Browse the repository at this point in the history
* Revert `$body-font` changes

* Create thirty-pants-relate.md
  • Loading branch information
simurai authored Sep 14, 2021
1 parent e3c8f90 commit 39c9c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-pants-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": minor
---

Revert font stack changes
23 changes: 1 addition & 22 deletions src/support/variables/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39c9c92

Please sign in to comment.