Skip to content

Support automatic light/dark mode theme based on OS #56

New issue

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

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

Already on GitHub? # to your account

Open
kgryte opened this issue Sep 17, 2023 · 2 comments · May be fixed by #72
Open

Support automatic light/dark mode theme based on OS #56

kgryte opened this issue Sep 17, 2023 · 2 comments · May be fixed by #72

Comments

@kgryte
Copy link
Member

kgryte commented Sep 17, 2023

Currently, one must explicitly toggle light/dark mode in the API docs. Would be nice to have an option where light/dark mode can be automatically toggled based on the host system setting.

This should be possible. E.g., GitHub supports this for their site.

@krishnaagrawal7508
Copy link

Does it have to be automatic? or there could be a toggle button to switch between the two modes as per their preferences?

@kgryte
Copy link
Member Author

kgryte commented Mar 21, 2024

@krishnaagrawal7508 We already support such a setting. This request is about supporting the use case where users configure their OS to, e.g., toggle their system theme based on time of day. Right now, users have to manually toggle the theme. It would be nice to have an "auto" setting which simply queries the host setting and updates the site theme accordingly.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants