In Ionic v3 there is import of the theme in the file
and can be replaced by the dark theme to use the dark theme instead of the default light theme.
Works great. But how to toggle between both themes at runtime? And how to know what theme is currently active to style custom components.
I have already searched the internet, including here. But I found nothing helpful. So I think this is not a duplicate. Maybe I missed something. But there should be a way to import the default AND dark theme and enable toggle between at runtime.
I could write my own themes by css “hacking”. But I prefer to use the Ionic preset official way.