All things Shopify and commerce
Dear Shopify expert,
↓ I would like to change the color of login page from blue to black.
↓ Click the (yellow) icon will reach this login page.
Could you please teach me how can I do?
Thank you so much for your assistance.
Solved! Go to the solution
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.ui-button.ui-button--primary:not(:disabled) {
background-color: #000 !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @Hellen302
Can you share store URL?
Dear Techlyser_web,
I am so glad to receive your reply.
This is my website >> https://hhailun.com/
Thank you ^^
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.ui-button.ui-button--primary:not(:disabled) {
background-color: #000 !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Dear Techlyser_web,
Thank you so much for your suggestion~
Dear 459james,
I am so glad to receive your reply.
This is my website >> https://hhailun.com/
Thank you ^^
Hello @Hellen302 ,
I understand you are looking to change the color login button (marked in a screenshot) from blue to black.
You can change the color with the mentioned CSS code.
Please add the code at the bottom of theme.liquid file before </body> tag and save.
<style>
button.ui-button.ui-button--primary.ui-button--full-width.ui-button--size-large.login-button.ui-button--has-hover-icon.captcha__submit {
background: black !important;
}
</style>
Output -: https://prnt.sc/L89QRgBiuUKP
I hope the code helps you.
Please share if you have any queries.
Thank you.
Dear Anshul_arora,
Thank you so much for your suggestion~
HI @Hellen302
You can follow these step to achieve your result
Go to online store->Edit code-> customer-public.css file and pest bello code
.login-card__content .ui-button:not(.ui-button--link):not(.ui-banner__dismissible-button):not(.passkey-login-button){
background-color:black !important;
}
Result:
Dear Brain,
Thank you so much for your suggestion~
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025