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

Use prefers-color-scheme to allow visitor to decide? #5

Closed
hugovk opened this issue Oct 7, 2020 · 3 comments
Closed

Use prefers-color-scheme to allow visitor to decide? #5

hugovk opened this issue Oct 7, 2020 · 3 comments

Comments

@hugovk
Copy link

hugovk commented Oct 7, 2020

Would it be possible to use the prefers-color-scheme media query to select either a dark or light theme?

The prefers-color-scheme media query allows the theme to detect whether the user has requested a dark or light mode, often via an operating system toggle or time-of-day trigger.

This would improve accessibility, readability and consistency, and allow the end user to decide on what is easiest for them to read, and when.

Thanks!

@jucacrispim
Copy link
Owner

Hi!

At the moment I have no time, but I'll take a look at it.

Thanx

@jucacrispim
Copy link
Owner

Hey, sorry for the long delay. I just uploaded sphinx-pdj-theme==0.3.0 to pypi and it now supports prefers-color-scheme

@hugovk
Copy link
Author

hugovk commented May 7, 2023

Great, thank you very much!

@hugovk hugovk closed this as completed May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants