Skip to content

Commit

Permalink
Add monospace CSS var (#2566)
Browse files Browse the repository at this point in the history
* add monospace typography token

* fix fallback style

* Create tall-chairs-push.md

* Update src/support/variables/typography.scss
  • Loading branch information
langermank committed Feb 13, 2024
1 parent 51666ea commit 407c567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tall-chairs-push.md
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add `monospace` CSS var to global scss var
2 changes: 1 addition & 1 deletion src/support/variables/typography.scss
Expand Up @@ -36,7 +36,7 @@ $body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetic

// Monospace font stack
// Note: SFMono-Regular needs to come before SF Mono to fix an older version of the font in Chrome
$mono-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace !default;
$mono-font: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace) !default;

// The base body size
$body-font-size: 14px !default;
Expand Down

0 comments on commit 407c567

Please sign in to comment.