# vw-rem.scss

> vw+rem layout plan

Latest version **1.0.0** (published 2020-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install vw-rem.scss
pnpm add vw-rem.scss
yarn add vw-rem.scss
bun add vw-rem.scss
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-07 |
| First published | 2020-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | goddancer |
| Maintainers | goddancer |
| Keywords | vw+rem layout plan |

## Links

- npm: https://www.npmjs.com/package/vw-rem.scss
- Repository: https://github.com/goddancer/npm/tree/master/vw-rem.scss
- npm.io page: https://npm.io/package/vw-rem.scss

## Recent versions

- 1.0.0 (latest) — 2020-04-07

## README

# vw-rem.scss

* 几种布局方案：
  - 纯rem布局：普通布局还好，在响应式要求的页面中，必须通过js动态控制根元素的`font-size`大小。即`css`与`js`有一定的耦合性。
  - 纯vw布局：太过依赖视窗尺寸，无法作出最大最小限制。
  - vw+rem布局：在与js解耦的同时，仍可实现响应式布局要求。

* 以iPhone6为设计尺寸，以下默认尺寸设置，按需覆盖：
  - $baseFontSize: 37.5px !default;
  - $designSize: 375px !default;
  - $bodyMinWidth: 320px !default;
  - $bodyMaxWidth: 540px !default;

---
_Source: https://npm.io/package/vw-rem.scss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
