Saving dark mode state in local storage

I’ve implemented dark mark using this tutorial

is there a way of using local storage to save the user choice, it’s not something I’ve done before

tia

I would probably use the @capacitor/preferences plugin.

In Capacitor 3, it was called @capacitor/storage. Renamed in v4.

1 Like

thank you, I’ll take a look