### Bug description

using the element below in _quarto.yml

```
format:
  html:
    theme: 
      dark: darkly
      light: flatly
```
the page shows in dark mode per default, but if toggled to light mode, the site goes back to dark mode when navigating to  a different page.
(This does not happen if light mode is the default)

I tested  safari and firefox on OSX

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2022-09-01T10:40:22Z
jcolomb
bug
v1.2
closed
website: dark mode as default: toggle to light mode not kept between pages
https://github.com/quarto-dev/quarto-cli/issues/2248