+ 4
Please send Dark mode html code.
Dark mode
4 Answers
+ 7
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
+ 2
But how
+ 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