Design the product card for the data you will actually get
6 October 2026 2 min read
A card that works with the demo product breaks on the first real catalogue. Four toggles show where, and what a resilient card does instead.
- E-commerce
- Design systems
- Resilience
Every product card looks right in Figma. A three-word title, a perfect photo, a round price. Real catalogues have a seller who writes the whole description into the title, a product that has no photo yet, and a size that is gone.
Built for the demo data
Naive card
Ridge overshirt
€189
Built for real data
Resilient card
Ridge overshirt
€189
Tick the four boxes one after another. The left card is built for the demo data. The right one is built for the data you will actually get.
What breaks on the left
- Long title. The text has no limit, so it grows past the fixed card height and pushes the button out of the border.
- No image. The image area is just the image. Without it the area collapses and everything jumps up, leaving the card half empty.
- Sold out. Nothing changes. You can still press "Add to bag".
- Narrow column. Grids reflow. The card that was fine at 248 pixels is cramped at 176.
None of these are exotic. They are what the first week of real data looks like.
What the right one does
It has a height rule, not a content height. The image area has a fixed size, the text area is flexible, and the button sits at the bottom whatever happens above it.
It truncates with intent. The title is clamped to two lines and keeps the full text in its title attribute. The price is never clamped.
.title {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
It designs the empty image. A missing photo is a state, not an error. Same size, a quiet colour, a plain label.
Sold out is a state with its own action. "Notify me" tells the shopper what they can do. A greyed-out button only tells them what they can't.
Prices are not a fixed width either
€1.299,00 and €1,299.00 are the same number with a different length. Format with Intl.NumberFormat for the shopper's locale, set font-variant-numeric: tabular-nums where prices line up, and never give the price a hard-coded width.
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(1299);
// "1.299,00 €"
Keep an impossible product
The cheapest defence is a fixture. Keep one ugly product in your design system and render every card variant against it: the longest title in the catalogue, no image, zero stock, a seven-figure price, a title in Arabic. Put it in your visual tests so it runs on every change.
If the card only passes with the demo product, it is not finished.
Related
- Layout shift ate my click A promo loads late and the button you were aiming at moves. Watch a tap land on the wrong thing, then fix it with one reserved box.
- The resilient input Strict fields reject what people really type. Pick an amount, a phone number, an email or a name and watch two fields read the same text.