gitlab-org--gitlab-foss/app/assets/stylesheets/utilities.scss
Simon Knox c4c6dcb68c Add color util classes for backgrounds and text
We have a range of shades for most of the theme colors
Grouped them into color maps the same way Bootstrap does
for $grays already
Also add type scale utils
2019-04-04 00:54:32 +11:00

17 lines
319 B
SCSS

@each $variant, $range in $color-ranges {
@each $suffix, $color in $range {
#{'.bg-#{$variant}-#{$suffix}'} {
background-color: $color;
}
#{'.text-#{$variant}-#{$suffix}'} {
color: $color;
}
}
}
@each $index, $size in $type-scale {
#{'.text-#{$index}'} {
font-size: $size;
}
}