Svelte UI

Card Component

Variants

variant = neutral
variant = primary
variant = secondary
variant = success
variant = info
variant = warning
variant = danger
variant = ghost

Each variant tints the frame (token @ --ui-tint-border / -hover); borderless paints the border the card's own background for a seamless panel.

Sizes

size = sm
padding scales with size
size = md
padding scales with size
size = lg
padding scales with size

size scales the Card's padding (content sizing is up to you).

Plain content

A simple panel

Card can take plain children directly — the sub-components are optional.

Header · Body · Footer

The Card owns the padding, so the Header/Footer separators sit inset (not edge-to-edge).

Invoice #1042

Paid

The header separator has a bottom border; the footer a top border — both inset by the Card's padding.