Issue: Users want to customize the color of sale/discounted prices in the Craft theme to match their store’s accent colors.
Initial Solution Provided:
Navigate to Online Store → Theme → Edit code
Open Assets → component-price.css
Add CSS targeting .price-item--on-sale .price-item--regular with desired color code
Resolution for Original Poster:
The initial code targeted the strikethrough “compare at” price instead of the discounted price. Solution: Change .price-item--regular to .price-item--sale in the CSS code to color the actual sale price.
Ongoing Issue:
Another user (NiceyGin) reports the CSS solution doesn’t work for their case. They need to change both the sale badge color and discounted price from red to #b09035, with a screenshot attached showing their specific situation.
Status: Partially resolved - original question answered, but similar issue remains unresolved for another user.
Summarized with AI on November 4.
AI used: claude-sonnet-4-5-20250929.
Hello! I’m trying to find out how to change the color of “compare at prices”, on both the collections page and on individual product pages. Preferably to my current Accent 2 color #F5908FT so they match the sale badges.
I actually wanted to change the color of the “new” price rather than the regular price (that was my fault on wording), BUT I figured it out by changing “.price-item–regular” to “.price-item–sale” so it’s all good!
Hello guys, i have pretty much the same problem but it doesn’t work for me changing the code and I don’t know how to solve this. I have to change the color of the badge and the discounted price from RED to this one #b09035 (see attached). please help me.