How to make dark mode in HTML,CSS,JS ? | SoloLearn: Learn to code for FREE!

+1

How to make dark mode in HTML,CSS,JS ?

pls help broh.

7/21/2019 5:23:09 AM

Daniel Fikri

6 Answers

New Answer

+3

Create a js function where you change the background color of the elements you want to a darker color, and add the current settings of the light mode.(by using an if else statement) Create an html button , add an click event on it, and by pressing it you should be switching between light/dark mode. If you have any other questions feel free to show us your code, and sololearn users will do their best to help you. 😀

+2

Do you mean the SoloLearn application or your code editor?

+1

Something like this, and you can stylish, add more advanced stuffs, etc... https://code.sololearn.com/WgTh17W1LN93/?ref=app

+1

https://code.sololearn.com/W66D9Fd5ms0N/?ref=app

0

The Website appearance