I like to think of Javascript as a separate layer on a website. So, if you disable Javascript in your browser, you won't see any buttons that don't work without it.

A website just can't be pixel perfect.

A dark mode is a system feature. There is no reason to add a switch to the website.