mirror of
https://github.com/kognise/water.css.git
synced 2026-01-21 12:35:44 +01:00
Add monospace system font stack
Let's add a system font stack for monospace fonts to give monospace elements a pleasing default font. This monospace font stack is based on GitHub's Primer design system [1]. [1]: https://github.com/primer/css/blob/main/src/support/variables/typography.scss#L39
This commit is contained in:
parent
d950cbc9f8
commit
61af66828b
2 changed files with 12 additions and 0 deletions
5
.changeset/friendly-meals-cheat.md
Normal file
5
.changeset/friendly-meals-cheat.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"water.css": minor
|
||||
---
|
||||
|
||||
Add monospace system font stack
|
||||
|
|
@ -8,6 +8,13 @@ time {
|
|||
font-size: 1em;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
samp,
|
||||
kbd {
|
||||
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
padding: 10px;
|
||||
display: block;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue