-
Notifications
You must be signed in to change notification settings - Fork 18
Writing with px only, post-processing to px + rems #31
Comments
@joaocunha You might want to check out gulp-pxtorem. |
@joaocunha Not in the roadmap, but I hear about this approach. You're not alone. :) pixrem.process(css, {mode: 'pxtorem'})
pixrem.postcss(css, {mode: 'remtopx'}) |
@iamvdo in a perfect world, it would work automagically for both cases - px to rem and rem to px. Then, a flag could be set on config to disable one of the two. How do you feel about it? |
Can you tell me what the benefit of pix to rem is? Why not author in I had this request a couple of times, but couldn't find a valid use case. On Friday, March 27, 2015, João Cunha notifications@github.com wrote:
Rob Wierzbowski |
@robwierzbowski writing in px is easier, fool-proof, requires absolutely no math, and "it just works". In fact, people have been writing in px from way before the advent of CSS. Alternative units started being use due to the zoom issue on IE. To easily write in If a spec says something should be 120px wide, I don't want to do 120 / 16 = |
I guess we'll agree to disagree. Rems are a type-proportional unit, whereas The thing I don't understand is the final benefit. For me, rem are a more So, if it's easier to design for you in px, and if you're not counting on On Friday, March 27, 2015, João Cunha notifications@github.com wrote:
Rob Wierzbowski |
And by "we size almost everything in .25 increments of rem" I mean almost On Friday, March 27, 2015, Rob Wierzbowski rob.wierzbowski@gmail.com
Rob Wierzbowski |
I personally prefer to write plain vanilla
px
units and have the build process to convert them torem
. I've been using node-px2rem for that and it works great, but it's far from a popular tool (I'm the only one to star it so far).I wonder if this is something you have on the roadmap, or maybe I'm just stupid enough and was not able to do this with
pixrem
:)The text was updated successfully, but these errors were encountered: