npm

@jswork/wsui-vw-rem

1.0.8 • Public • Published

wsui-vw-rem

Rem solution based on vw and media query.

version license size download

installation

npm i @jswork/wsui-vw-rem

usage

@import '~@jswork/wsui-vw-rem';

// based: 750px
// 13.33vw = 100px

// based: 375px
// 13.33vw = 50px

// you can customize options:
$wsui-vw-rem-screen-width: 375px !default;
$wsui-vw-rem-base-font-size: 10px !default;
$wsui-vw-rem-media-list: ( 320, 360, 375, 393, 414, 480, 540, 640, 720, 768 ) !default;

// OR (presets for tailwindcss)
$wsui-vw-rem-screen-width: 375px !default;
$wsui-vw-rem-base-font-size: 16px !default;

resources

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/wsui-vw-rem

Homepage

js.work

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

8.19 kB

Total Files

7

Last publish

Collaborators

  • afeiship