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

Respect users' preference for light/dark mode #1320

Closed
cormullion opened this issue May 13, 2020 · 1 comment · Fixed by #1456
Closed

Respect users' preference for light/dark mode #1320

cormullion opened this issue May 13, 2020 · 1 comment · Fixed by #1456
Labels
Format: HTML Related to the default HTML output help wanted Type: Enhancement

Comments

@cormullion
Copy link
Contributor

Coming soon (or even already here) to a browser near you, a way of choosing to display light or dark mode:

https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme

Is this something that can be added to Documenter?

@mortenpi mortenpi added Format: HTML Related to the default HTML output Type: Enhancement help wanted labels May 13, 2020
@mortenpi
Copy link
Member

Documenter's theme switching is JS-based, but that shouldn't be a problem, since it seems that you can access that media feature via JS too. Would probably be a rather simple modification to themeswap.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: HTML Related to the default HTML output help wanted Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants