- Replace @import with @use and @forward - Only color function is used in _basic.scss for now - Change _all.scss to _index.scss - Modules use direct dependencies - Move @include from _config.scss to _common.scss, this was a long term mistake - Remove $color_list - Change basic_color()
24 lines
795 B
SCSS
24 lines
795 B
SCSS
@use "sass:map";
|
|
|
|
@use "../global/config";
|
|
|
|
@mixin addDefaultColors {
|
|
@if map.has-key(config.$color_palette, alpha) {
|
|
$alpha_color: map.get(config.$color_palette, alpha) !global;
|
|
}
|
|
@if map.has-key(config.$color_palette, bravo) {
|
|
$bravo_color: map.get(config.$color_palette, bravo) !global;
|
|
}
|
|
@if map.has-key(config.$color_palette, charlie) {
|
|
$charlie_color: map.get(config.$color_palette, charlie) !global;
|
|
}
|
|
@if map.has-key(config.$color_palette, delta) {
|
|
$delta_color: map.get(config.$color_palette, delta) !global;
|
|
}
|
|
@if map.has-key(config.$color_palette, echo) {
|
|
$echo_color: map.get(config.$color_palette, echo) !global;
|
|
}
|
|
@if map.has-key(config.$color_palette, foxtrot) {
|
|
$foxtrot_color: map.get(config.$color_palette, foxtrot) !global;
|
|
}
|
|
}
|