-
For some time now dark mode looks broken for my website. Could someone check what is happening? Link for the githubpages with the generated website: Link for the repo The quarto generated website is in the docs folder while the inputs to generate this website is in _docs folder. quarto_yml
Image of the dark mode generated: Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You currently have the following in your format:
html:
theme:
dark: litera
light: litera which means that you're using Litera, a light Bootswatch theme, in both dark and light mode. So when you switch between light and dark mode on the website, the overall theme doesn't change. What does change is the highlight style, because by default Quarto uses syntax highlighting styles that are designed to work with light and dark themes. The default dark syntax highlighting doesn't look great with a light theme like |
Beta Was this translation helpful? Give feedback.
Sort of. Litera in dark mode in your screenshot is based a new feature in the latest releases of Bootstrap that does client-side color modes, making dark mode variants of light-mode themes easy.
Quarto doesn't yet support this feature, but it likely will in the future.