DEV Community

Cover image for Theme Changer with HTML and CSS only
Shubham Tiwari
Shubham Tiwari

Posted on

Theme Changer with HTML and CSS only

Hello Guys today i am going to show you a theme changer with HTML and CSS.
There is a new selector in CSS introduced named "has()" which is very powerful selector if used properly but it's browser support is not vast and is still only supported in 2022 latest chrome browsers and not supported in Safari.
I am discussing this selector because i used it in this theme changer web page.

Source of Design -

You can check the code in the codepen and the output as well.


You can contact me on -
Instagram -
LinkedIn -
Email -

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> <--

Also check these posts as well

Top comments (2)

abdul1 profile image
Abdul Subhan

Source: Kevin Powell YT

shubhamtiwari909 profile image
Shubham Tiwari

Forgot to add
Edited the post