Skip to content

Profile Card with Cover

Tailwind CSS profile card with a gradient cover, overlapping avatar, verified badge, bio, skill chips, stats and an accessible follow toggle.

Also known as: user profile card, profile card with banner, social profile card, author bio card, team member card

Tailwind CSS Profile Cards Responsive #avatar #card #profile #social #user

Profile Card with Cover live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A user profile card with a cover banner, built with Tailwind CSS and a tiny vanilla JavaScript follow toggle. It combines a gradient cover, an overlapping avatar with an online indicator, a verified badge, a short bio, skill chips, a three-column stats row and Follow and Message actions. Use it for social apps, community directories, author boxes and team member pages.

How it works

The card is article.tpc-card, centered on a soft teal background. The .tpc-cover banner is a Tailwind gradient (from-teal-500 via-cyan-500 to-lime-300) with an inline SVG of wave lines on top; style.css enlarges its background-size and runs the slow tpc-drift animation. The avatar uses -mt-12 and ring-4 ring-white to overlap the cover edge. Initials sit on a gradient circle with role="img", so no image file is needed, and a green dot marks the person as online.

Stats are a dl in a three-column grid with divide-x separators; each dd is shown above its dt with flex-col-reverse. The followers value carries data-tpc-followers with the raw number.

On DOMContentLoaded the script initializes every .tpc-card. A click on the data-tpc-follow button flips aria-pressed, changes the data-tpc-label text between "Follow" and "Following", adds or subtracts one follower, formats the number with Intl.NumberFormat and replays the tpc-bump animation. The pressed style comes from Tailwind aria-pressed: variants, and style.css swaps .tpc-icon-plus for .tpc-icon-check. The comment at the end of the click handler marks where to add a fetch() call to your follow endpoint.

Customization

  • from-teal-500 via-cyan-500 to-lime-300 on .tpc-cover: change the banner colors, or replace them with a background image utility for a photo cover.
  • h-36 on .tpc-cover and -mt-12 on the avatar row: make the banner taller and adjust the overlap to match.
  • from-amber-300 to-rose-400 and the MR initials: change the avatar, or swap the div for an img with rounded-full.
  • data-tpc-followers on .tpc-count: set the real follower count; the script formats it with thousand separators.
  • bg-teal-600 and the aria-pressed: utilities on .tpc-follow: restyle the default and following states.
  • max-w-sm on .tpc-card: widen the card for longer bios.
  • animation: tpc-drift 12s in style.css: slow it down or remove it for a static cover.

Use cases

  • Social apps: a cover banner, avatar, verified badge and Follow button for each user
  • Community directories: show skill chips, bio and follower stats in one compact card
  • Author boxes: introduce a writer under an article with a short bio and Message action
  • Team pages: present a team member with an online indicator and key numbers

Accessibility

The card is an article labelled by its h2. The Follow control is a native button with aria-pressed, so screen readers announce it as a toggle, and a polite data-tpc-status region confirms each change. The avatar and verified badge have text alternatives, the online dot has sr-only text, and the share icon link has a hidden label. Stats use a semantic description list. All controls have a visible focus-visible outline, text meets contrast guidelines, and every animation stops under prefers-reduced-motion: reduce.

Usage notes

Several cards can share a page because the script works per .tpc-card; give each copy a unique h2 id.

Profile Card with Cover at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Profile Cards
License
Free for personal and commercial use

Questions about this template

Can I use the Profile Card with Cover code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Profile Card with Cover – free Tailwind CSS profile card template
Profile Card with Cover · free Tailwind CSS profile card template

More Profile Cards

Neon Glow Profile Card – free Pure CSS profile card template

Neon Glow Profile Card

Dark profile card with an animated neon conic-gradient border, soft glow, stats, skill tags and a Follow toggle, built with pure CSS and vanilla JS.

Business Card Style Contact Card – free Bootstrap 5 profile card template

Business Card Style Contact Card

Bootstrap 5 digital business card with portrait, role, tap-to-call contact links, copy buttons, a QR code and a downloadable vCard.

Profile Card with Animated Photo Border – free Pure CSS profile card template

Profile Card with Animated Photo Border

Dark pure CSS profile card whose round portrait sits in a spinning conic-gradient ring with a soft glow, plus stats and a follow toggle.

Profile Card with Stats – free Bootstrap 5 profile card template

Profile Card with Stats

Bootstrap 5 user profile card with gradient cover, initials avatar, animated stat counters, follow toggle, message and copy-link buttons.