Please send Dark mode html code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Please send Dark mode html code.

Dark mode

1st Dec 2020, 5:57 PM
꧁༺ǟɖɨȶʏǟ_քʀօɢʀǟʍʍɛʀ༻꧂
꧁༺ǟɖɨȶʏǟ_քʀօɢʀǟʍʍɛʀ༻꧂ - avatar
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
1st Dec 2020, 6:08 PM
JTLZ
+ 2
But how
1st Dec 2020, 6:04 PM
꧁༺ǟɖɨȶʏǟ_քʀօɢʀǟʍʍɛʀ༻꧂
꧁༺ǟɖɨȶʏǟ_քʀօɢʀǟʍʍɛʀ༻꧂ - avatar
+ 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*/}
2nd Dec 2020, 12:05 PM
Coal
+ 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
2nd Dec 2020, 7:33 PM
Black Snyper
Black Snyper - avatar