# postcss-direct-reset

> PostCSS plugin to easy and fast reset elements with reset.css

Latest version **1.0.2** (published 2017-09-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install postcss-direct-reset
pnpm add postcss-direct-reset
yarn add postcss-direct-reset
bun add postcss-direct-reset
```

## 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 | 2017-09-02 |
| First published | 2017-09-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | lamartire |
| Keywords | postcss, postcss-plugin, reset.css |

## Links

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

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^6.0.9
- [reset-css](https://npm.io/package/reset-css.md) ^2.2.1

## Recent versions

- 1.0.2 (latest) — 2017-09-02
- 1.0.1 — 2017-09-02
- 1.0.0 — 2017-09-02

## README

# PostCSS Direct Reset [![Build Status](https://travis-ci.org/lamartire/postcss-direct-reset.svg?branch=master)](https://travis-ci.org/lamartire/postcss-direct-reset)

[PostCSS](https://github.com/postcss/postcss) plugin to easy and fast reset
elements with [reset.css](https://www.npmjs.com/package/reset-css).

If you don't wanna to global reset all css-elements, you can reset elements
directly.

### Usage

```css
.block {
  @reset(element-selector)
}
```

### Example

```css
.block {
  display: block;
  margin: 1em auto;
}

/* p element */
.block__element {
  @reset('p');
  color: '#f00';
}
```

Will be processed to:

```css
.block {
  display: block;
  margin: 1em auto;
}

.block__element {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  color: '#f00';
}
```

### Roadmap

- [ ] - insert pseudo-elements if that needs

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