https://github.com/afeiship/wsui-vw-rem
Rem solution based on vw and media query.
https://github.com/afeiship/wsui-vw-rem
meida-query percentage rem resolution sass scale viewport vw wsui
Last synced: 22 days ago
JSON representation
Rem solution based on vw and media query.
- Host: GitHub
- URL: https://github.com/afeiship/wsui-vw-rem
- Owner: afeiship
- License: mit
- Created: 2019-08-19T08:33:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T08:51:14.000Z (about 1 year ago)
- Last Synced: 2025-03-13T05:36:04.462Z (about 1 month ago)
- Topics: meida-query, percentage, rem, resolution, sass, scale, viewport, vw, wsui
- Language: SCSS
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# wsui-vw-rem
> Rem solution based on vw and media query.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm i @jswork/wsui-vw-rem
```## usage
```scss
@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
- https://3g.163.com/touch/#/
- https://blog.csdn.net/chi1130/article/details/82844489
- https://blog.csdn.net/lishihong108/article/details/52290021## license
Code released under [the MIT license](https://github.com/afeiship/wsui-vw-rem/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/wsui-vw-rem
[version-url]: https://npmjs.org/package/@jswork/wsui-vw-rem[license-image]: https://img.shields.io/npm/l/@jswork/wsui-vw-rem
[license-url]: https://github.com/afeiship/wsui-vw-rem/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/wsui-vw-rem
[size-url]: https://github.com/afeiship/wsui-vw-rem/blob/master/dist/wsui-vw-rem.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/wsui-vw-rem
[download-url]: https://www.npmjs.com/package/@jswork/wsui-vw-rem