mirror of
https://github.com/primer/css.git
synced 2024-12-23 14:13:14 +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:
parent
51666ea3b4
commit
407c5676d6
5
.changeset/tall-chairs-push.md
Normal file
5
.changeset/tall-chairs-push.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@primer/css": patch
|
||||
---
|
||||
|
||||
Add `monospace` CSS var to global scss var
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user