adds "dark" and "very dark" themes, in addition to the existing "light" theme
adds the ability for the user to select the theme from a dropdown in the top right
automatically selects the theme based on user preference, using window.matchMedia("(prefers-color-scheme: dark)"), and checks if the chrome flag #enable-force-dark is set with this method
dark theme must set MathJax foreground content, specifically the fraction bar and square root line, to no brighter than #cdcdcd, or the chrome #enable-force-dark flag seems to invert it somewhat. (Previously I was using #fff and that was getting inverted to black)
window.matchMedia("(prefers-color-scheme: dark)")
, and checks if the chrome flag#enable-force-dark
is set with this method#cdcdcd
, or the chrome#enable-force-dark
flag seems to invert it somewhat. (Previously I was using#fff
and that was getting inverted to black)