postcss-hsb-color

PostCSS plugin adding hsb() color.

Usage no npm install needed!

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

README

postcss-hsb-color Build Status

Postcss plugin adding hsb() color.

Installation

yarn add postcss-hsb-color

Usage

Input:

body {
    color: hsb(252, 35%, 64%);
}

Output:

body {
    color: hsl(100, 24%, 53%);
}

Option

postcss( [ hsbcolor({ output: 'rgb' }) ] )

output: 'rgb', 'hsl'(default)