Skip to main content
ContainersLevel 1

Card

卡片

WebMobileDesktopDifficulty: Easy

A rounded, bordered container that bundles one related piece of content — image, title, text — into a single self-contained unit.

01

Live Demo

Actually clickable
Each row is its own tap target. The whole row gives hover feedback — not just the text.

What you just saw:The tiled content blocks on an app home screen, article cards on a news site, one square per feature in a settings list, each row of search results.

02

What it actually is

A card is the most generic layout unit there is. It does not dictate what goes inside: an image, a heading, some copy, a button, all of it is fine. Its value is that it chops a scattered pile of information into blocks that can be clicked and understood on their own.

cardcontent cardtilecard containerpanel carditem card
03

Anatomy · What it's made of

  1. Surface卡片面

    White background + 1px border + a very light shadow

  2. Media图片区

    Optional, 16:9 or 1:1

  3. Title标题

    Clamped to 2 lines

  4. Description描述

    1–2 lines, secondary text color

  5. Action操作区

    At the bottom, or the whole card is clickable

04

When to Use

When it fits, and when it doesn't
Card usage recommendations
SituationUse it?
A group of content can be clicked or understood on its ownYes
It needs a clear click boundary (the whole card is clickable)Yes
A repeated unit inside a grid layoutYes
The content is very short — a single line of textNo
You would be nesting a card inside another cardNo

Cards inside cards, or buttons inside buttons, are the classic symptom of a hierarchy that has lost control.

If all you need is a bit of grouping, a divider is enough — no need to promote every group to a box.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a list of content cards: each card has a 16:9 cover image, a title, a description and a "View details" link. The whole card is clickable and lifts slightly on hover.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a few boxes to show some content.

Say this instead

Add a card list: white background, 1px border, border-radius 10px, 16:9 cover + title (clamped to 2 lines) + description, whole card clickable (no nested links inside), lifts 2px on hover with a raised shadow.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.