@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.814latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.814
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @jswork/wsui-vw-rem

Homepage

js.work

Weekly Downloads

14

Version

1.0.8

License

MIT

Unpacked Size

8.19 kB

Total Files

7

Last publish

Collaborators

  • afeiship