So say I have two maps in SCSS,
$dark-theme: (
primary: #BB86FC,
primary-varient: #3700B3,
secondary: #03DAC6,
background: #2c2e43,
error: #CF6679,
);
$light-theme: (
primary: #6200EE,
primary-varient: #3700B3,
secondary: #03DAC6,
secondary-varient: #018786,
background: #FFFFFF,
error: #B00020,
);
If I were to set a background colour based on the background value of the map, how could I switch between the two theme maps using a switch on the webpage? So when I switch between them the background colour changes to be the value from the other map.