Please send Dark mode html code. | Sololearn: Learn to code for FREE!

+4

Please send Dark mode html code.

Dark mode

12/1/2020 5:57:18 PM

Aditya_programmer

7 Answers

New Answer

+5

We are not doing anyone's homework. Show your attempt and then someone will help you.

+5

Hello, Here’s an example. But as Царь СОБАКА - Догго I said you need to give us your attempt. Please understand. *Do not copy the code* As I looked into your profile i see a lot of copied code but you gived credits to the authors. But what good can you do by publishing others code under your profile? Thank you and have fun with coding. https://code.sololearn.com/WiUJILYqZ6RB/?ref=app

+4

Hello Capitalist You are in the wrong place to advertise. Please dont spam the posts with same messages. Thank you for your understanding.

+2

+2

If I get your question correctly, you want to turn on/off darkmode as set by the system, right? If so, you gotta use those in your css and put your code inside of them respective to the theme styles: Lightmode: @media (prefers-color-scheme: light) {/*CSS styles for lightmode here*/} Darkmode: @media (prefers-color-scheme: dark) {/*CSS styles for darkmode here*/}

+1

setup your white paper like this function theme:{lite,dark,colored} input theme e: if e === lite than e.theme.lite is set to lite