how can use hsl instead of rgb for scss global declaration javascript api
according to https://github.com/sass/sass/issues/2988 you cannot do this with the javascript api. dart-sass has it in the dart api, but not in the javascript api (yet).
your best bet is to convert from hsl to rgb and return Colour, as you are doing now.