Skip to content

Add a dark mode #265

@choldgraf

Description

@choldgraf

Description

Many themes have at least two options for their CSS: light and dark mode. Dark mode is a common feature to help reduce strain on the eyes. We should offer something like this in the sphinx-book-theme, perhaps as a toggle.

Dark modes can help people parse some content more easily, so this is partially an accessibility issue.
Maybe others (@pradyunsg ?) have experience w/ this too.

Here's a blog post that describes how dark modes can work w/ minimal CSS changes: https://prudhvirampey.com/blog/colours/jekyll/css/fastpages/2020/10/30/hello-dark-mode.html

Another option would be to fix this in the pydata theme (in fact, @bollwyvl already has a shot at implementation). This would solve the problem for both themes! Here's a link to the issue: pydata/pydata-sphinx-theme#458

Actions

Here are the actions needed to do this:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions