CSS Card Generator
Build cards for products, articles, team members, pricing plans and dashboards. Choose from six layouts, set padding, corner radius, shadow and border, toggle the image and button, and add a hover effect such as lift, glow, border highlight or image zoom. The checks cover title, body text and button contrast, and you can copy semantic HTML with CSS, SCSS, a Tailwind component class or a React component.
Preset gallery
Accessibility checks
- Pass The title has 17.9:1 contrast with the card, which meets WCAG AA.
- Pass Body text has 6.6:1 contrast, which meets WCAG AA.
- Pass Button text has 6.3:1 contrast with the accent color.
- Pass Remember to describe the image in its alt text, or use alt="" if it is purely decorative.
Export code
<article class="card"> <img class="card__media" src="image.jpg" alt="Describe the image" width="400" height="240"> <div class="card__body"><h3 class="card__title">Mountain retreat</h3><p class="card__text">A quiet cabin with sweeping views, hiking trails and a wood-fired sauna.</p><a class="card__button" href="#">Learn more</a></div> </article>
Favourites on this device (0)
No favourites yet.