DEV Community

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

Posted on

16

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 -
https://youtu.be/fyuao3G-2qg

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

THANK YOU FOR CHECKING THIS POST

You can contact me on -
Instagram - https://www.instagram.com/supremacism__shubh/
LinkedIn - https://www.linkedin.com/in/shubham-tiwari-b7544b193/
Email - shubhmtiwri00@gmail.com

^^You can help me by some donation at the link below Thank you👇👇 ^^
☕ --> https://www.buymeacoffee.com/waaduheck <--

Also check these posts as well
https://dev.to/shubhamtiwari909/js-push-and-pop-with-arrays-33a2/edit

https://dev.to/shubhamtiwari909/tostring-in-js-27b

https://dev.to/shubhamtiwari909/join-in-javascript-4050

https://dev.to/shubhamtiwari909/going-deep-in-array-sort-js-2n90

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (2)

Collapse
 
abdul1 profile image
Abdul Subhan

Source: Kevin Powell YT

Collapse
 
shubhamtiwari909 profile image
Shubham Tiwari

Forgot to add
Edited the post

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay