Just a Summer pop-in. How would you go about making a light/dark theme using HTML, CSS, and JavaScript?
@smokeybrown think you might know this
Hi, sorry I wasn't online during the long weekend. To make a light/dark theme, I guess I would make the color properties of the elements on the page toggle-able with some sort of button or switch. Basically, when clicked, the switch would change some condition in order to make all the elements change between dark-or light-colored; the background color, as well as the colors of certain boxes, panels, buttons, etc. would be affected. If you'd like to, I can try to go into specifics. I will say I'm more familiar with HTML than JavaScript or CSS, but I think the logic behind the design would be mostly the same regardless of the language. That said, I'm sure there's other people on the website with more hands-on web design experience in this particular vein. Truth be told, I'm more of a back-end guy; I just know enough front-end stuff to get by :)
Join our real-time social learning platform and learn together with your friends!