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>| Prop | Type | Default | Notes |
|---|---|---|---|
variant | light | dark | patch | light | patch = 8px 8px 8px 0 corner + heavy border + cast shadow |
title | string | β | Optional header with divider |
noPadding | boolean | false | Drop the body padding (for tables, media) |
class / titleClass / contentClass | string | β | Style hooks |
Do / donβt
Section titled βDo / donβtβ- Do use
lightfor almost everything;darkfor the cockpit frame;patchrarely. - 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.