REM mixin for your SASS

REM units are great, I love them. It’s easy, straight forward and give you flexibility when it comes to changing sizes globally for example.

If you have to support IE8, well you can’t use REM units. For tha, welcome this sweet SASS mixin:

REM Mixin

IE8 loves pixels

So, in your IE8.scs, before you import all your SASS components just set this:

Once compiled, all your:

Will transform to:

(assuming your html font-size is 10px)

No comments yet, leave yours!

Leave a Reply

Add <code> Some Code </code> by using this tags.