I believe at this point dark mode should be treated as an accessibility feature and built right into browsers and css hints. Until that, just use DarkReader extension with suitable settings. It can change brightness, contrast, saturation and plays well with syntax coloring etc. Screws up only a few sites where you can turn it off on per-site basis. No in-site dark mode does that, and dark modes are often even more toxic than bright modes.