DEV Community

Cover image for Made a whimsical theme toggle, with CSS and emojis
Sujan Sundareswaran
Sujan Sundareswaran

Posted on

Made a whimsical theme toggle, with CSS and emojis

You can check it out in action here: https://fictoan.io/

It’s all CSS, and two lines of JS, just for the rotation trigger. I wanted to make it into a bigger scene, but wanted to share this right away!

Can you spot all the micro-details here?

Full code:
https://github.com/fictoan/fictoan-docs/tree/main/src/components/Header/ThemeToggle

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay