html – how to use the CSS ::theme selector

ive started making a HTML/CSS/Vanilla JS web component library, and so far everything is going great.
im using the typical ::part and all that, but i stumbled accros ::theme selector aswell, which is supposed to give quick access to styling without a creator having to set up more than necesarry.

problem is, i – whatever ive tried – can’t seem to the get the ::theme selector work, is there anyone who can help me out ?

screendump is from, tried following but i dont know if this selector is still experimental ?, it would really make styling my components alot easier if it worked !

this screen is from following link that talks about it

Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here