Created
April 26, 2020 20:25
-
-
Save villeodell/cb7d31c7151b461310d24ab5f6308bb5 to your computer and use it in GitHub Desktop.
Firefox new tab light/dark mode
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
/* create this as /chrome/userContent.css under Firefox Profile directory */ | |
/* Enable Light/Dark Mode New Tab Background Color */ | |
@media (prefers-color-scheme: dark) { | |
@-moz-document url("about:newtab"), url("about:home") { | |
body { background-color: #222 !important;} | |
} | |
} | |
@media (prefers-color-scheme: light) { | |
@-moz-document url("about:newtab"), url("about:home") { | |
body { background-color: #ddd !important;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment