CSS issue with mod

sorry to bother you with this, but maybe you can provide me with a hint as to how I may solve the CSS Issue I noted down in the uncommented areas of the css-editor inside of https://anymod.com/mod/nkdmkd Any help is greatly appreciated!

I cannot find a nice approach to apply the global variable : var(–primary); to css-line 83: IT USED TO BE:
color: darken($primaryColor, 10%);

AND I NEED IT TO BE SOMETHING LIKE

color: darken(var(–primary), 10%);

Glad if you can provide me with a hint

the only way I currently see is to hardcode the color :wink: I can of cause do that

Hi Stefan, great to see your use of CSS variables :grinning:. Unfortunately because CSS variables (e.g. --primary ) are still pretty new, they don’t work with SCSS, which is what is doing the darken method. So as of now, your best bet would be to simply create another global variable like --primaryDarker and then use it instead of darken(--primary) . Hopefully one day the 2 systems will work together, and we’ll update Anymod to use it when they do!

cool, okay, understood. Thank you very much for the clarification!