Mock dashboard with dark mode switch built with HTML, CSS and JS

Solution retrospective
I made this with light mode as the default rather than dark mode, and only just noticed before submission. Oh well, this is my solution and I'm sticking to it!
I am not happy with the class names, and I could probably make the JavaScript code more concise if I'd had more time.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Michael Godfrey's solution.
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