Components
Card
The card ladder in use: the raised card, the recessed well, the head and rule inside them, media, and the lift.
Usage
Card with a head
Card
Raised. The fill grades light to dark downward and the top edge is lifted, so the light reads as coming from above the page.
Divided by a hairline tuned to the card.
Uses.aka-card.aka-card-well.aka-card-head.aka-card-rule.aka-card-media.aka-card-lift
<div className="aka-card overflow-hidden">
<div className="aka-card-head px-4 py-2.5">
<p className="aka-label">Card</p>
</div>
<p className="px-4 py-3.5 text-13 font-light text-muted-foreground">Raised. Lit from above.</p>
<div className="aka-card-rule mx-4 border-t" />
<p className="px-4 py-3.5 text-13 font-light text-muted-foreground">Divided by a hairline tuned to the card.</p>
</div>Padding stays on the element: a surface says what the material is, and how much room the content needs is the content's. The material itself, its tokens and its rules are on Surfaces.
Examples
Callout
One rule
Inertials emit signals. The Runciter dispatches them. Humans decide.
<div className="aka-card-well px-5 py-4"> <p className="aka-lead">One rule</p> <p className="mt-2 text-14 font-light leading-relaxed text-foreground/85">Humans decide.</p> </div>
The well is the closing-argument surface: the same material with the light reversed, which is what a cut into the page looks like.
Card as a control
<a href="/aka-style/colors" className="aka-card aka-card-lift block px-4 py-3.5"> <span className="block text-14 font-light text-foreground/90">Colors</span> <span className="mt-1 block text-12 font-light text-muted-foreground">The ground, the inks, the one accent.</span> </a>
Hover it: it rises 2px and its edge sharpens. It does not get brighter, because law 04 applies to a card as much as to a canvas.
Media well
<div className="aka-card-well aka-card-media aspect-[16/10] overflow-hidden rounded-lg">
{/* the picture */}
</div>Behind artwork the well drops its grain and grade; the edge stays, which is what makes it a frame.
Best practices
When to use
- aka-card for content that sits on the page: specimens, link tiles, a single panel.
- aka-card-well for what is cut into it: callouts, code, media.
- A flat card instead when many cards sit together in a feed and edges would turn it into a grid of boxes.
Behaviour
- Depth is the edge and the graded fill. There is no drop shadow anywhere.
- Only aka-card-lift moves, 2px over --dur-lift, and not at all under reduced motion.
Accessibility
- A card is not a control unless it is a link or a button; give it lift only then.
- Text on the card head is ink measured on the head, which is why the label class names its own.