How can I change the value of the variables inside this block [user-theme="theme"]
with JS? I have the same variables in other blocks that should not be affected because I flip between them by changing the attribute value.
[user-theme="theme"] {
--cell-checked-in: red;
--cell-checked-out: grey;
--cell-online-booking: yellow;
--cell-offline-booking: white;
}
The one solution I found that works (partly) is this one but it adds inline styles in the HTML tag which I don't want. I also can't do something like $("html[user-theme=theme]").get(0).style.setProperty("--cell-online-booking", "red");