Use !important to override theme defaults when needed.
To remove the white border around the button, add: box-shadow: none !important under the same selector.
Hover effect was preserved by the OP after adjusting their CSS.
Context/terms:
Dawn is Shopify’s default theme. Section-specific IDs (long numbers in the selector) target only that section. .button.button–primary refers to primary buttons.
Current status:
OP’s issue resolved.
Ongoing concerns from others: similar CSS not working for their stores; desire for a no-code way to change button colors; confusion over where to add CSS (base.css vs theme.css) and missing files; default “Image Banner” buttons not responding to custom CSS; theme color settings (e.g., Accent 2) affecting results.
Open items:
A general, non-code solution and consistent file guidance for different Dawn versions remain unresolved.
Thanks! This worked to change the color to black and white, and I was able to adjust the code to get the hover effect, but now it has a white border around the button. I can’t seem to get rid of it or change it to black. Any help with that?
I’ve tried the above code and for some reason it isn’t working. I’m after the button colour to be #d71f2c and the text to be white, I’m not sure why but my buttons are still staying the original theme colour.
I’ve managed to update the solid button label to be the red I’m after but it has not changed any of the button colours. It only shows in that colour once I click Accent 2, which has a white background - even then the colour is muted and of course the rest of the text is that red as well. I have Secondary colours text set to black.
@Kinjaldavra I added this code to erase the border of the button in theme-editor.jss but it doesnt seem to work. I also have Dawn but I don’t see theme.css
I’m having same issues with absolutely no control over buttons on Dawn landing page, “Image Banner” section. Your solutions have had no effect on the buttons. These buttons are defaults. I did not place them in the theme. Why are such basic design tasks so difficult, and solutions so arcane and obscure?