How are you styling? Tailwind?
Discussion
I think shadcn ui which uses tailwind
Use custom classes to define your colors and change them by changing the data-theme in the head of the html suing javascript to just swap the theme depending on the button clicked.
config: 
input: 
javascript: 
style with the custom classes: 
Hope this helps!