Tweak the Web

Library · Accessibility

Any site: dark mode (invert colors)

Dark theme for any page by inverting colors (images and video keep their colors).

Every siteFrom the Tweak the Web library

What it changes

It applies as the page loads and keeps working as the page updates. Turn it off any time and the page returns to normal.

Technical details
{
  "matches": [
    "<all_urls>"
  ],
  "actions": [
    {
      "type": "css",
      "css": "html {filter:invert(.92) hue-rotate(180deg)!important;background:#fff!important;} img, picture, video, canvas, svg image, [style*=\"background-image\"] {filter:invert(1) hue-rotate(180deg)!important;}"
    }
  ]
}
More rules

Using Claude, ChatGPT or another assistant? Ask it: “Add the Any site: dark mode (invert colors) rule from Tweak the Web.”