Six card designs in Tailwind: a content card where the whole card is clickable, a dashboard stat card with a sparkline, a horizontal card that stacks on phones, a glass card, a profile card with an overlapping avatar and a feature card grid.
A standard content card with an image area, category, title, summary and a read-more link. The whole card is clickable through a stretched link made with after:absolute after:inset-0, and only the title is announced as the link.
A dashboard card with a label, a large number, a trend chip and a tiny sparkline drawn in SVG. The trend says up 12% in text as well as with an arrow, so the meaning does not depend on the green colour.
A card with the image beside the text from the sm breakpoint and stacked above it on phones, using flex-col sm:flex-row. The image area keeps a fixed width on wider screens while the text takes the remaining space.
View code
<article class="flex w-full max-w-lg flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white sm:flex-row">
<div class="h-32 bg-gradient-to-br from-teal-300 to-cyan-500 sm:h-auto sm:w-40 sm:shrink-0"></div>
<div class="p-5"><h3 class="font-bold text-slate-900">Workshop: wheel throwing</h3><p class="mt-1 text-sm leading-relaxed text-slate-600">Saturdays, 10am to 1pm. All materials included, no experience needed.</p><a href="#" class="mt-3 inline-block text-sm font-bold text-teal-700 hover:underline">Book a place →</a></div>
</article>
04. Tailwind Glass Card
TailwindGlass
A frosted glass card over colourful blobs, using bg-white/10, backdrop-blur-xl and a white border at low opacity. The card's text sits on a dark enough tint to stay readable where the shapes behind are bright.
A profile card with a cover band, an overlapping avatar using a negative margin, the name, role and two action buttons. ring-4 ring-white separates the avatar from the cover, and the buttons share the width with flex-1.
A grid of small feature cards with icon tiles and two lines of text, going from one column to two with sm:grid-cols-2. Each card is plain content rather than a link, which suits feature lists on landing pages.