label-class-variant()
Last updated
Last updated
The mixin contains an extending class of the name prefixed with label-
and the given color that includes a mixin of the given CSS variable names and . Both parameters can be passed as two-index 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'
$color: 'light-color'
$bg-color: 'primary-color'
$color-lightness: 0%
$bg-lightness: 0%
The suffix for the label-
class name, which by default is light
, resulting in CSS class name .label-light
. Especially used as the .
A color name of a string or two-index type that exists as a CSS variable is passed to the function to set the foreground color value of a label's text.
A color name of a string or two-index type that exists as a CSS variable is passed to the function to set the color of the label.
Optional alternative lightness attribute of the given parameter.
Optional alternative lightness attribute of the given parameter.