postcss-color-hexa

A postcss plugin that enables the use of hexa() to combine hex codes and opacity into rgba()

Usage no npm install needed!

<script type="module">
  import postcssColorHexa from 'https://cdn.skypack.dev/postcss-color-hexa';
</script>

README

postcss-color-hexa Build Status

A postcss plugin that enables the use of hexa() to combine hex codes and opacity into rgba()


Input

body {
    background: hexa(#abc, 0.1);
}

Output

body {
    background: rgba(170, 187, 204, 0.1);
}

Usage

postcss([require('postcss-color-hexa')]);

Install

npm install --save postcss-color-hexa