Closed masakudamatsu closed 4 years ago
For code readability.
Use rem, not px For a few exceptions, base x-height in px is needed
rem
px
Values are hardcoded only for
Font-size scale is defined in terms of x-height
or in terms of cap-height
Line-height is first defined in rem, and then mapped into the relative term to font-size
Text crop in em is derived as a function of line-height only
em
Values are rounded up to 4 decimal points at the end of this file (See #175).
Padding-bottom and -top
For code readability.
Use
rem
, notpx
For a few exceptions, base x-height in px is neededValues are hardcoded only for
Font-size scale is defined in terms of x-height
or in terms of cap-height
Line-height is first defined in rem, and then mapped into the relative term to font-size
Text crop in em is derived as a function of line-height only
em
is straightforward to set the amount of crop.Values are rounded up to 4 decimal points at the end of this file (See #175).
Padding-bottom and -top