This is a simple LESS mixin where you can declare the REM value you want throughout your LESS docs and the mixin will properly convert given number into the REM value and PX fallback for IE browsers which don't support REM.
A Pen by Joshua Hynes on CodePen.