I have created a page with complex design and different background colors and I decided to add a button to let users switch between light and dark mode I’ve tried different solutions with JS, but with no success. The current workaround I use is adding two media in my CSS file. Basically, if my website appearance is set to Dark,