Change visual theme on button

Hello, i'm creating a dashboard that i want to have 2 visual theme: a dark and white. Is there a way to have a button for change the visual theme on the same file?

Login