feat: Resolve all deprecation warnings for sass
- 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()
This commit is contained in:
parent
867e96ea0a
commit
4e4f8814d3
26 changed files with 476 additions and 420 deletions
|
|
@ -1,22 +1,24 @@
|
|||
@use "sass:map";
|
||||
|
||||
@mixin addDefaultColors() {
|
||||
@if map.has-key($color_palette, alpha) {
|
||||
$alpha_color: map.get($color_palette, alpha) !global;
|
||||
@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($color_palette, bravo) {
|
||||
$bravo_color: map.get($color_palette, bravo) !global;
|
||||
@if map.has-key(config.$color_palette, bravo) {
|
||||
$bravo_color: map.get(config.$color_palette, bravo) !global;
|
||||
}
|
||||
@if map.has-key($color_palette, charlie) {
|
||||
$charlie_color: map.get($color_palette, charlie) !global;
|
||||
@if map.has-key(config.$color_palette, charlie) {
|
||||
$charlie_color: map.get(config.$color_palette, charlie) !global;
|
||||
}
|
||||
@if map.has-key($color_palette, delta) {
|
||||
$delta_color: map.get($color_palette, delta) !global;
|
||||
@if map.has-key(config.$color_palette, delta) {
|
||||
$delta_color: map.get(config.$color_palette, delta) !global;
|
||||
}
|
||||
@if map.has-key($color_palette, echo) {
|
||||
$echo_color: map.get($color_palette, echo) !global;
|
||||
@if map.has-key(config.$color_palette, echo) {
|
||||
$echo_color: map.get(config.$color_palette, echo) !global;
|
||||
}
|
||||
@if map.has-key($color_palette, foxtrot) {
|
||||
$foxtrot_color: map.get($color_palette, foxtrot) !global;
|
||||
@if map.has-key(config.$color_palette, foxtrot) {
|
||||
$foxtrot_color: map.get(config.$color_palette, foxtrot) !global;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue