About this set
Small ratings for places where space is short. Four sizes shows the same 4.6 rating with 1,208 reviews at 12, 16, 20 and 28 pixels, with the number and count scaling alongside the stars. Product cards puts a 14 pixel rating, a review count and a price under each of three shop items, and the whole card is clickable through its title link; on phones the cards switch to a row with the image on the left. Single-star badges in a list is a restaurant list where each place gets one star and its score in a pill tinted by score band, plus a review count. Inline in a sentence shows stars beside the words Rated 4.3 out of 5 by 87 customers and a Read the reviews link. Every rating is one masked element filled to its –r value, so changing the score is one number in the markup, and the score is always text next to it.
What’s included
- Four ready sizes from 12 to 28 pixels
- Product cards with a stretched title link
- Single-star score badges tinted by band
- Inline rating for product pages and search results
- No JavaScript
Accessibility
Every rating reads as Rated 4.6 out of 5 and 1,208 reviews, with the stars aria-hidden. Score badges carry the number as text, so the tint is never the only signal. Card and list links show a 3px focus outline, and the card hover lift stops under prefers-reduced-motion.
Customise it
Set --cr-on, --cr-off and --cr-focus on .cr for colours and --s on a star element for its size. The badge tints are --b-bg and --b-ink on .cr-badge. Bootstrap builds on .list-group, .card and .badge with the same variables; in Tailwind edit the cr colours in @theme.






