Change the "add to cart" border color in a collection

Hello, I would like to change this dark green border for “add to cart” on all my collection pages to #48ef13, and cannot figure out how to.

link to page https://www.stukellymotorsports.com/collections/350z-g35

Hi @StuKellyMotorsp ,

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css file Add the provided code at the end of the file.

.card-wrapper .button--secondary:after {
    --border-opacity: var(--buttons-border-opacity);
    box-shadow: 0 0 0 5px #48ef13 !important;
}

Hi @StuKellyMotorsp

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.button:not([disabled]):hover::after,
.shopify-challenge__button:hover::after,
.customer button:hover::after,
.shopify-payment-button__button--unbranded:hover::after {
    --border-offset: 1.3px;
    box-shadow: 
        0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) #48ef13, 
        0 0 0 calc(var(--buttons-border-width) + 1px) #48ef13 !important;
}

.button:after, 
.shopify-challenge__button:after, 
.customer button:after, 
.shopify-payment-button__button--unbranded:after {
    box-shadow: 
        0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) #48ef13, 
        0 0 0 calc(var(--buttons-border-width) + 1px) #48ef13 !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi @StuKellyMotorsp ,

You can follow the steps here:

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

Here is the code for step 3:

.card__content > .quick-add button {
    border: 3px solid #48EF13 !important;
}

Here is the result:

Please let me know if it works!

Best,

Daisy

Thank you Daisy, this worked perfectly and was a simple solution!