label-class-variant()
Last updated
Last updated
The mixin contains an extending class of the name prefixed with label-
and the given color $name
that includes a label-variant()
mixin of the given CSS variable names $color
and $bg-color
. Both parameters can be passed as two-index list where the second item in the list refers to the lightness, for example $color: ('primary', -10%)
when primary color should be darker by 10%
.
$name: 'light'
The suffix for the label-
class name, which by default is light
, resulting in CSS class name .label-light
. Especially used as the color code.
$color: 'light-color'
A color name of a string or two-index list type that exists as a CSS variable is passed to the color()
function to set the foreground color value of a label's text.
$bg-color: 'primary-color'
A color name of a string or two-index list type that exists as a CSS variable is passed to the color()
function to set the background color of the label.
$color-lightness: 0%
Optional alternative lightness attribute of the given $color
parameter.
$bg-lightness: 0%
Optional alternative lightness attribute of the given $bg-color
parameter.