Here to voice my support for a dark-mode on the main site. I get blinded by it too.
I had mailed Professor Nemiroff about this and he encouraged me to post about it here.
This piece of code will do the job:
Code: Select all
</script>
<!-- dark mode color scheme start -->
<style type="text/css">
@media (prefers-color-scheme: dark)
{
body { background-color: #1E1E1E; color: #EFEFEF; }
a:link { color: #CFCFFF; }
a:visited { color: #FAAAFF; }
a:active { color: #FAFAFF; }
}
</style>
<!-- dark mode color scheme end -->
</head>
This simple addition at the top of the page would change colors without affecting viewers who are not using a system-wide dark mode.
As more and more operating systems are supporting a dark mode it'd be really neat if APOD was to recognize that preference.
Here to voice my support for a dark-mode on the main site. I get blinded by it too.
I had mailed Professor Nemiroff about this and he encouraged me to post about it here.
This piece of code will do the job:
[code]</script>
<!-- dark mode color scheme start -->
<style type="text/css">
@media (prefers-color-scheme: dark)
{
body { background-color: #1E1E1E; color: #EFEFEF; }
a:link { color: #CFCFFF; }
a:visited { color: #FAAAFF; }
a:active { color: #FAFAFF; }
}
</style>
<!-- dark mode color scheme end -->
</head>[/code]
This simple addition at the top of the page would change colors without affecting viewers who are not using a system-wide dark mode.
As more and more operating systems are supporting a dark mode it'd be really neat if APOD was to recognize that preference.