Is there a trick or way to use Sass lighten() and darken() with CSS variables? (I have to use css variables)
//.scss
:root{
--my-color: #ff0000;
}
// method 1 :
$my-color-darken: darken(var(--my-color), 15%); // not working
// method 2 :
$my-color: var(--my-color);
$my-color-lighten: lighten($my-color, 15%); // not working