demo-template
demo-template copied to clipboard
Calculate font sizes using Type Scale
Instead of hard-coded font sizes for each screen size, I used a base font and a ratio for each to calculate a module type scale for fonts.
According to Visual Type Scale, you should use different scale factors depending on the device size, so I created a map that allows the scale factor (ratio) as well as the base font size to change for each screen size.