20 lines
463 B
SCSS
20 lines
463 B
SCSS
![]() |
@mixin themify ($themes: $themes) {
|
||
|
@each $theme, $map in $themes {
|
||
|
.#{$theme} & {
|
||
|
// Define theme color
|
||
|
$theme-map : (
|
||
|
color-alpha: blue
|
||
|
) !global;
|
||
|
|
||
|
@each $key, $submap in $map {
|
||
|
$value: map-fetch($themes, $theme '#{$key}');
|
||
|
$theme-map: map-merge($theme-map, ($key: $value)) !global;
|
||
|
}
|
||
|
|
||
|
@content;
|
||
|
|
||
|
// reset theme color to null
|
||
|
$theme-map: null !global;
|
||
|
}
|
||
|
}
|
||
|
}
|