If that's the case then I think you should take your Mac out of dark mode. If we have to put it in every app and webpage in a non-standard way, then that suggests that dark mode itself is broken.
That it doesn't change the example on the web page seems like a giant oversight, or a rendering error on Safari.
That it doesn't change the example on the web page seems like a giant oversight, or a rendering error on Safari.