Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xop/postcss-rgba-hex
PoscCSS plugin that replaces RGB(a) values with hexadecimal analogues
https://github.com/xop/postcss-rgba-hex
Last synced: about 2 months ago
JSON representation
PoscCSS plugin that replaces RGB(a) values with hexadecimal analogues
- Host: GitHub
- URL: https://github.com/xop/postcss-rgba-hex
- Owner: XOP
- License: mit
- Created: 2015-10-21T15:28:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T08:49:09.000Z (about 8 years ago)
- Last Synced: 2024-11-10T03:42:55.438Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# postcss-rgba-hex
[![npm version](https://badge.fury.io/js/postcss-rgba-hex.svg)](https://www.npmjs.com/package/postcss-rgba-hex) [![build status](https://travis-ci.org/XOP/postcss-rgba-hex.svg)](https://travis-ci.org/XOP/postcss-rgba-hex)
> [PostCSS](https://github.com/postcss/postcss) plugin that replaces RGB(a) values with hexadecimal analogues
## Processing example
this code
```
.element {
border: 2px solid rgba(0,0,0,.2);
}
```converts to
```
.element {
border: 2px solid #000000;
}
```## Installation
```
npm i --save-dev postcss-rgba-hex
```## Usage
```
postcss([ require('postcss-rgba-hex') ])
```
Please refer to [PostCSS documentation](https://github.com/postcss/postcss#usage) for you current environment.### Options
#### `rgbOnly` [Boolean]
default: `false`Process only rgb color values
#### `rgbaOnly` [Boolean]
default: `false`Process only rgba color values
#### `silent` [Boolean]
default: `false`Omit verbose conversion logging
## [Changelog](CHANGELOG)
## [License](LICENSE)