Dark mode
MacroPower opened this issue · comments
Jacob Colvin commented
Frederic Hemberger commented
Hi, that looks cool! The easiest way would be to extend content.js and add some additional CSS:
/* Those are the regular colors, you just have to replace
them with the ones from your dark version */
@media (prefers-color-scheme:dark) {
body { background-color: #fff }
.metric { color: #000 }
.value { color: #ff20ed }
.label-key { color: blue }
.label-value { color: green }
.comment { color: #6a737d }
}
If your browser/OS is set to dark mode, the alternative colors are used.
Jacob Colvin commented
Frederic Hemberger commented
The dark gray text on a light gray background has quite a low color contrast.
I'll also check the colors of the dark theme and might make some adjustments to improve readability.
Jacob Colvin commented
That's fair. I'll send a PR sometime today or tomorrow so you can easily make changes and see what looks best.