Closed badlydrawnrob closed 7 months ago
With a default font-size
, the monospace font often feels too big:
--font-size-mono
is a bit of an in-betweeny font size. calc( var(--font-size-m) + .1rem)
seems to balance out, but it might effect the baseline grid:
1: Original --font-size
:
2: Somewhere in-between: calc( var(--font-size-m) + .1rem)
:
3: Using --font-size-m
:
Option 2 gives a fractional font-size
in Safari however (but with modern devices shouldn't matter — it's in .rem
anyway:
Closing this for now ...
I'm going to allow for variety of fonts depending on
system-ui
:monospace
fonts. (see "Good monospaced fonts")line-height
need updating?Goldilocks theUse--font-family-mono
(i.e: "just right")system-ui
Use a set--font-family
rather than the generic--ios/android
font stack?Does it look the same onNo! (the default, at least)ios
andandroid
?font-size
issues (see below comment)40
[^1]: This has some repercussions when using a child theme, as we possibly have to overwrite this hack. If the
--font-family
and--font-family-mono
fonts share the samex-height
then we can safely remove it. From (limited) tests, this does not seem to be the case withSF Pro
andSF Mono