I installed this component on my site and made the settings, but it doesn’t work when I press the button. I can’t find a console error in dev tools, why isn’t it working?
So you chose a dark color scheme as your “light” color scheme. Then the toggle toggles between dark and dark. Have you tried to choose a light color scheme in the dropdown?
It doesn’t work that way. You forgot that setting of forum admin side has default for dark mode too. When themes default is light, and when an user has dark as a dark option in settings, the toggle has something to toggle. Otherwise it tries change from dark (if that is telled as light) to dark.
And when you have light and dark right then automatic knows how to follow settings of a device.