← All Canon
Canon
Card
Canon cards create separation through solid surface, border, and spacing. Use the lightest treatment that still makes the grouping obvious.
Published April 14, 2026
What Ships Today
variant:standard,elevated,outlined,glassradius:sm,md,lg,xlpadding:none,sm,md,lg,xlhover: opt into visible hover feedback when the whole card is actionablehref: render the card as a link target
Example
<script lang="ts">
import { Card, Button } from '@create-something/canon';
</script>
<Card variant="standard" padding="lg">
<h2>Deployment Ready</h2>
<p>Record evidence, then promote with the narrowest trustworthy validation surface.</p>
<Button variant="secondary">Review checklist</Button>
</Card>
When To Reach For Each Variant
- Use
standardfor most content groupings. elevatedis a compatibility name with the same solid treatment asstandard; it does not add a shadow.- Use
outlinedfor a transparent surface with a stronger border. glassis a compatibility name that currently renders a solid panel; it is not the default material direction.
Cards use soft-square geometry. Artwork frames stay square. href renders a native link; onclick without href renders a button; otherwise the card is a static container. Do not nest interactive controls inside an actionable card. Keep approval and execution claims tied to actual evidence.