Another interesting approach, mixing the “toggle” and “completely new CSS”, but rather than having to try to override everything from the default CSS, the author cleverly adds a disabled: true to the “other” link element (check out the head to see what I mean.
https://nickdeny.github.io/darkmode-js/