PostCSS plugin to transform W3C RGBA hexadecimal notations (#RRGGBBAA or #RGBA) to more compatible CSS (rgba()).
Installation
$ npm install postcss-color-hex-alpha
Usage
// dependenciesvar fs = var postcss = var colorHexAlpha = // css to be processedvar css = fs // process cssvar output = css
Using this input.css
:
you will get:
Checkout tests for more examples.
Contributing
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/postcss/postcss-color-hex-alpha.git
$ git checkout -b patch-1
$ npm install
$ npm test