import guard from './guard' ; param hue param saturation param lightness param alpha function hsla ( hue , saturation , lightness , alpha ) { return `hsla(${ ( hue % 360 ) . toFixed ( ) }, ${ guard ( 0 , 100 , saturation * 100 ) . toFixed ( ) }%, ${ guard ( 0 , 100 , lightness * 100 ) . toFixed ( ) }%, ${ parseFloat ( guard ( 0 , 1 , alpha ) . toFixed ( 3 ) ) })` ; } export default hsla ;