Background and color utility classes & map
This commit is contained in:
@ -23,11 +23,20 @@ $green: #28a745;
|
|||||||
$teal: #20c997;
|
$teal: #20c997;
|
||||||
$cyan: #17a2b8;
|
$cyan: #17a2b8;
|
||||||
|
|
||||||
$primary: $blue;
|
|
||||||
$secondary: $gray-600;
|
|
||||||
$success: $green;
|
$success: $green;
|
||||||
$info: $cyan;
|
$info: $cyan;
|
||||||
$warning: #ff9a52;
|
$warning: #ff9a52;
|
||||||
$danger: $red;
|
$danger: $red;
|
||||||
$light: $gray-100;
|
$light: $gray-100;
|
||||||
$dark: $gray-800;
|
$dark: $gray-800;
|
||||||
|
|
||||||
|
$primary: $blue;
|
||||||
|
$secondary: $gray-600;
|
||||||
|
|
||||||
|
// Map for utility classes
|
||||||
|
$theme-colors: (
|
||||||
|
"primary": $primary,
|
||||||
|
"secondary": $secondary,
|
||||||
|
//"tertiary": $tertiary,
|
||||||
|
//"quaternary": $quaternary,,
|
||||||
|
);
|
||||||
|
|||||||
12
falcon/_dev/css/theme/custom/abstracts/_utilities.scss
Normal file
12
falcon/_dev/css/theme/custom/abstracts/_utilities.scss
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Color utility classes
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.bg-#{$name} {
|
||||||
|
background-color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $name, $color in $theme-colors {
|
||||||
|
.color-#{$name} {
|
||||||
|
color: $color;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user