Created
August 1, 2018 00:58
-
-
Save aaronice/ccbace7f04c7a11cd9a9b67f627dd763 to your computer and use it in GitHub Desktop.
Custom CSS for Dark Mode Chrome Extension
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
/* | |
Parts of this code is inspired from the following: | |
[1] https://userstyles.org/styles/105000/smart-dark | |
*/ | |
html { | |
background-color: #222 !important; | |
} | |
body { | |
filter: contrast(90%) invert(90%) hue-rotate(180deg) !important; | |
-ms-filter: invert(100%); | |
-webkit-filter: contrast(90%) invert(90%) hue-rotate(180deg) !important; | |
text-rendering: optimizeSpeed; | |
image-rendering: optimizeSpeed; | |
-webkit-font-smoothing: antialiased; | |
-webkit-image-rendering: optimizeSpeed; | |
} | |
input, textarea, select { | |
color: purple; | |
} | |
img, video, iframe, canvas, svg, embed[type='application/x-shockwave-flash'], object[type='application/x-shockwave-flash'], *[style*='url('] { | |
filter: invert(100%) hue-rotate(-180deg) !important; | |
-ms-filter: invert(100%) !important; | |
-webkit-filter: invert(100%) hue-rotate(-180deg) !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment