• We hope all of you have a great holiday season and an incredible New Year. Thanks so much for being part of the Space community!

Darkmode for space.com

Status
Not open for further replies.
Dec 7, 2021
2
2
15
Space is dark! I don't understand why this site doesn't support a 'dark mode' option.

CSS:
:root {
   --dark-mode-back: rgba(70, 70, 70, 1.0);
   --dark-mode-fore: rgba(255, 255, 255, 1.0);
}
@media (prefers-color-scheme: dark), (prefers-dark-interface) {
 body, some_other_element, like_tables, nav_bars, etc, etc {
   background: var(--dark-mode-back);
   color: var(--dark-mode-fore);
 }
Just gotta fill in those elements! Please! This site is fun to peruse and see all those beautiful images, but not with that glaring white background :(
 
Dec 7, 2021
2
2
15
Thanks! That certainly does the trick for these forums, thanks for the tip (just enabled it). Unfortunately space.com is unaffected.
 
Status
Not open for further replies.

ASK THE COMMUNITY

TRENDING THREADS