Skip to content

Testimonial Card

A copy-paste quotes & testimonials component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Quotes & TestimonialsHTMLCSSany framework

The onboarding flow felt effortless. Our team shipped a new product in half the time.

Maya Rivera
Head of Product, Northwind

Copy into your project

HTML
<article class="nuda-testimonial-card">
  <p class="nuda-testimonial-card__quote">
    The onboarding flow felt effortless. Our team shipped a new product in half the time.
  </p>
  <div class="nuda-testimonial-card__author">
    <div class="nuda-testimonial-card__avatar" aria-hidden="true">MR</div>
    <div class="nuda-testimonial-card__meta">
      <div class="nuda-testimonial-card__name">Maya Rivera</div>
      <div class="nuda-testimonial-card__role">Head of Product, Northwind</div>
    </div>
  </div>
</article>
CSS
/* Testimonial Card
   Classic quote with avatar initials and gradient. */

.nuda-testimonial-card {
  max-width: 380px;
  padding: 1.5rem;
  background: #0c0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fafafa;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition:
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nuda-testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.nuda-testimonial-card__quote {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #fafafa;
}

.nuda-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nuda-testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9d6dff, #62b6ff);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0c0c10;
  flex-shrink: 0;
}

.nuda-testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fafafa;
  line-height: 1.2;
}

.nuda-testimonial-card__role {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #a0a0a8;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .nuda-testimonial-card { transition: none; }
  .nuda-testimonial-card:hover { transform: none; }
}

How to use Testimonial Card

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More quotes & testimonials components

← Browse all NudaUI components