@each $key, $num in $map {
@if $prev-num == null or math.unit($num) == "%" or math.unit($prev-num) == "%" {
// Do nothing
- } @else if not comparable($prev-num, $num) {
+ } @else if not math.compatible($prev-num, $num) {
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
} @else if $prev-num >= $num {
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
// stylelint-disable selector-attribute-quotes
+@use "sass:color";
+
@import "../../colors";
@import "../../functions";
@import "../../config";
}
}
@include color-mode(dark, true) {
- --custom-color: #{mix($indigo, $blue, 50%)};
+ --custom-color: #{color.mix($indigo, $blue, 50%)};
}
}
@include expect() {
}
}
@include color-mode(dark, true) {
- --custom-color: #{mix($indigo, $blue, 50%)};
+ --custom-color: #{color.mix($indigo, $blue, 50%)};
}
}
@include expect() {