Port 8a3bed1933b7afdaa196639b753f41e743c4491a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
22 lines
412 B
SCSS
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
|
|
);
|
|
}
|