Design comparison
SolutionDesign
Solution retrospective
- I used the body dom object in making sure i can toggle to dark mode or light is that bad?
Community feedback
- @vlad-solomonPosted about 2 years ago
Nope, giving classes to the body DOM element is absolutely fine! It's pretty common to use the body for theme changes. Great work
Marked as helpful0 - @martinnkemakolamPosted about 2 years ago
Thank you I am happy to know its common practice
0
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