Created
January 11, 2025 15:40
-
-
Save yanli0303/647ef60b1fe793e96ec941de7b8aa848 to your computer and use it in GitHub Desktop.
dark-mode-invert-color.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
@media (prefers-color-scheme: dark) { | |
pre.src > *, | |
pre.example > * { | |
filter: invert(20%) brightness(200%); | |
} | |
} | |
html:has(meta[name="color-scheme"][content="dark"]) pre.src > *, | |
html:has(meta[name="color-scheme"][content="dark"]) pre.example > * { | |
filter: invert(20%) brightness(200%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment