From a4c1f8fbf58d94153235561d044f186b424c588e Mon Sep 17 00:00:00 2001 From: simurai Date: Mon, 9 Dec 2019 08:47:42 +0900 Subject: [PATCH 1/3] Rename "SFMono-Regular" to "SF Mono" --- src/support/variables/typography.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/variables/typography.scss b/src/support/variables/typography.scss index dcb57a771f..2aadb0d46a 100644 --- a/src/support/variables/typography.scss +++ b/src/support/variables/typography.scss @@ -35,7 +35,7 @@ $lh-default: 1.5 !default; $body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !default; // Monospace font stack -$mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !default; +$mono-font: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace !default; // The base body size $body-font-size: 14px !default; From cd7d10e113b96a578278b554d17ef382fbf926cc Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Fri, 22 Jan 2021 19:46:59 +1100 Subject: [PATCH 2/3] Prepend monospace font stack with new ui-monospace font family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This selects the system font’s monospace variant, given browser support. --- src/support/variables/typography.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/variables/typography.scss b/src/support/variables/typography.scss index dcb57a771f..ec89bf90dc 100644 --- a/src/support/variables/typography.scss +++ b/src/support/variables/typography.scss @@ -35,7 +35,7 @@ $lh-default: 1.5 !default; $body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !default; // Monospace font stack -$mono-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !default; +$mono-font: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !default; // The base body size $body-font-size: 14px !default; From 90f95693f5cbfb9f6b7b84735bf5dce2e382601b Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Tue, 25 May 2021 20:23:39 -0700 Subject: [PATCH 3/3] Create small-spies-give.md --- .changeset/small-spies-give.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/small-spies-give.md diff --git a/.changeset/small-spies-give.md b/.changeset/small-spies-give.md new file mode 100644 index 0000000000..f408d3152f --- /dev/null +++ b/.changeset/small-spies-give.md @@ -0,0 +1,5 @@ +--- +"@primer/css": minor +--- + +Support SF Mono font in Firefox & Safari