# postcss-pxn2rem

> PostCSS plugin for convert pxn to rem for options(markBaseWidth, columns)

Latest version **1.0.2** (published 2020-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-pxn2rem
pnpm add postcss-pxn2rem
yarn add postcss-pxn2rem
bun add postcss-pxn2rem
```

## 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.2 |
| Published | 2020-01-17 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yusphy4 |
| Maintainers | yusphy45 |
| Keywords | postcss, css, postcss-plugin, rem |

## Links

- npm: https://www.npmjs.com/package/postcss-pxn2rem
- Repository: https://github.com/yusphy45/postcss-pxn2rem
- Homepage: https://github.com/yusphy45/postcss-pxn2rem#readme
- Issues: https://github.com/yusphy45/postcss-pxn2rem/issues
- npm.io page: https://npm.io/package/postcss-pxn2rem

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^7.0.18

## 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

- 1.0.2 (latest) — 2020-01-17
- 1.0.1 — 2020-01-16
- 1.0.0 — 2020-01-16
- 0.0.0 — 2020-01-16

## README

# PostCSS Pxn2rem

[PostCSS] plugin for convert pxn to rem for options(markBaseWidth, columns).

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

```css
.foo {
  /* Input example */
  height: 37.5pxn;
}
```

```css
.foo {
  /* Output example */
  height: 1rem;
}
```

## Usage

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 already use PostCSS, add the plugin to plugins list:

```diff
module.exports = {
  plugins: [
+   require('postcss-pxn2rem')({ markBaseWidth: 375, columns: 10 }),
    require('autoprefixer')
  ]
}
```

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

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

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