PostCSS plugin that adds shorthand hex methods to rgba() values
npm install postcss-hexrgba[PostCSS][PostCSS] plugin that adds shorthand hex methods to rgba() values.
_Part of Rucksack - CSS Superpowers_
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));
}
`
`js``
postcss([ require('postcss-hexrgba') ])
See [PostCSS][PostCSS] docs for examples for your environment.
*
MIT © Sean King
[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