Toggle dark and light theme

I know ionic2 supports theming feature but how can I make the same in ionic-v1.
All I need to do is just use a toogle bar to switch between dark and light themes(change backgrounds dark and light)
Any codepen ??

Dynamic Theming Your Ionic App,
try this https://devdactic.com/dynamic-theming-ionic/

Make two css files and add

in index.html file.

bind the name of the style sheet to filename variable with rootScope in run method in app.js file