Change colour of product rating

Topic summary

A user wants to change the star rating color in the product grid to match the color displayed on the product page.

Proposed Solutions:

  • Entaice’s approach: Add custom CSS by navigating to Online Store > Themes > Edit code, then locate the CSS file (usually theme.scss.liquid or styles.css.liquid). Insert CSS targeting .product-grid .star-rating with the desired hex color code.

  • LizHoang’s approach: Use the theme’s Custom CSS section by going to Online Store > Theme > Customize > Product page > Product Information > Custom CSS. Add CSS targeting .rating-star:before with a linear gradient background using the desired color code.

Additional Notes:

  • One community member requested the preview link and theme name to provide more specific assistance.
  • Both solutions require replacing placeholder color codes with the actual hex color desired.
  • The discussion includes screenshots showing the current rating display, though specific visual details weren’t provided in text.
Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

i want to change the color on the star rating in the product grid to the color shown on the product page.

//Please when you post a requestion have the following so that fellow community members //can help you better:
//Preview Link: link that we can see your issue 
//Theme name: name of the theme e.g.: Down
//Can code: Yes / No / Kindof

By that can you share your preview link and theme name?

To change the color of the star rating in the product grid to match the product page color, you can add some custom CSS. Go to your Shopify admin, then navigate to ““Online Store”” > ““Themes.”” Click on ““Customize”” for your current theme.

Next, look for ““Theme settings”” or ““Edit code.”” If you see ““Edit code,”” click on it, and then find the appropriate CSS file, usually called theme.scss.liquid or styles.css.liquid.

Add this snippet at the bottom:

.product-grid .star-rating {
color: #yourColorCode; / Replace #yourColorCode with the desired hex color /
}

Make sure to replace #yourColorCode with the hex code of the color you want to use. Save the changes, and it should reflect on your product grid.

Hi @ads_18 , thanks for your question.

To change the color of the Star Rating on the product page, you can add the following code to your Custom CSS section. Please go to Online Store > Theme > Customize > Product page > Product Information > Custom CSS.

.rating-star:before {
content: “\2605\2605\2605\2605\2605”;
background: linear-gradient(
90deg,
#colorcode

var(–percent),
rgba(var(–color-foreground), 0.15) var(–percent)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

I hope that would be helpful.