Skip to content

Commit 0311c08

Browse files
Use fontStack token in $body-font (#2864)
* Use fontStack token in $body-font Updating $body-font variable to use --fontStack-sansSerif * add changeset
1 parent 6d4f240 commit 0311c08

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cute-bats-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/css': patch
3+
---
4+
5+
Add --fontStack-sansSerif to $body-font variable

src/support/variables/typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $lh-condensed: 1.25 !default;
3232
$lh-default: 1.5 !default;
3333

3434
// Font stacks
35-
$body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji' !default;
35+
$body-font: var(--fontStack-sansSerif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji') !default;
3636

3737
// Monospace font stack
3838
// Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome

0 commit comments

Comments
 (0)