Cards
Square-cornered panels on the tinted background, for grouped content and callouts.
Variants
The default card is white on bg.secondary. Use info for offers and callouts, andtinted for a card on a white background.
<Card padding="lg">…</Card>
<Card variant="info">…</Card>Tinted card on a white background.
<Card tinted>…</Card>Padding
md is 1.5rem, lg 2rem, xl 4rem (2rem–3rem on smaller screens). Usenone when a column handles its own padding, like the homepage bio card with its photo.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
variant | 'default' | 'info' | 'default' | |
tinted | boolean | false | bg.secondary instead of bg.primary |
padding | 'none' | 'md' | 'lg' | 'xl' | 'md' | |
stretch | boolean | false | Content fills the card’s height, so cards in a grid row line up (pricing) |
as | 'div' | 'section' | 'article' | 'div' | Other attributes (data-reveal) are passed through |