Showing results for 
Search instead for 
Did you mean: 

Magento Luma - Change Primary Button Color

Magento Luma - Change Primary Button Color



I am trying to change the default primary button color generated from Magento Luma (#1979c3), I have created a child theme and tried using our CSS file to change it.
.action.primary {
background: black;

This is not working, any suggestions?
We are running Magento 2.4.6p3 Open Source


Re: Magento Luma - Change Primary Button Color


Hello @sophiethomb8ce 


After modifying the LESS file and adding CSS, it's important to remember to run the Magento deploy command to ensure that the changes are deployed successfully.

php bin/magento setup:static-content:deploy

Hope it helps !

If you find our reply helpful, please give us kudos.

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.


WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789