Allow each component to have its own colors and default to the global set

This commit is contained in:
Aria Stewart
2020-08-21 11:40:07 -04:00
committed by Jeremy Thomas
parent 7a3efb04aa
commit da369e134c
12 changed files with 35 additions and 11 deletions

View File

@@ -3,6 +3,8 @@ $label-weight: $weight-bold !default
$help-size: $size-small !default
$label-colors: $form-colors !default
.label
color: $label-color
display: block
@@ -22,7 +24,7 @@ $help-size: $size-small !default
display: block
font-size: $help-size
margin-top: 0.25rem
@each $name, $pair in $colors
@each $name, $pair in $label-colors
$color: nth($pair, 1)
&.is-#{$name}
color: $color