export function createCSSGradient ( colors , degrees = 90 ) { let gradient = `linear-gradient(${ degrees }deg, ` ; const len = colors . length ; let i = 0 ; for ( const color of colors ) { gradient += color ; if ( i !== len - 1 ) { gradient += ', ' ; } i ++ ; } gradient += ')' ; return gradient ; }