New Stylesheet resource

You could do it with :has() on updated browsers

html:has(> head link[href$="dark.css"]) {
--test: blue;
}

html:has(> head link[href$="light.css"]) {
--test: red;
}



image

7 Likes

Nice, thank you. Works in browser, just not in Designer. But that's ok, I can get around it.

1 Like