1. Install the "Ionic Elements" plugin by bubble.
2. Make sure the toggle's Component Color is set to "Balanced".
3. Change the styling in the plugin tab, in the settings of this plugin.
If you're stuck, check out the demo page:
https://andysplugins.bubbleapps.io/version-test/ionic_toggle_styling