scss: replace @use with @forward

This commit is contained in:
2026-02-11 20:46:12 +00:00
parent 83502a2798
commit 9dcc4045ab
15 changed files with 98 additions and 103 deletions

View File

@@ -1,5 +1,5 @@
@use "text-contrast";
@use "../variables/colours";
@use "../variables";
@use "sass:color";
@@ -24,11 +24,11 @@
@include text-contrast.text_contrast(color.invert($hex));
background: color.invert($hex);
@if($name == "white") {
color: colours.$white;
background: colours.$primary;
color: variables.$white;
background: variables.$primary;
} @else if($name == "black") {
color: colours.$white;
background: colours.$primary-lighter;
color: variables.$white;
background: variables.$primary-lighter;
} @else {
@include text-contrast.text_contrast(color.invert($hex));
background: color.invert($hex);