csev / cc4e

C Programming for Everybody
https://www.cc4e.com/
Other
260 stars 90 forks source link

Darkmode on reading the textbook(the md file) #51

Closed Gyangle closed 1 year ago

Gyangle commented 1 year ago

Hey Dr. Chuck,

I'm from your SI311. In my computer, I turn on the darkmode on everything due to my eyes' condition. However, it doesn't quite work when I'm reading the C Language textbook from my browser. I have tried using the "Read Mode" and different plug-ins, but it doesn't load the comment section of the book. I think this is because the source code indicates that you importing content from another md file.

I have to manually change the html styles in my console, which works pretty well:

document.querySelector("body").style.color = "#ffffff" 
document.querySelector("body").style.backgroundColor = "#192734" 

Do you have any recommendation on enabling darkmode? Or this could be a potential feature to implement?

Before: image After: Screenshot 2023-01-11 at 3 19 24 PM

pravintargaryen commented 1 year ago

The current Dark theme mode color is #000000. I will be changing this to #192734