I tried this:
:root {
--primary-color: $black
}
$secondary-color = "lighten(%s, 20%)" % var(--primary-color)
(I took it from here: How to use a Stylus variable in calc?)
I don't receive any errors. However, $secondary-color
doesn't render any color.
What's the best way of doing this?
The result is this:
background-color: lighten(var(--primary-color), 20%)
so I think something is not rendering well.