Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC change modularScale default unit from em to rem #150

Closed
brikou opened this issue Apr 13, 2017 · 3 comments
Closed

RFC change modularScale default unit from em to rem #150

brikou opened this issue Apr 13, 2017 · 3 comments

Comments

@brikou
Copy link
Contributor

brikou commented Apr 13, 2017

em units are based on the font size of the element they’re used on whereas rem units are based on the font size of the html element.

I suggest to update modularScale signature to use rem as default.

read more here https://webdesign.tutsplus.com/tutorials/comprehensive-guide-when-to-use-em-vs-rem--cms-23984

WDYT ?

@brikou
Copy link
Contributor Author

brikou commented Apr 13, 2017

EDIT: in fact I think that default base should be simply 1 (as float or 16 if you deal with px). This helper shouldn't have anything to do with unit IMO.

@brikou
Copy link
Contributor Author

brikou commented Apr 13, 2017

The more I think about it... the more I feel that I am wrong and 1em as base unit is perfect... So closing this issue

@brunnolou
Copy link

@brikou can you explain why you now think em is better instead of rem in modular scale?

IMHO modularScale(2) should always be the same px size, and not be determined by the font size of the parent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants