demo-template icon indicating copy to clipboard operation
demo-template copied to clipboard

Calculate font sizes using Type Scale

Open CindyKee opened this issue 3 years ago • 0 comments

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.

CindyKee avatar Dec 07 '21 14:12 CindyKee