Echo 3bfc576a49 [Glitch] Fix SASS deprecation notices
Port 8a3bed1933b7afdaa196639b753f41e743c4491a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2025-03-27 21:29:33 +01:00

22 lines
412 B
SCSS

@use 'sass:color';
$darken-multiplier: -1 !default;
$lighten-multiplier: 1 !default;
// Invert darkened and lightened colors
@function darken($color, $amount) {
@return color.adjust(
$color,
$lightness: $amount * $darken-multiplier,
$space: hsl
);
}
@function lighten($color, $amount) {
@return color.adjust(
$color,
$lightness: $amount * $lighten-multiplier,
$space: hsl
);
}