# postcss-hexrgba

> PostCSS plugin that adds shorthand hex methods to rgba() values

Latest version **2.1.0** (published 2022-07-10) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.1.0 |
| Published | 2022-07-10 |
| First published | 2015-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 69 |
| Author | Sean King |
| Maintainers | madeleineostoja |
| Keywords | postcss, css, postcss-plugin, hex, rgba |

## Links

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

## Dependencies (1)

- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.1.0

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

- 2.1.0 (latest) — 2022-07-10
- 2.0.1 — 2020-06-10
- 2.0.0 — 2019-10-16
- 1.0.2 — 2019-07-19
- 1.0.1 — 2018-04-30
- 1.0.0 — 2017-07-26
- 0.2.1 — 2016-09-19
- 0.2.0 — 2015-09-06
- 0.1.2 — 2015-07-25
- 0.1.1 — 2015-07-23
- 0.1.0 — 2015-06-17

## README

# PostCSS HexRGBA
[![NPM version][npm-badge]][npm-url] [![Downloads][downloads-badge]][npm-url] [![Build Status][travis-badge]][travis-url]

[PostCSS][PostCSS] plugin that adds shorthand hex methods to rgba() values.

_Part of [Rucksack - CSS Superpowers](https://www.rucksackcss.org/)_

**Input**

```css
.foo {
  color: rgba(#0fab53, 0.8)
}

.bar {
  background: linear-gradient(rgba(#fff, .1), rgba(#fff, .2));
}
```

**Output**

```css
.foo {
  color: rgba(15,171,83, 0.8)
}

.bar {
  background: linear-gradient(rgba(255,255,255, .1), rgba(255,255,255, .2));
}
```

## Usage

```js
postcss([ require('postcss-hexrgba') ])
```

See [PostCSS][PostCSS] docs for examples for your environment.

***

MIT © [Sean King](https://twitter.com/seaneking)

[npm-badge]: https://badge.fury.io/js/postcss-hexrgba.svg
[npm-url]: https://npmjs.org/package/postcss-hexrgba
[downloads-badge]: https://img.shields.io/npm/dm/postcss-hexrgba.svg
[travis-badge]: https://travis-ci.org/seaneking/postcss-hexrgba.svg?branch=master
[travis-url]: https://travis-ci.org/seaneking/postcss-hexrgba
[PostCSS]: https://github.com/postcss/postcss

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