Is your feature request related to a problem? Please describe.
Yes, since the user's preferred color mode is stored in localStorage, it can be modified manually with a theme which does not exist, rather than falling back to one which does.
Describe the solution you'd like
I believe it would be helpful if there could be an array whitelist for allowed themes/color modes in the module's configuration, and when the parsed preference is not any of them, the library can reset the user's preference to the configured fallback.
Is your feature request related to a problem? Please describe.
Yes, since the user's preferred color mode is stored in localStorage, it can be modified manually with a theme which does not exist, rather than falling back to one which does.
Describe the solution you'd like
I believe it would be helpful if there could be an array whitelist for allowed themes/color modes in the module's configuration, and when the parsed preference is not any of them, the library can reset the user's preference to the configured fallback.