I add css variable to root because i want to change it dynamically by using JS
#root {
--primary-color: #4c5b73;
}
$primary-color: var(--primary-color) !default;
.my-component {
background-color: transparentize($primary-color, 0.85);
}
I want to use the Basic scss function transparentize
or lighter or darker
But i got this error
Argument `$color` of `transparentize($color, $amount)` must be a color
How can i tell that this is a color type?
Update
I should do this more earlier
https://codepen.io/colton123/pen/bGVbRjP