Day # 87: Dark light
Toggling between dark and light modes is a common functionality for any website. It also represents a magnificent exercise for any beginner of frontend development.
The premise is simple: you just need to change the background and the font colors by creating a button that controls that transition.
However, achieving this change will allow you to practice and understand key concepts in frontend development, which is the ability to make changes in Javascript that affect the styling of the website.
There are other more effective ways to do so, but I strongly encourage you to do this the hard way, since it will help you to clarify a few terms and get your HTML, CSS and Javascript juices going.
Comments
Post a Comment