Closed richhayler closed 2 years ago
Given that the plugin can convert hex values to both HSL and RGB, it would be great if there was a filter to convert HSL and RGB values back to Hex.
A specific use case is: Conversion of Hex to HSL to then manipulate the colour saturation value and then converting the resulting HSL back to Hex.
We've revamped the color conversion filters to support converting from and to just about anything in 3.0.0
For this, you can use {{ 'rgb(255,0,255)' | toHex }} {{ 'hsl(300, 100%, 50%)' | toHex }}
{{ 'rgb(255,0,255)' | toHex }}
{{ 'hsl(300, 100%, 50%)' | toHex }}
Check out the updated docs for more.
Given that the plugin can convert hex values to both HSL and RGB, it would be great if there was a filter to convert HSL and RGB values back to Hex.
A specific use case is: Conversion of Hex to HSL to then manipulate the colour saturation value and then converting the resulting HSL back to Hex.