npm i liquidjs-color-filters
const liquid =liquidliquid// hsla(100, 38%, 54%, 0.5)
Difference with Shopify Liquid
We're trying to be compatible but there's still few differences:
Floor and Ceil
There could be at most 1 difference in each component value after color conversion.
color_mix always return rgb/rgba format,
while shopify will try to maintain the same format as the input.
The algorithms for
color_desaturate are not standarized by W3C, so the result is slightly different with the corresponding Shipify version.