postcss-plugin-hsluv
PostCSS plugin for HSLuv color model functions
HSL Lightness | HSLuv Lightness |
---|---|
![]() |
![]() |
Usage
npm install postcss-plugin-hsluv
postcss.config.js
moduleexports = plugins: 'postcss-plugin-hsluv': {}
Example
Input
Todo
- Transform to HSL instead of hex
- Support for alpha values
- Tests
Acknowledgements
Full credit for HSLuv color model and its design goes to hsluv/shluv and its maintainers. This postcss plugin merely uses the javascript implementation from the repository.