Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

to-rem

webyak18MIT0.1.1

Convert pixels to rem.

readme

to-rem

Convert pixels to rem.

Install: npm install to-rem --save

import rem from 'to-rem';

var style = {
  margin: rem(20),
  padding: rem('8 0 12'),
};