Issue 428
enhancement: Card and CardGrid, the shared card components
Back to our planDone
enhancementfrontendstylingpriority: high
Problem
Fourteen card shells are hand-built, each with its own corners, shadow, padding and hover (D3). Five card grids have their own class sets. The post card makes itself clickable with a JavaScript hook, while the event card uses a CSS stretched link (D14). That hook also makes the post card a client component.
Goal
Add Card and CardGrid to src/platform/ui/, as specified in docs/ui/component-set.md and decision 0013 / #426:
Cardvariants:elevated(border and shadow),outline,mutedandtinted.Cardpadding:none,sm,mdandlg.interactivegives the one hover and the focus ring.- Parts:
CardMedia,CardBody,CardTitle(hrefstretches the link),CardMetaandCardFooter. CardGrid:columns2/3/4 andgapsm/md. It is a list by default, withCardGridItemfor each card.
The owner chose to keep today's looks (2026-10-26, Claude Code session, recorded on #426).
Acceptance criteria
- Not done: Card and CardGrid are built, with tests and an axe check.
- Not done: These use them: the post card (no click hook, so it becomes a server component), both event cards, the resource card, the event location panel, the sidebar box, the account panels and the account offer.
- Not done: These grids use
CardGrid: posts, upcoming and past events, resources, and the card previews. - Not done: Visual QA at 6 widths in light and dark, before and after.
- Not done:
ContentBlock's cards move with its own #163 component, together with its mapper (0013).
Native first
- Native: React and Tailwind have no card. The look comes from our tokens and the
cvavariants we already use. - Plugins: Radix and shadcn/ui don't ship a card primitive with behaviour. shadcn's card is copy-in markup, the same as this one.
- Our code: a small presentational component in the UI kit.
Generated by Claude Code, opens in a new tab