Ionic 4 non-theme button color

#1

Hi,

I want to add a few ion-buttons (like a twitter button) with colors that are not my primary, secondary, etc. brand colors (but twitters brand color for example). Since they are not one of the color attribute choices and I can’t overwrite the css of the shadow dom, how would i do that?

#2

does that may work?

 <ion-button class="your-style-class"....

 ion-button.your-style-class.button {
     color: yellow;
     --background: red;
 }
#3

Works like a charm! Thank you!

#4

Awesome, cool to hear that :slight_smile: