hov to use variable from js in css code example
Example: js set css variable
document.documentElement.style.setProperty("--main-background-color", "green");
document.documentElement.style.setProperty("--main-background-color", "green");