base-scale

1.0.0 • Public • Published

base-scale

Dependency Status DevDependency Status NPM Downloads

Scale layout flexibility.

Install

$ npm install base-scale

Usage

Webpack

import { setup, px2rem } from 'base-scale';
 
// setup
setup(750);
 
// call px2rem
px2rem(200);

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.

Inspiration

Readme

Keywords

none

Package Sidebar

Install

npm i base-scale

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.68 kB

Total Files

9

Last publish

Collaborators

  • m31271n_account