refactor: replace deprecated global functions to fix Sass warnings

This commit is contained in:
Lucas Larroche 2025-03-15 12:03:28 +07:00
parent 0a77e6f335
commit 537e3aedc2
9 changed files with 65 additions and 39 deletions

View file

@ -1,8 +1,9 @@
@use "sass:color";
@use "sass:string";
// Display color as RGB
@function display-rgb($color) {
@return unquote(
@return string.unquote(
"rgb(" + color.channel($color, "red") + ", " + color.channel($color, "green") + ", " +
color.channel($color, "blue") + ")"
);