+ 1

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

pls help broh.

21st Jul 2019, 5:23 AM
Daniel Fikri
Daniel Fikri - avatar
5 Answers
+ 4
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. 😀
21st Jul 2019, 7:43 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Do you mean the SoloLearn application or your code editor?
21st Jul 2019, 6:52 AM
Anna/Аня
Anna/Аня - avatar
+ 1
Something like this, and you can stylish, add more advanced stuffs, etc... https://code.sololearn.com/WgTh17W1LN93/?ref=app
21st Jul 2019, 7:55 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
https://code.sololearn.com/W66D9Fd5ms0N/?ref=app
24th Feb 2020, 7:44 AM
CalviŐ˛
CalviŐ˛ - avatar
0
The Website appearance
21st Jul 2019, 7:29 AM
Daniel Fikri
Daniel Fikri - avatar