# @lifeiscontent/postcss-rem-function

> PostCSS plugin to add rem function to easily calculate rem values

Latest version **1.0.0** (published 2020-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lifeiscontent/postcss-rem-function
pnpm add @lifeiscontent/postcss-rem-function
yarn add @lifeiscontent/postcss-rem-function
bun add @lifeiscontent/postcss-rem-function
```

## 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-07-26 |
| First published | 2020-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aaron Reisman |
| Maintainers | lifeiscontent |
| Keywords | postcss, css, postcss-plugin, rem, responsive, typography |

## Links

- npm: https://www.npmjs.com/package/@lifeiscontent/postcss-rem-function
- Repository: https://github.com/lifeiscontent/postcss-rem-function
- Issues: https://github.com/lifeiscontent/postcss-rem-function/issues
- npm.io page: https://npm.io/package/@lifeiscontent/postcss-rem-function

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) 7.x

## 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.0 (latest) — 2020-07-26

## README

# PostCSS Rem Function

[PostCSS] plugin to add rem function to easily calculate rem values.

## Example

### Input

```scss
.demo {
  font-size: rem(24); /* using default 16 */
  padding: rem(5, 10); /* Explict base */
}
```

### Output

```css
.demo {
  font-size: 1.5rem; /* Simple */
  padding: 0.5rem; /* Explict base */
}
```

## Options

With `baseline` to `10`:

```css
.demo {
  font-size: 2.4rem; /* Simple */
  padding: 0.5rem; /* Multiple values */
}
```

## Usage

Install with `npm i postcss-rem-function` and use with [PostCSS]:

```js
postcss([require("@lifeiscontent/postcss-rem-function")]);
```

Example with custom options:

```js
postcss([
  require("@lifeiscontent/postcss-rem-function")({
    baseline: 10, // Default to 16
    precision: 6, // Default to 8
  }),
]);
```

See [PostCSS] docs for examples for your environment.

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

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