Skip to content

Instantly share code, notes, and snippets.

@aaronice
Created August 1, 2018 00:58
Show Gist options
  • Save aaronice/ccbace7f04c7a11cd9a9b67f627dd763 to your computer and use it in GitHub Desktop.
Save aaronice/ccbace7f04c7a11cd9a9b67f627dd763 to your computer and use it in GitHub Desktop.
Custom CSS for Dark Mode Chrome Extension
/*
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