@for $i from 1 through length($bg-color-list){
   $item:nth($bg-color-list,$i);
   .bg-#{map-get($item,name)}{
       background-color: #{map-get($item,value)};
   }      
}