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

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

Open
kgryte opened this issue Sep 17, 2023 · 2 comments
Open

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

kgryte opened this issue Sep 17, 2023 · 2 comments

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.

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

No branches or pull requests

3 participants