Change dark theme implementation to use CSS custom properties
Currently the CSS of the site uses a pattern
@media dark {x {color: dark}}
x {color: bright}
but it could be refactored to be:
x {color: var(--some-color-name)}
which would make it easier to define color schemes, not only via media query, but also via class attributes. This would make it possible to implement theme switcher for users who can't or don't want to change OS theme:
html.dark {
--some-color-name: dark;
}
Edited by Kornel