Skip to content

Instantly share code, notes, and snippets.

@hkitago
Last active Oct 28, 2021
Embed
What would you like to do?
add dark mode quickly.
@media (prefers-color-scheme: dark) {
body {
filter: invert(1) hue-rotate(180deg);
background-color:#000;
}
img {
filter: invert(1) hue-rotate(180deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment