
Design comparison
SolutionDesign
Solution retrospective
This is the first time I have tried to add a dark theme on a page. My switch works by adding a class when the switch is clicked which reassigns the custom property color values. Is it possible to animate the transition from light to dark like this or do I need to use another method?
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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