It's sad that everyone has to run around implementing hard-coded "dark themes" 30 years after computers users could routinely set up system-wide color schemes themselves.
I understand. The elimination of the color-scheme editor from Windows and the ascendancy of devices that never had one has allowed designers to get away with defective (AKA incomplete) color overrides on Web pages and in software.
This is why prefers-color-scheme exists.