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)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 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