8 ms·
What is interesting that there is palette for dark mode present in loaded stylesheet reacting to OS or browser preference, but it is set to take effect only whi
by myfonj 2y ago
What is interesting that there is palette for dark mode present in loaded stylesheet reacting to OS or browser preference, but it is set to take effect only while HTML has a certain class. It can be added from devtools
document.documentElement.classList.add('skin-theme-clientpref-os')
It looks very similar to the invert one, but has way better colouring of the code blocks and box titles, from a quick glance.
The palette overrides for `prefers-color-scheme:dark` can be found in https://en.wikipedia.org/w/load.php?lang=en&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022 https://en.wikipedia.org/w/load.php?lang=en&modules=ext.uls....