Created
August 3, 2020 15:09
-
-
Save technikhil314/2fb679265c73266a1e7d512cb3b8b8fb to your computer and use it in GitHub Desktop.
One line dark mode via css
This file contains hidden or 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
// Credit to : https://dev.to/akhilarjun/one-line-dark-mode-using-css-24li | |
html[theme='dark-mode'] { | |
filter: invert(1) hue-rotate(180deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment