$colors: ( mako-grey: #404145, fuel-yellow: #ecaf2d, pastel-green: #5ad864 ); @mixin color-modifiers { @each $name, $hex in $colors { &-#{$name} { color: $hex; } } } .text { @include color-modifiers; }