@arolariu/components / parseHslString
Variable: parseHslString()
constparseHslString: (hslString) =>object=parseHslStringToComponents
Defined in: lib/color-conversion-utilities.ts:165
Parses an HSL CSS variable string into its numeric components.
Parameters
hslString
string
HSL string in format "h s% l%"
Returns
object
Object with hue, saturation, lightness values or null if invalid
hue
hue:
number
saturation
saturation:
number
lightness
lightness:
number
Deprecated
Use parseHslStringToComponents instead