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

feat: Add auto dark mode theme according to OS setting #120

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

dcruz
Copy link
Contributor

@dcruz dcruz commented Jul 19, 2021

Add a dark mode theme that automatically triggers if the users' OS triggers the dark mode on media query prefers-color-scheme

@@ -31,7 +31,7 @@
}

#carbonads a {
color: inherit;
color: var(--text-color-light);
text-decoration: none;
}
#carbonads a:hover {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey 👋

This one needs to be changed as well, otherwise on hover the font will be invisible.

Used default page color which made text white on dark mode
@dcruz
Copy link
Contributor Author

dcruz commented Jul 20, 2021

@rogeriopvl just updated

@rogeriopvl
Copy link
Member

🎉 Thanks!

@rogeriopvl rogeriopvl merged commit 22a6a2a into httpcats:master Jul 20, 2021
@rogeriopvl
Copy link
Member

@all-contributors add @dcruz for code, design and a11y

Copy link
Contributor

@rogeriopvl

I've put up a pull request to add @dcruz! 🎉

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