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

docs: support dark color-scheme #769

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

Tachi107
Copy link
Contributor

@Tachi107 Tachi107 commented Jan 7, 2023

This patch updates the html documentation to add the color-scheme meta element, signalling light and dark color scheme support, and updating the inline CSS styles to override some colors when dark mode is active, to make sure that the document is always readable.

I've also cleaned up a bit the CSS styles, but without functional changes.

I've only updated the latest standard revision (r7), but please let me know if I should revert changes to that file.

Here's how it looks on my system; the dark scheme is provided by the browser:

image

image

PS: to be clear, the page is rendered in dark mode only if the user has set dark mode in the browser/system settings

This patch updates the html documentation to add the color-scheme meta
element, signaling ligth and dark color scheme support, and updating the
inline CSS styles to override some colors when dark mode is active, to
make sure that the document is always readable.

I've also cleaned up a bit the CSS styles, but without functional
changes.
@basilgello
Copy link
Contributor

Thanks for the improvement @Tachi107 ! Helps during night debugging sessions :)

@HowardHinnant LGTM

@HowardHinnant HowardHinnant merged commit 8eeae97 into HowardHinnant:gh-pages Sep 28, 2024
@Tachi107 Tachi107 deleted the documentation-dark branch September 29, 2024 08:15
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.

3 participants