Sections, not cards
Real code from src/registry/card.examples.tsx
don't
<Card>
<CardHeader title="Project settings" />
<CardContent className="flex flex-col gap-3">
<Card>
<CardHeader title="General" description="Name and visibility." />
</Card>
<Card>
<CardHeader title="Danger zone" description="Archive or delete the project." />
</Card>
</CardContent>
</Card>do
<Card>
<CardHeader title="Project settings" />
<CardContent className="flex flex-col gap-4">
<div>
<Heading level={4}>General</Heading>
<Text>Name and visibility.</Text>
</div>
<Separator />
<div>
<Heading level={4}>Danger zone</Heading>
<Text>Archive or delete the project.</Text>
</div>
</CardContent>
</Card>The inner cards were separating one part of the outer one from the rest. A heading does that and puts the part in the outline; the separator draws the line the inner border was drawing. The outer card stays — it is still one thing, separate from the page around it.