Card Pattern: Self-Contained Content Objects
A card groups related info into a bounded, scannable object you can rearrange like playing cards. Use it for dashboards, product grids, or feeds where items need equal visual weight.
Why it exists
Before cards, web pages were often built as flowing documents with headers and paragraphs. As interfaces shifted from reading articles to manipulating objects, designers needed a way to package heterogeneous content, an image, a headline, metadata, and actions, into discrete units that could be moved, sorted, and stacked without breaking layout. The card pattern emerged to treat each piece of content as an independent object rather than a section of a continuous stream.
The mental model
Think of a card as a playing card or an index card. It has a fixed boundary, contains everything you need to know about one thing, and can be laid out on a grid, shuffled, or stacked without losing meaning. That boundedness gives users a clear target to click, drag, or dismiss, and gives systems a reusable container that does not care what lives inside it.
How it works
A card is typically a rectangular container with a subtle border, shadow, or background color that separates it from the canvas. Inside, content is arranged in a strict vertical hierarchy: media on top, then a title, then supporting text, then a footer for actions. The key is that the card owns its padding and spacing internally, so when you place multiple cards in a grid or carousel, the layout engine only worries about the gaps between cards, not the internals of each one. This makes responsive reflow trivial: at narrow widths cards stack vertically, at wide widths they tile horizontally, all without redesigning the component.
When to use it
Reach for cards when you have a collection of items that vary in content length but need equal visual importance. Dashboard widgets, e-commerce product listings, social media feeds, and search result previews are all natural fits. Cards also help when items need primary actions like save, share, or buy, because the boundary creates an obvious touch target and a place to anchor buttons.
When not to use it
Do not use cards for homogeneous, high-density data where users need to compare rows quickly, like admin tables or log files. The borders and shadows that make cards scannable in small doses become noise at scale. Similarly, avoid cards for single-line settings or simple navigation menus; the extra chrome adds cognitive load and wastes pixels.
One canonical example
Pinterest is the classic card-based interface. Every pin is a card containing an image, a title, a source link, and action buttons. The masonry layout allows cards to be different heights while maintaining clear boundaries, and the design scales from mobile to desktop without ever breaking the mental model of independent, collectible objects.
Interview question
According to the card pattern guidelines, what is the key benefit of a card managing its own internal padding and spacing?
- a.It removes the need for a strict vertical hierarchy of media, title, text, and actions
- b.It simplifies responsive layouts because the system only manages gaps between cards, not their internalsCorrect
- c.It guarantees that every card in a collection will share the exact same dimensions
- d.It allows cards to function as continuous sections within a larger flowing document
Why? this is the answer
The card detail states that when a card owns its internal spacing, the layout engine only worries about gaps between cards, making responsive reflow trivial. Distractor A is tempting because many grids appear uniform, but the pattern explicitly supports varying heights—such as Pinterest's masonry layout—so uniform dimensions are not the goal.
Just read this? Test yourself on what you have been reading.
- #design systems
- #ui patterns
- #components
- #layout
- #frontend
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on design systems — each one lists the topics its interview covers.
See open roles