Removing product image border in Dawn theme

Topic summary

Users are trying to remove gray borders appearing around product images in Shopify’s Dawn theme.

Initial Solutions Attempted:

  • Adding CSS code to component-card.css file to set border to none
  • Modifying main-product-section.css to remove color-foreground styling

Issues with CSS Approaches:

  • Some solutions removed borders from other elements like dropdown menus
  • Results were inconsistent across different Dawn theme versions

Working Solution (No Code Required):
Multiple users confirmed success by navigating through the theme customizer:

  1. Go to Customize Theme → Theme Settings
  2. Find Content containers → Media → Border
  3. Change Border Thickness from 1px to 0px

This built-in theme setting approach works reliably across Dawn 2.0+ versions without requiring CSS modifications or affecting other design elements. Confirmed effective as of May 2023.

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

Removing product image border in Dawn theme

As you can see that the image have a side border with gray accent, how to remove it?

Thanks

Hi @vapormercury

Would you mind sharing your store’s URL so we can provide the code for that? Thanks!

welcome to shopify community.

please share your store URL and if your store is password protected then please give password too.

Thank you .

Hi its

http://ginseng-strip.myshopify.com

PASS: REMOVINGBORDER

Hi @vapormercury

Have you got an app that disables right-clicking? If yes this needs to be turned off so we can access the code and check this.

Cheers!

Yes, I’ve disabled it.

Thank you

Nevermind found it on the theme page. thanks!

Can you please advise on where you found it? I’ve been able to turn off image borders on colleciton pages but can’t seem to find it on the product page.

Same, just seen it on product page. can anyone help us out?

Thanks

Hi there,

Can you please share how you did this?

Would love some help here please!

Hi @vapormercury & @iconicmoments

Add the following code to your component-card.css file:

.card.card--product.card--outline {
    border: none;
}

Should that help answer your query, we always appreciate liking & marking an as answer to let the community find quality solutions faster. Thanks!

Howdy - I cannot seem to get this code to work I’m afraid! The border still remains - can you please provide any further guidance?

@aiteallco
Kindly share your store URL and store password so,
I can solve it perfectly.
Thank You.

Thanks - aiteall.com.au and ahtroh

@aiteallco
Can you give me a screenshot so,
I can understand which image border you want to remove.
Thank You.

Hi - any luck with a potential solution on this front?

That code seems to be accessing the theme colors, which I found a way to cancel it out.

You can probably call that product image a different way but this still worked for me on dawn. I added it to the section-main-product.css

.product .grid__item {
--color-foreground: none!important;
}
4 Likes

Any other way to do it?

@BaileyPaserk solution actually works, yet it also eliminates the border of my drop down menues.

1 Like

Go to Customize Theme → Theme Settings → Media → Border from 1px to 0px Thickness

10 Likes

@BaileyPaserk this solution works perfectly! thanks a lot :slightly_smiling_face: !