Label colors
Label color variants are included by using the label-class-variant() mixin that uses color() function, in the .label class as its extension in the src/_labels.scss file.
Core colors
.label {
// Accent.
@include label-class-variant(
$name: 'accent',
$color: 'light-color',
$bg-color: 'accent-color'
);
// Primary.
@include label-class-variant(
$name: 'primary',
$color: 'light-color',
$bg-color: 'primary-color'
);
// Primary dark.
@include label-class-variant(
$name: 'primary-dark',
$color: 'light-color',
$bg-color: 'primary-color-dark'
);
// Primary light.
@include label-class-variant(
$name: 'primary-light',
$color: 'light-color',
$bg-color: 'primary-color-light'
);
// Secondary.
@include label-class-variant(
$name: 'secondary',
$color: 'primary-color',
$bg-color: 'secondary-color'
);
// Secondary dark.
@include label-class-variant(
$name: 'secondary-dark',
$color: 'primary-color',
$bg-color: 'secondary-color-dark'
);
// Secondary light.
@include label-class-variant(
$name: 'secondary-light',
$color: 'primary-color',
$bg-color: 'secondary-color-light'
);
}Which results in the ability to use classes as follows.
Shades
Which results in the ability to use classes as follows.
Gray colors
Which results in the ability to use classes as follows.
Link colors
Which results in the ability to use classes as follows.
Body colors
Which results in the ability to use classes as follows.
Bg colors
Which results in the ability to use classes as follows.
Control colors
Which results in the ability to use classes as follows.
Other colors
Which results in the ability to use classes as follows.
Demonstration
Last updated
