Cards
A card holds one piece of content and separates itself with its surface, not a shadow.
Rules
A card holds one piece of content. It separates itself with its surface and a hairline border, not a shadow.
| Kind | Look | Web | iOS | Android |
|---|---|---|---|---|
| Flat (the default) | surface-card background, border-subtle, no shadow | card-panel (rounded-xl) | .cardSurface() (radius AppTheme.Radius.md, 14pt) | Card with the surface container color, a 1dp outlineVariant border, 0dp elevation |
| Hero or widget | The flat card with the largest radius | widget-panel (rounded-3xl) | .cardSurface(radius: AppTheme.Radius.xl) | none |
| On a gradient | surfaceOverlay (92% opacity) and border-subtle | none | CardSurfaceOverlay() | none |
| Floating | surface-card with shadow-card (see Elevation) | none | none | none |
| Card grid | Two up on a phone, three from md; drops a column whenever one would fall under 8rem, so it follows the reader's text size (WCAG 1.4.4) | card-grid-2up | none | none |
On hover a card or banner frame stays where it is. The frame never translates, scales or lifts (no growing shadow), because a frame that jumps under the pointer reads as cheap and moves the target the reader is aiming at. Hover may deepen the frame's fill or border, as buttons do. Only media inside the frame may scale slightly (at most 1.03, duration-300), clipped by the frame's overflow-hidden, so the edge never moves. Under reduced motion even that stays still. Press keeps active:scale-[0.98], which is a response to a touch, not a hover.
Photo scrim (text over hero/card imagery)
The canonical overlay for content imagery (series covers, mate avatars, play hero artwork): the artwork stays the star; only the text band darkens:
Scrim: bg-gradient-to-t from-black/80 via-black/30 to-transparent (bottom-up)
Media: never pre-dimmed below opacity-75: the scrim carries contrast
Chip: on-photo labels use chip-photo: bg-black/60 text-white backdrop-blur-sm, rounded-full (dark scrim chip)
Text: title text-white / secondary text-on-brand-muted: NEVER text-white/NN opacity dims- Bottom-up only. A full-inset left-to-right
from-black/80band darkens the entire frame: that recipe belongs to the Ad banner spec below (tuned for text over busy ad creative) and MUST NOT be copied onto content imagery. - White-glass chips (
bg-white/15+ blur) wash out over bright artwork, and the dark scrim chip replaced them on SeriesCard; use it everywhere. - Web consumes the chip as the
chip-photoutility; native builds the same recipe from these tokens.
Live specimens
card-panelStandard flat card
card-panel-featureFeature container, weather, dialogs
card-panelsection-surfaceA region nested inside another surface
The bridge at dawn
12 min read