CSS Review Card

A customer review card with a star rating, verified-buyer badge, short title, review text and date.

  • review
  • rating
  • stars
  • verified
  • customer
  • social proof
HTML
<article class="review-card">
  <header>
    <p class="review-card-stars" role="img" aria-label="5 out of 5 stars">★★★★★</p>
    <span class="review-card-verified">Verified buyer</span>
  </header>
  <h3>Exactly what I needed</h3>
  <p>Setup took two minutes and it has run without a hiccup since. Support answered within the hour.</p>
  <footer><strong>Priya S.</strong> · Sep 2026</footer>
</article>
CSS
.review-card {
  width: 260px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-family: system-ui, sans-serif;
}

.review-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-card-stars {
  margin: 0;
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 2px;
}

.review-card-verified {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
}

.review-card-verified::before {
  content: "✓ ";
}

.review-card h3 {
  margin: 10px 0 4px;
  font-size: 15px;
}

.review-card > p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.review-card footer {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.review-card footer strong {
  color: #0f172a;
}

About this CSS Review Card

This CSS Review Card is 57 lines of pure CSS (0.8 KB) with no JavaScript and no dependencies. It uses Flexbox. It works in current versions of Chrome, Edge, Safari and Firefox. It works in any stack: plain HTML, React, Vue, Svelte, Astro, WordPress or Webflow.

CSS features used

Customize it

The colors in this snippet. Search and replace them to match your brand:

  • #e2e8f0
  • #fff
  • #0f172a
  • #f59e0b
  • #dcfce7
  • #166534
  • #475569
  • #94a3b8

How to use this review card

  1. Copy the HTML and paste it where you want the element to appear.
  2. Copy the CSS into your stylesheet, or inside a <style> tag.
  3. Keep the .review-card class name, or rename it in both places. Then tweak colors, sizes and timing to match your design.
  4. Using React or Next.js? Change class to className in the HTML. The CSS works as is, including in Tailwind projects (put it in your global stylesheet).

Building with an AI tool?

“Copy for AI” copies a short prompt for Cursor, Claude Code, Lovable, Bolt or v0. Your AI tool opens the Markdown version of this snippet and reads the HTML, CSS and setup notes there. If your tool can't open links, with the code instead. More ways to use copy CSS with AI.

Feedback