Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional dark theme #8977

Open
vitaly-zdanevich opened this issue Mar 9, 2021 · 6 comments
Open

Add optional dark theme #8977

vitaly-zdanevich opened this issue Mar 9, 2021 · 6 comments
Labels
html theme type:enhancement enhance or introduce a new feature

Comments

@vitaly-zdanevich
Copy link

Through https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

I can do it.

@vitaly-zdanevich vitaly-zdanevich added the type:enhancement enhance or introduce a new feature label Mar 9, 2021
@tk0miya
Copy link
Member

tk0miya commented Mar 10, 2021

What do you mean? You're saying about adding a new theme? Or modifying bundled themes to support dark mode?

@vitaly-zdanevich
Copy link
Author

Or modifying bundled themes to support dark mode?

This.

@pradyunsg
Copy link
Contributor

FWIW, there's no themes other than Furo that support dark mode for Sphinx currently.

@mgeier
Copy link
Contributor

mgeier commented Apr 29, 2021

there's no themes other than Furo that support dark mode for Sphinx currently.

I think that's true, but there are a few examples with custom CSS for supporting dark mode (I've collected some information here):

@12rambau
Copy link

12rambau commented Feb 16, 2022

I'm finalizing one for the pydata-sphinx-theme: pydata/pydata-sphinx-theme#540
inspired by what was done by @pradyunsg in the Furo theme

@choldgraf
Copy link
Contributor

This is now supported in the pydata theme!

chrome_MqxjpOb1oW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html theme type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

7 participants