markgoodyear / postcss-vertical-rhythm

A PostCSS plugin to create a custom vertical rhythm unit from the base font-size and line-height.
MIT License
74 stars 6 forks source link

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

Open dmitriz opened 8 years ago

dmitriz commented 8 years ago

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?

ghost commented 8 years ago

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.