About this set
Blog post cards for a dark page: a gradient cover with a frosted category chip in the corner, the post title, a two-line excerpt and an author row with a small gradient avatar dot, the author’s name and the reading time. The two examples use a violet-to-pink and a green-to-cyan cover. The whole card is clickable through the stretched link pattern: the title is the only link, and its ::after pseudo-element is positioned over the entire card, so a click anywhere opens the post while screen readers and keyboard users meet a single link named by the title instead of a wrapper link around everything. When the link has keyboard focus the card itself gets a violet ring. Hovering lifts the card and brightens its border. Swap the gradient divs for img elements with alt text, or alt=”” if the picture only decorates, when you have real cover images. In Bootstrap the cover is a .card-img-top, the chip a .badge and the title link a .stretched-link; the Tailwind version uses after:absolute after:inset-0 on the link and has-[a:focus-visible] on the card.
What’s included
- Stretched title link makes the whole card clickable with one link target
- Focus ring drawn around the whole card while the link is focused
- Frosted category chip over a gradient cover
- Author row with avatar dot, name and reading time
- Hover lift and border highlight, off under prefers-reduced-motion
Accessibility
Each card is an article whose h2 contains the only link, so screen readers announce the post title once. A violet 3px ring appears around the card when the link has keyboard focus, with a transparent outline on the link kept for Windows forced-colours mode. The meta line is light enough to pass 4.5:1 on the dark card, and the hover lift is disabled under prefers-reduced-motion.
Customise it
Change the cover gradients in .bc-c1 and .bc-c2, the card surface in .bc-card and the focus ring colour in the :has() rule. In Bootstrap the surface and border are --bs-card-bg and --bs-card-border-color on .bc-card; in Tailwind edit the bg-, border- and has-[a:focus-visible]:outline- utilities.




















