Design comparison
SolutionDesign
Solution retrospective
I don't think Jquery's toggleClass is the best approach for a dark mode design.
I implemented the check and the cross using pseudoclasses but the cross is not activatable for some reason.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord