This wil jinx it somewhere but for whatever reason @media (prefers-color-scheme: dark) { body { filter: invert(100%); } img { filter: invert(100%); } body { background-color: #000!important; } } currently is working in both Safari and Firefox.