How to implement a Theme Switcher in Ionic 5 | React

i am currently struggeling with creating a kind of theme switcher in Ionic 5 | React?! Also i want to keep the darkmode in combination with the theme alive…

Any idea? At first I was thinking about changing the team in the App.tsx as it is done with the darkmode but then the darkmode is not available at theme switcher?!

Any Idea?

Thanks! Cheers Carsten

There’s really nothing specific to React here, you can basically follow this example in the Ionic docs.

1 Like