How can I change whole site color with toggle a button

@danmaxwix If you moved the element from the header to the page itself, you also need to move the code from masterPage.js to the page code.