How to change fill color of cart and account icons on header? Dawn Theme

Topic summary

A user wants to change the cart and account icons in their Shopify Dawn theme header to a specific yellow color (#e5da01) while keeping the black outline.

Initial Solution Attempted:

  • Add CSS code to base.css file targeting .header__icon.cart-icon and .header__icon classes
  • The code initially didn’t work due to placement issues

Problem Encountered:

  • When properly implemented, the CSS changed the icon outline to yellow instead of the fill
  • User specifically needs: black outline + yellow fill

Resolution:

  • Support confirmed this specific customization (separate outline and fill colors) is not possible with the current icon design
  • The issue remains unresolved as the desired effect cannot be achieved with these particular icons
Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hello,

I’d like the cart and account icons fill in my header to be a specific hex color (#e5da01) and would still like to keep the outline black.

How can I do that?

Thank you!

Hello @carodeal1 ,

Please share the store URL.

Thanks

Hi Guleria,

Store is http://artfultransfers.com

Password: yeopow

Thank you!

Follow these steps:

  1. Go to Online Store → Theme → Edit code

  2. Open your base.css file and paste the following code at the bottom:

.header__icon, .header__icon--cart .icon { 
    color: #e5da01;
}

Thanks

Hi Guleria,

Thank you for your response.

I added the code to the bottom of my base.css file but it doesn’t work.

Anything else I can do?

Thank you!

Seems you break the existing css.
Revert the changes and add css in the bottom but after this closing tag }

It works now, nbut it’s making the outline of the icons yellow.

I want the outline to be black and the fill to be yellow.

How can I do that?

Thank you so much

Sorry not possible with these icons

ok thank you