Skip to content

Instantly share code, notes, and snippets.

@villeodell
Created April 26, 2020 20:25
Show Gist options
  • Save villeodell/cb7d31c7151b461310d24ab5f6308bb5 to your computer and use it in GitHub Desktop.
Save villeodell/cb7d31c7151b461310d24ab5f6308bb5 to your computer and use it in GitHub Desktop.
Firefox new tab light/dark mode
/* 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