1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 22:24:11 +03:00

Add monospace CSS var (#2566)

* add monospace typography token

* fix fallback style

* Create tall-chairs-push.md

* Update src/support/variables/typography.scss
This commit is contained in:
Katie Langerman 2024-02-12 16:18:15 -08:00 committed by GitHub
parent 51666ea3b4
commit 407c5676d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@primer/css": patch
---
Add `monospace` CSS var to global scss var

View File

@ -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;