@mixin text-emphasis-variant($parent, $color) { #{$parent} { color: $color !important; } @if $emphasized-link-hover-darken-percentage != 0 { a#{$parent} { &:hover, &:focus { color: darken($color, $emphasized-link-hover-darken-percentage) !important; } } } } @each $color, $value in $theme-colors { @include text-emphasis-variant(".text-#{$color}", $value); }