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

Dark mode #163

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

escritorio-gustavo
Copy link

@escritorio-gustavo escritorio-gustavo commented Jan 31, 2024

Add dark mode to serde.rs inside @media (prefers-color-scheme: dark) query. This should prevent people from getting flashbanged when opening serde.rs in dark-mode

@escritorio-gustavo
Copy link
Author

escritorio-gustavo commented Jan 31, 2024

For context, this is how it looks in Firefox

image

@escritorio-gustavo
Copy link
Author

In chrome the scrollbars are still white
image

I don't know how the html is generated, but if <meta name="color-scheme" content="dark light"> is added to <head>, it will look like this
image

@ranger-ross
Copy link

Would love to see this get merged. 🙏🏼

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

Successfully merging this pull request may close these issues.

2 participants