label-variant()
Last updated
Last updated
The mixin contains the and style of the values given respectively by and CSS variable name. Both parameters can be passed as a two-index where the second item in the list refers to the lightness, and parameter can be passed using the three-index where the third item is a label background alpha.
For example $color: ('primary', -10%)
when font color primary
should be darker by 10%, and $bg-color: ('primary-dark', 10%)
when label background color is primary-dark
lighter by 10%
.
$color: 'light-color'
$bg-color: 'primary-color'
$color-lightness: 0%
$bg-lightness: 0%
A color name that exists as a CSS variable of a string or two-index type is passed to the function to set the foreground color value of a label's text. The first item of the two-index list refers to the CSS variable color name, and the second refers to its lightness.
A color name that exists as a CSS variable of a string or three-index type is passed to the function to set the background color of the label. The first item of the three-index refers to the CSS variable color name, the second refers to its lightness, and the third refers to the alpha.
Optional alternative lightness attribute of the given parameter.
Optional alternative lightness attribute of the given parameter.