Skip to content

Card

A container surface. Presentational Astro component β€” renders server-side with zero client JS. Three variants: light (bright workspace, default), dark (ink surface), and patch (the workwear-patch corner, reserved for the brand metaphor).

Light

Default workspace card on paper.

Patch

Asymmetric corner β€” brand moment only.

Dark

Ink surface for the cockpit frame.
---
import Card from '@repo/ui/Card';
---
<Card title="Order summary">…</Card>
<Card variant="patch" title="Featured">…</Card>
<Card variant="dark" noPadding>…</Card>
PropTypeDefaultNotes
variantlight | dark | patchlightpatch = 8px 8px 8px 0 corner + heavy border + cast shadow
titlestringβ€”Optional header with divider
noPaddingbooleanfalseDrop the body padding (for tables, media)
class / titleClass / contentClassstringβ€”Style hooks
  • Do use light for almost everything; dark for the cockpit frame; patch rarely.
  • Don’t use the patch corner on generic cards β€” it’s the patch metaphor, not decoration.
  • Don’t stack shadows or add inner shadows / blur.