Skip to content

Commit 9181b47

Browse files
authored
Support SF Mono font in Firefox and Safari (take 2) (#1451)
* Update monospace font stack * Create early-ducks-decide.md
1 parent c65b5f9 commit 9181b47

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/early-ducks-decide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": minor
3+
---
4+
5+
Support SF Mono font in Firefox and Safari

src/support/variables/typography.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ $lh-default: 1.5 !default;
3535
$body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !default;
3636

3737
// Monospace font stack
38-
$mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !default;
38+
// Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome
39+
$mono-font: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace !default;
3940

4041
// The base body size
4142
$body-font-size: 14px !default;

0 commit comments

Comments
 (0)