About this set
The ratings block from a product page: an average score, a breakdown of how many reviews gave each star rating, and the latest reviews, plus compact badges for use elsewhere. The rating summary shows 4.7 out of 5 from 1,284 reviews, a five-row bar chart with the percentage printed beside every bar, and a Write a review button, next to three review cards with stars, a headline, the review, the reviewer’s name, a Verified buyer badge and a date. The compact badges are a rating pill, a green score tile reading Excellent, and an inline rating with a Read 86 reviews link. The stars are a single element: a gradient filled to the rating and masked with a repeating star shape, so a 4.7 shows four full stars and most of the fifth without any icon font. Stars and bars are aria-hidden and every rating and percentage is also written as text, so nothing depends on seeing the graphics.
What’s included
- Average score, five-row breakdown and three review cards
- Partial stars from one masked gradient element
- Every rating and percentage also given as text
- Verified buyer badge and machine-readable review dates
- Three compact badges: pill, score tile, inline link
Accessibility
Star graphics and bars are aria-hidden; each rating is given as visually hidden text such as Rated 4.7 out of 5, and each bar row reads like 5 stars, 78% of reviews. Review dates use the time element. Links show a 3px amber focus outline, and all text meets 4.5:1.
Customise it
Change --st-on, --st-off and the size --s on .st, and the bar colour in .rs-bar span. Bootstrap uses .progress with --bs-progress-bar-bg; in Tailwind the same variables go in the style attribute and the stars utility is defined once with @utility.






