Updates the css and docs for the molten leading technique used to fluidly scale rem sizing. This technique forms the backbone of all spacing values in the design system. The previous implementation did not properly scale headings and spacing values as the calculation was made on the body element and not the html element. Rem values are based on the font-size property fo the html element.
This also adds the Font Sizing story that outlines the methodology and calculations used.
Use Cases
type heading sizes
rem based margin and padding values spacing
rem based grid gap and column width
all rem based values
API changes
This changes the rem value calculations for font-size, margin, and padding. Thus these values will scale according to the table values in the Font Sizing story.
Implementation Notes
in src/styles/typography.css the value 1.1428571429 is calcualted by
1em = 1rem = 14px min font-size
thus
16px max font-size = 16/1em = 1.1428571429
Motivation
Updates the css and docs for the molten leading technique used to fluidly scale rem sizing. This technique forms the backbone of all spacing values in the design system. The previous implementation did not properly scale headings and spacing values as the calculation was made on the
body
element and not thehtml
element. Rem values are based on the font-size property fo thehtml
element.This also adds the Font Sizing story that outlines the methodology and calculations used.
Use Cases
type heading sizes
rem based margin and padding values spacing
rem based grid gap and column width
all rem based values
API changes
This changes the rem value calculations for font-size, margin, and padding. Thus these values will scale according to the table values in the Font Sizing story.
Implementation Notes
in
src/styles/typography.css
the value1.1428571429
is calcualted by