import Color from 'color' ; export const computeGradientFinalColor = ( color ) : string => { let inputColor = new Color ( color ) ; const hsl = inputColor . hsl ( ) . object ( ) ; hsl . l -= inputColor . luminosity ( ) * 100 ; inputColor = Color . hsl ( hsl ) ; return inputColor . rgb ( ) . toString ( ) ; } ;