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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more