base-scale
Scale layout flexibility.
Install
$ npm install base-scale
Usage
Webpack
; // setup; // call px2rem;
px2rem
must be called after setup.
API
setup(blueprintWidth = 750, gridNumber = 100)
blueprintWidth
: the width of blueprint in pixel.gridNumber
: grid number.
px2rem(pixel)
pixel
: length in pixel.