Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Joe will chooses 0.25, Mary picks with 0.125 while Huan goes with whatever is the default. There will be inconsistency if there is more than one choice available (empty is also a choice). Someone will slip up, it is only inevitable.


And if somebody doesn't use the library, but pixels or percentages, you get the same problem. You can't use a library to replace communication in a team.

But having 7 rem-relative steps, that fit together makes the common use-case way easier: Joe: "I need more padding on this, so I use pa2 instead of pa1".

If you feel the urge to check your code base it's easy to write scripts that count the occurences of "pa1..pa7". It's not so easy if you have to take into account "padding: 1px", "padding: 20%", "padding: 3em" etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: