# postcss-rgb

> A postcss plugin to use rgb and rgba with hex values

Latest version **1.0.0** (published 2017-07-04) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2017-07-04 |
| First published | 2017-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Arpad Hegedus |
| Maintainers | Arpad Hegedus |
| Keywords | postcss, extends, plugin |

## Links

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

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^6.0.5
- [postcss-plugin-utilities](https://npm.io/package/postcss-plugin-utilities.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2017-07-04

## README

A [PostCSS] plugin to use rgb and rgba with hex values

[PostCSS]: https://github.com/postcss/postcss
[Gulp]: https://github.com/gulpjs/gulp

## Installation

```js
npm install postcss-rgb
```

## Example

```css
div {
    background: rgba(black, 0.4)
}
```

will produce

```css
div {
    background: rgba(0, 0, 0, 0.4);
}
```

## Usage

Using [Gulp].

```js
var gulp            = require('gulp'),
    postcss         = require('gulp-postcss'),
    rgb             = require('postcss-rgb');

gulp.task('css', function() {
    gulp.src('path/to/dev/css').
        .pipe(postcss({
            rgb
        }))
        .pipe(gulp.dest('path/to/build/css'));
});

// rest of the gulp file
```

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