# postcss-use-100dvh

> PostCSS plugin to replace 100vh with 100dvh

Latest version **0.1.0** (published 2022-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-use-100dvh
pnpm add postcss-use-100dvh
yarn add postcss-use-100dvh
bun add postcss-use-100dvh
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-03-18 |
| First published | 2022-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Derek Passen |
| Maintainers | dpassen |
| Keywords | postcss, css, postcss-plugin, postcss-use-100dvh |

## Links

- npm: https://www.npmjs.com/package/postcss-use-100dvh
- Repository: https://github.com/dpassen/postcss-use-100dvh
- Homepage: https://github.com/dpassen/postcss-use-100dvh#readme
- Issues: https://github.com/dpassen/postcss-use-100dvh/issues
- npm.io page: https://npm.io/package/postcss-use-100dvh

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2022-03-18

## README

# postcss-use-100dvh

[PostCSS] plugin to replace 100vh with 100dvh.

[PostCSS]: https://github.com/postcss/postcss

```css
.min-h-screen {
  min-height: 100vh;
}
```

```css
@supports (-webkit-touch-callout: none) {
  .min-h-screen {
    min-height: 100dvh;
  }
}

.min-h-screen {
  min-height: 100vh;
}
```

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-use-100dvh
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
  plugins: [
+   require('postcss-use-100dvh'),
    require('autoprefixer')
  ]
}
```

[official docs]: https://github.com/postcss/postcss#usage

---
_Source: https://npm.io/package/postcss-use-100dvh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
