Created
February 27, 2023 09:29
-
-
Save tobaco/8b505a953ff5d53a569becbe36bce179 to your computer and use it in GitHub Desktop.
Simple darkmode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
@media (prefers-color-scheme: dark) { | |
body { | |
filter: invert(100%) hue-rotate(.5turn); | |
background-color: rgb(199, 206, 204) !important; | |
} | |
img:not(.logo__img), | |
.emoji, | |
iframe{ | |
filter: invert(100%) hue-rotate(.5turn) !important; | |
} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment