postcss-vertical-rhythm icon indicating copy to clipboard operation
postcss-vertical-rhythm copied to clipboard

Why is 16px silently assumed instead of the actual font size?

Open dmitriz opened this issue 9 years ago • 1 comments

I am puzzled why the hard-coded 16 is used:

https://github.com/markgoodyear/postcss-vertical-rhythm/blob/master/index.js#L11

Isn't it meant to work with any font size? Am I missing anything?

dmitriz avatar Apr 28 '16 06:04 dmitriz

I guess it's assuming only the font-size provided by the browser, which is by default 16 in most cases. And since it's working with the root size it doesn't matter if the user/developer uses another size.

ghost avatar Jun 01 '16 22:06 ghost