How can I alter the color of the 'Add to Cart' button in store design?

Topic summary

A user seeks guidance on changing the color of the ‘Add to Cart’ button in their store theme.

Two solutions provided:

  1. Direct CSS modification: Navigate to Online Store → Theme → Edit code → Assets → theme.scss, then add CSS targeting .btn--add-to-cart with desired background, border, and color properties.

  2. Inspect and customize approach:

    • Use browser developer tools to identify the button’s CSS class/selector
    • Locate the theme’s CSS file (theme.css, theme.scss, base.css, etc.) in the code editor
    • Add custom CSS rules targeting the identified selector (example provided changes checkout button color to red)
    • Screenshots demonstrate the inspection process and expected result

Status: Multiple working solutions offered; implementation depends on the specific theme being used.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

please where can i change the color of add to cart button

1 Like

Hello there,

  1. Go to Online Store->Theme->Edit code
  2. Asset->theme.scss->paste bellow code in bottom of file
.btn--add-to-cart {
    background: gold;
    border: none;
    color: white;
}

Hi @feloni01

We’re not sure what theme you are using. But we’d love to suggest you this solution:

  1. Search for the class of the checkout button and copy the selector of that element

  1. Go to edit code, find the css file (base.css, theme.css, theme.scss, …) and add the following css code

#checkout {
  color: red;
}

Result:

Hope this can help you.