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

Enable Dark Mode using sphinx-rtd-dark-mode #14

Closed
wants to merge 2 commits into from

Conversation

cshilwant
Copy link
Member

This Sphinx extension adds a toggleable dark mode with a little icon in the bottom right hand corner which allows the user to switch between light or dark mode.

This Sphinx extension adds a toggleable dark mode with
a little icon in the bottom right hand corner which
allows the user to switch between light or dark mode.

Signed-off-by: Chirag Shilwant <[email protected]>
@cshilwant
Copy link
Member Author

Dark mode Preview

image

Light mode Preview

image

@StaticRocket
Copy link
Member

Is there any way to switch the logo out when in dark mode?

@cshilwant
Copy link
Member Author

cshilwant commented Oct 25, 2024

@StaticRocket By default, only text toggles between black and white.
Let me see if something can be done to the logo as well.

One option which is available is toggling between different logo in light & dark theme

@cshilwant
Copy link
Member Author

Apparently lvgl docs as well facing the same in dark mode due to black text in logo - https://docs.lvgl.io/master/

@StaticRocket
Copy link
Member

StaticRocket commented Oct 25, 2024

This will be an issue for any PNG images throughout the docs as well...

Nak until we are sure this doesn't negatively affect readability.

@cshilwant cshilwant closed this Oct 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants