Note: this PR does not add a button to switch themes, but relies on the localStorage flag that the dartdoc pages may set when clicking on the dark/light theme button. It is possible that we may introduce a similar button, or we may rely only on the CSS media selectors that are coming from the OS/browser preferences, maybe even both. But for the time being and to explore what kind of SCSS refactoring we may need, this gives an appropriate style isolation and also an easy trigger mechanism.
4416
localStorage
flag that thedartdoc
pages may set when clicking on the dark/light theme button. It is possible that we may introduce a similar button, or we may rely only on the CSS media selectors that are coming from the OS/browser preferences, maybe even both. But for the time being and to explore what kind of SCSS refactoring we may need, this gives an appropriate style isolation and also an easy trigger mechanism.