import parseToHsla from './parseToHsla' ; import hsla from './hsla' ; param amount function darken ( color , amount ) { const [ hue , saturation , lightness , alpha ] = parseToHsla ( color ) ; return hsla ( hue , saturation , lightness - amount , alpha ) ; } export default darken ;