# How to change the default color of toggle in Ionic?

**URL:** <https://forum.ionicframework.com/t/how-to-change-the-default-color-of-toggle-in-ionic/100377>\
**Category:** ionic-v3\
**Created:** [August 1, 2017, 10:44am UTC](https://forum.ionicframework.com/t/how-to-change-the-default-color-of-toggle-in-ionic/100377 "2017-08-01T10:44:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![luukschoen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/luukschoen/32/98585_2.png) [@luukschoen](https://forum.ionicframework.com/u/luukschoen)\
**Post date:** [August 1, 2017, 12:47pm UTC](https://forum.ionicframework.com/t/how-to-change-the-default-color-of-toggle-in-ionic/100377/2 "2017-08-01T12:47:54Z")

</div>

Please don’t ask the same question on different posts/new threads. I’ve given the answer for you already over here:

> [@How to change default color for radio button using ionic?](https://forum.ionicframework.com/t/how-to-change-default-color-for-radio-button-using-ionic/73368/4):
>
> Sure: \<ion-item\> \<ion-label\>Go\</ion-label\> \<ion-radio [color]="myColor" value="go" (ionSelect)="toggleColor()"\>\</ion-radio\> \</ion-item\> then declare myColor: myColor: string = 'secondary'; and the function: toggleColor() { this.myColor = 'danger'; }

---

_[View the full topic](https://forum.ionicframework.com/t/how-to-change-the-default-color-of-toggle-in-ionic/100377)._
