Skip to content

Commit 407c567

Browse files
authored
Add monospace CSS var (#2566)
* add monospace typography token * fix fallback style * Create tall-chairs-push.md * Update src/support/variables/typography.scss
1 parent 51666ea commit 407c567

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/tall-chairs-push.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 `monospace` CSS var to global scss var

src/support/variables/typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetic
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
39-
$mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace !default;
39+
$mono-font: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace) !default;
4040

4141
// The base body size
4242
$body-font-size: 14px !default;

0 commit comments

Comments
 (0)