You must log in or register to comment.
But why the buttons? Just use
media (prefers-color-scheme: dark) {}
done. The js-solution doesn’t seem to auto-adapt for me.
Because, even though I use dark mode system-wide, I sometimes want to use websites in light mode. Until browsers implement a per-site toggle for the preferred color scheme, websites should offer one instead.