# Unable to change foregroundColor for authButtons

**URL:** <https://community.auth0.com/t/unable-to-change-foregroundcolor-for-authbuttons/61820>\
**Category:** Get Help\
**Tags:** login, auth0, lock\
**Created:** [April 27, 2021, 10:05am UTC](https://community.auth0.com/t/unable-to-change-foregroundcolor-for-authbuttons/61820 "2021-04-27T10:05:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rizwan.ahmed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rizwan.ahmed/32/28726_2.png) [@rizwan.ahmed](https://community.auth0.com/u/rizwan.ahmed)\
**Post date:** [April 27, 2021, 10:05am UTC](https://community.auth0.com/t/unable-to-change-foregroundcolor-for-authbuttons/61820/1 "2021-04-27T10:05:25Z")

</div>

I’m using Lock for auth0 login and have customized the authButtons.  
authButtons: {  
“google-oauth2”: {  
primaryColor: “#dc4c39”,  
foregroundColor: “#ffffff”,  
icon: “xxxx”  
},  
“windowslive”: {  
displayName: ‘Office 365’,  
primaryColor: “#3A5996”,  
foregroundColor: “#000000”,  
icon: “xxxx”  
}  
},  
Icons & background colors update correctly, but foregroundColor remains unchanged. I tried overriding the class that was setting color, but it doesn’t seem to work either.  
 ![2021-04-27_14-58-23](https://global.discourse-cdn.com/auth0/original/3X/1/1/116adecf1c53c7d792a29577a1783c5749a1411d.png)  
As these are social connections, does something else need to be done?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 27, 2021, 2:00pm UTC](https://community.auth0.com/t/unable-to-change-foregroundcolor-for-authbuttons/61820/3 "2021-04-27T14:00:33Z")

</div>

Hi @rizwan.ahmed,

Unfortunately, the `authButtons` config is meant for customizing custom OAuth connections. The Lock library contains CSS rules for most established social connections such as Google:

```auto
.auth0-lock.auth0-lock .auth0-lock-social-button[data-provider^=google] .auth0-lock-social-button-text

```

Because the library uses `!important`, I don’t believe the text color can be overriden.

You may want to consider using a custom UI for complete control of style: [Customize Classic Universal Login Pages](https://auth0.com/docs/universal-login/classic-experience/customization-classic)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 12, 2021, 2:00pm UTC](https://community.auth0.com/t/unable-to-change-foregroundcolor-for-authbuttons/61820/4 "2021-05-12T14:00:49Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
