Closed Semigradsky closed 3 years ago
colord('hsl(0deg 100% 50%)') // r { parsed: null, rgba: { r: 0, g: 0, b: 0, a: 1 } }
But works if hue in number format:
hue
colord('hsl(0 100% 50%)') // r { // parsed: { r: 255, g: 0, b: 0, a: 1 }, // rgba: { r: 255, g: 0, b: 0, a: 1 } // }
Syntax: https://www.w3.org/TR/css-color-4/#hue-syntax
Good catch, thanks! Will do that this week.
Fixed in v1.3.1 🚀
But works if
hue
in number format:Syntax: https://www.w3.org/TR/css-color-4/#hue-syntax