Cards
Semantic elements, variants, sections, image, link, stat, profile and collapsible cards.
Appearances and variants
The card is a div with a rounded corner and a background. Subtle, outline, solid, elevated, flat, and unstyled are the appearances. Subtle, outline, solid, elevated, and flat each come in six variants (primary, dominant, success, info, warning, and danger). A card without appearance is flat, so add class p-5 for padding. Unstyled has no surface and ignores the variant.
Subtle
Primary
A card with a tinted background, for notes or a second level of content. It marks the main action of a view.
Dominant
A card with a tinted background, for notes or a second level of content. It is neutral content.
Success
A card with a tinted background, for notes or a second level of content. It confirms a completed action.
Info
A card with a tinted background, for notes or a second level of content. It shows a neutral notice.
Warning
A card with a tinted background, for notes or a second level of content. It asks for attention before continuing.
Danger
A card with a tinted background, for notes or a second level of content. It warns about an error or a destructive action.
Outline
Primary
A card with only a coloured border and no shadow. It marks the main action of a view.
Dominant
A card with only a coloured border and no shadow. It is neutral content.
Success
A card with only a coloured border and no shadow. It confirms a completed action.
Info
A card with only a coloured border and no shadow. It shows a neutral notice.
Warning
A card with only a coloured border and no shadow. It asks for attention before continuing.
Danger
A card with only a coloured border and no shadow. It warns about an error or a destructive action.
Solid
Primary
A card with a strong fill, for emphasis. It marks the main action of a view.
Dominant
A card with a strong fill, for emphasis. It is neutral content.
Success
A card with a strong fill, for emphasis. It confirms a completed action.
Info
A card with a strong fill, for emphasis. It shows a neutral notice.
Warning
A card with a strong fill, for emphasis. It asks for attention before continuing.
Danger
A card with a strong fill, for emphasis. It warns about an error or a destructive action.
Elevated
Primary
A card with a shadow and a coloured top edge. It marks the main action of a view.
Dominant
A card with a shadow and a coloured top edge. It is neutral content.
Success
A card with a shadow and a coloured top edge. It confirms a completed action.
Info
A card with a shadow and a coloured top edge. It shows a neutral notice.
Warning
A card with a shadow and a coloured top edge. It asks for attention before continuing.
Danger
A card with a shadow and a coloured top edge. It warns about an error or a destructive action.
Flat
Primary
The default surface without padding, for sections and media that bring their own padding. It marks the main action of a view.
Dominant
The default surface without padding, for sections and media that bring their own padding. It is neutral content.
Success
The default surface without padding, for sections and media that bring their own padding. It confirms a completed action.
Info
The default surface without padding, for sections and media that bring their own padding. It shows a neutral notice.
Warning
The default surface without padding, for sections and media that bring their own padding. It asks for attention before continuing.
Danger
The default surface without padding, for sections and media that bring their own padding. It warns about an error or a destructive action.
Unstyled
Unstyled
No surface and no padding. The caller adds its own background, border, and padding.
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Subtle</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-1557"
class="rounded-xl bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-primary-200 dark:has-[>[data-card-header]:not(:empty)]:border-primary-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800 bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Primary</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It marks the main
action of a view.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
></div>
</div>
<div
id="card-1660"
class="rounded-xl bg-dominant-100 dark:bg-dominant-900/50 text-dominant-800 dark:text-dominant-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-dominant-200 dark:has-[>[data-card-header]:not(:empty)]:border-dominant-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800 bg-dominant-100 dark:bg-dominant-900/50 text-dominant-800 dark:text-dominant-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Dominant</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It is neutral
content.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-1739"
class="rounded-xl bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-success-200 dark:has-[>[data-card-header]:not(:empty)]:border-success-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800 bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Success</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It confirms a
completed action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
></div>
</div>
<div
id="card-1799"
class="rounded-xl bg-info-100 dark:bg-info-900/50 text-info-800 dark:text-info-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-info-200 dark:has-[>[data-card-header]:not(:empty)]:border-info-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800 bg-info-100 dark:bg-info-900/50 text-info-800 dark:text-info-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Info</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It shows a neutral
notice.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
></div>
</div>
<div
id="card-1835"
class="rounded-xl bg-warning-100 dark:bg-warning-900/50 text-warning-800 dark:text-warning-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-warning-200 dark:has-[>[data-card-header]:not(:empty)]:border-warning-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800 bg-warning-100 dark:bg-warning-900/50 text-warning-800 dark:text-warning-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Warning</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It asks for
attention before continuing.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
></div>
</div>
<div
id="card-1864"
class="rounded-xl bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-danger-200 dark:has-[>[data-card-header]:not(:empty)]:border-danger-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800 bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-200 rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Danger</h4>
<p class="mt-1 text-sm">
A card with a tinted background, for notes or a second level of content. It warns about an
error or a destructive action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Outline</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-1894"
class="rounded-xl border border-primary-300 dark:border-primary-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-300 dark:border-primary-700"
></div>
<h4 class="text-base font-semibold">Primary</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It marks the main action of a view.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-300 dark:border-primary-700"
></div>
</div>
<div
id="card-1916"
class="rounded-xl border border-dominant-300 dark:border-dominant-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-300 dark:border-dominant-700"
></div>
<h4 class="text-base font-semibold">Dominant</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It is neutral content.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-300 dark:border-dominant-700"
></div>
</div>
<div
id="card-1935"
class="rounded-xl border border-success-300 dark:border-success-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-300 dark:border-success-700"
></div>
<h4 class="text-base font-semibold">Success</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It confirms a completed action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-300 dark:border-success-700"
></div>
</div>
<div
id="card-1954"
class="rounded-xl border border-info-300 dark:border-info-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-300 dark:border-info-700"
></div>
<h4 class="text-base font-semibold">Info</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It shows a neutral notice.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-300 dark:border-info-700"
></div>
</div>
<div
id="card-1969"
class="rounded-xl border border-warning-300 dark:border-warning-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-300 dark:border-warning-700"
></div>
<h4 class="text-base font-semibold">Warning</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It asks for attention before continuing.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-300 dark:border-warning-700"
></div>
</div>
<div
id="card-1988"
class="rounded-xl border border-danger-300 dark:border-danger-700 bg-white dark:bg-dominant-900 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-300 dark:border-danger-700"
></div>
<h4 class="text-base font-semibold">Danger</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It warns about an error or a destructive
action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-300 dark:border-danger-700"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Solid</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2000"
class="rounded-xl bg-primary-600 dark:bg-primary-700 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-primary-600 dark:has-[>[data-card-header]:not(:empty)]:border-primary-700 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-600 dark:border-primary-700 bg-primary-600 dark:bg-primary-700 text-white shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Primary</h4>
<p class="mt-1 text-sm">
A card with a strong fill, for emphasis. It marks the main action of a view.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-600 dark:border-primary-700"
></div>
</div>
<div
id="card-2011"
class="rounded-xl bg-dominant-700 dark:bg-dominant-600 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-dominant-700 dark:has-[>[data-card-header]:not(:empty)]:border-dominant-600 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-700 dark:border-dominant-600 bg-dominant-700 dark:bg-dominant-600 text-white shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Dominant</h4>
<p class="mt-1 text-sm">A card with a strong fill, for emphasis. It is neutral content.</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-700 dark:border-dominant-600"
></div>
</div>
<div
id="card-2024"
class="rounded-xl bg-success-500 text-success-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-success-500 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-500 bg-success-500 text-success-950 shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Success</h4>
<p class="mt-1 text-sm">
A card with a strong fill, for emphasis. It confirms a completed action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-500"
></div>
</div>
<div
id="card-2035"
class="rounded-xl bg-info-500 text-info-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-info-500 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-500 bg-info-500 text-info-950 shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Info</h4>
<p class="mt-1 text-sm">
A card with a strong fill, for emphasis. It shows a neutral notice.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-500"
></div>
</div>
<div
id="card-2054"
class="rounded-xl bg-warning-400 text-warning-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-warning-400 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-400 bg-warning-400 text-warning-950 shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Warning</h4>
<p class="mt-1 text-sm">
A card with a strong fill, for emphasis. It asks for attention before continuing.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-400"
></div>
</div>
<div
id="card-2064"
class="rounded-xl bg-danger-600 dark:bg-danger-700 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-danger-600 dark:has-[>[data-card-header]:not(:empty)]:border-danger-700 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-600 dark:border-danger-700 bg-danger-600 dark:bg-danger-700 text-white shadow-sm rounded-t-xl"
></div>
<h4 class="text-base font-semibold">Danger</h4>
<p class="mt-1 text-sm">
A card with a strong fill, for emphasis. It warns about an error or a destructive action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-600 dark:border-danger-700"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Elevated</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2076"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-primary-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800"
></div>
<h4 class="text-base font-semibold">Primary</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It marks the main action of a view.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
></div>
</div>
<div
id="card-2083"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-dominant-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<h4 class="text-base font-semibold">Dominant</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It is neutral content.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-2091"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-success-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800"
></div>
<h4 class="text-base font-semibold">Success</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It confirms a completed action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
></div>
</div>
<div
id="card-2096"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-info-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800"
></div>
<h4 class="text-base font-semibold">Info</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It shows a neutral notice.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
></div>
</div>
<div
id="card-2102"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-warning-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800"
></div>
<h4 class="text-base font-semibold">Warning</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It asks for attention before continuing.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
></div>
</div>
<div
id="card-2106"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-danger-500 p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800"
></div>
<h4 class="text-base font-semibold">Danger</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It warns about an error or a destructive
action.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Flat</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2114"
class="rounded-xl border border-primary-200 dark:border-primary-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Primary</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It marks the main action of a view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
></div>
</div>
<div
id="card-2119"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Dominant</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-2125"
class="rounded-xl border border-success-200 dark:border-success-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Success</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It confirms a completed action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
></div>
</div>
<div
id="card-2131"
class="rounded-xl border border-info-200 dark:border-info-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Info</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
></div>
</div>
<div
id="card-2138"
class="rounded-xl border border-warning-200 dark:border-warning-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Warning</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It asks for attention before continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
></div>
</div>
<div
id="card-2144"
class="rounded-xl border border-danger-200 dark:border-danger-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800"
></div>
<div class="p-5">
<h4 class="text-base font-semibold">Danger</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
The default surface without padding, for sections and media that bring their own padding.
It warns about an error or a destructive action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Unstyled</h3>
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2152"
class="rounded-xl p-5 border border-dashed border-dominant-300 dark:border-dominant-700"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Unstyled</h4>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
No surface and no padding. The caller adds its own background, border, and padding.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
</div>
</div>
Collapsible
An expandable card renders native <details> and <summary> without JavaScript. Subtle, outline, solid, elevated, and flat each come in six variants. An expandable card takes no padding, so do not add class="p-5": the summary and the body set their own. expandable="open" starts the card open and expandable="closed" starts it closed. title renders a text summary with a chevron; slot="header" replaces its contents, as in these examples. Use summary-class to replace the summary classes. Subtle and solid colour the summary, and the body stays neutral. Subtle and solid frames take a border in the variant colour, and the summary rounds its own corners, so nothing inside the card is clipped. On other variants the title and chevron inherit the card colour. Turn a chevron with [[open]>summary>&]:rotate-180: it reacts only to its own card, also when cards are nested.
Title prop
Shipping details
The title prop renders the heading and the chevron; use the header slot only for a custom summary.
Subtle
Primary
A card with a tinted background, for notes or a second level of content. It marks the main action of a view.
Dominant
A card with a tinted background, for notes or a second level of content. It is neutral content.
Success
A card with a tinted background, for notes or a second level of content. It confirms a completed action.
Info
A card with a tinted background, for notes or a second level of content. It shows a neutral notice.
Warning
A card with a tinted background, for notes or a second level of content. It asks for attention before continuing.
Danger
A card with a tinted background, for notes or a second level of content. It warns about an error or a destructive action.
Outline
Primary
A card with only a coloured border and no shadow. It marks the main action of a view.
Dominant
A card with only a coloured border and no shadow. It is neutral content.
Success
A card with only a coloured border and no shadow. It confirms a completed action.
Info
A card with only a coloured border and no shadow. It shows a neutral notice.
Warning
A card with only a coloured border and no shadow. It asks for attention before continuing.
Danger
A card with only a coloured border and no shadow. It warns about an error or a destructive action.
Solid
Primary
A card with a strong fill, for emphasis. It marks the main action of a view.
Dominant
A card with a strong fill, for emphasis. It is neutral content.
Success
A card with a strong fill, for emphasis. It confirms a completed action.
Info
A card with a strong fill, for emphasis. It shows a neutral notice.
Warning
A card with a strong fill, for emphasis. It asks for attention before continuing.
Danger
A card with a strong fill, for emphasis. It warns about an error or a destructive action.
Elevated
Primary
A card with a shadow and a coloured top edge. It marks the main action of a view.
Dominant
A card with a shadow and a coloured top edge. It is neutral content.
Success
A card with a shadow and a coloured top edge. It confirms a completed action.
Info
A card with a shadow and a coloured top edge. It shows a neutral notice.
Warning
A card with a shadow and a coloured top edge. It asks for attention before continuing.
Danger
A card with a shadow and a coloured top edge. It warns about an error or a destructive action.
Flat
Primary
The standard surface with a thin coloured border and a small shadow. It marks the main action of a view.
Dominant
The standard surface with a thin coloured border and a small shadow. It is neutral content.
Success
The standard surface with a thin coloured border and a small shadow. It confirms a completed action.
Info
The standard surface with a thin coloured border and a small shadow. It shows a neutral notice.
Warning
The standard surface with a thin coloured border and a small shadow. It asks for attention before continuing.
Danger
The standard surface with a thin coloured border and a small shadow. It warns about an error or a destructive action.
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Title prop</h3>
<details
id="card-1553"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-lg focus-visible:ring-2 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 focus-visible:outline-none [&::-webkit-details-marker]:hidden"
>
<h2 class="text-base font-semibold text-dominant-900 dark:text-white">Shipping details</h2>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180 text-dominant-700 dark:text-dominant-200"
></i>
</summary>
<div class="px-5 py-4 border-t border-dominant-200 dark:border-dominant-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The title prop renders the heading and the chevron; use the header slot only for a custom
summary.
</p>
</div>
</details>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Subtle</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<details
id="card-1665"
class="rounded-xl border border-primary-200 dark:border-primary-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Primary</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-primary-200 dark:border-primary-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It marks the main
action of a view.
</p>
</div>
</details>
<details
id="card-1741"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-dominant-100 dark:bg-dominant-900/50 text-dominant-800 dark:text-dominant-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180 text-dominant-700 dark:text-dominant-200"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-dominant-200 dark:border-dominant-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It is neutral
content.
</p>
</div>
</details>
<details
id="card-1802"
class="rounded-xl border border-success-200 dark:border-success-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Success</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-success-200 dark:border-success-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It confirms a
completed action.
</p>
</div>
</details>
<details
id="card-1839"
class="rounded-xl border border-info-200 dark:border-info-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-info-100 dark:bg-info-900/50 text-info-800 dark:text-info-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Info</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-info-200 dark:border-info-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It shows a
neutral notice.
</p>
</div>
</details>
<details
id="card-1865"
class="rounded-xl border border-warning-200 dark:border-warning-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-warning-100 dark:bg-warning-900/50 text-warning-800 dark:text-warning-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Warning</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-warning-200 dark:border-warning-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It asks for
attention before continuing.
</p>
</div>
</details>
<details
id="card-1891"
class="rounded-xl border border-danger-200 dark:border-danger-800 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-200 rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Danger</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-danger-200 dark:border-danger-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a tinted background, for notes or a second level of content. It warns about an
error or a destructive action.
</p>
</div>
</details>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Outline</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<details
id="card-1919"
class="rounded-xl border border-primary-300 dark:border-primary-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Primary</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-primary-300 dark:border-primary-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It marks the main action of a view.
</p>
</div>
</details>
<details
id="card-1939"
class="rounded-xl border border-dominant-300 dark:border-dominant-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180 text-dominant-700 dark:text-dominant-200"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-dominant-300 dark:border-dominant-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It is neutral content.
</p>
</div>
</details>
<details
id="card-1956"
class="rounded-xl border border-success-300 dark:border-success-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Success</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-success-300 dark:border-success-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It confirms a completed action.
</p>
</div>
</details>
<details
id="card-1973"
class="rounded-xl border border-info-300 dark:border-info-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Info</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-info-300 dark:border-info-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It shows a neutral notice.
</p>
</div>
</details>
<details
id="card-1990"
class="rounded-xl border border-warning-300 dark:border-warning-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Warning</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-warning-300 dark:border-warning-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It asks for attention before continuing.
</p>
</div>
</details>
<details
id="card-1999"
class="rounded-xl border border-danger-300 dark:border-danger-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Danger</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-danger-300 dark:border-danger-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with only a coloured border and no shadow. It warns about an error or a destructive
action.
</p>
</div>
</details>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Solid</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<details
id="card-2016"
class="rounded-xl border border-primary-600 dark:border-primary-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-primary-600 dark:bg-primary-700 text-white shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Primary</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-primary-600 dark:border-primary-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It marks the main action of a view.
</p>
</div>
</details>
<details
id="card-2026"
class="rounded-xl border border-dominant-700 dark:border-dominant-600 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-dominant-700 dark:bg-dominant-600 text-white shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Dominant</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-dominant-700 dark:border-dominant-600">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It is neutral content.
</p>
</div>
</details>
<details
id="card-2041"
class="rounded-xl border border-success-500 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-success-500 text-success-950 shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Success</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-success-500">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It confirms a completed action.
</p>
</div>
</details>
<details id="card-2057" class="rounded-xl border border-info-500 bg-white dark:bg-dominant-900">
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-info-500 text-info-950 shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Info</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-info-500">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It shows a neutral notice.
</p>
</div>
</details>
<details
id="card-2067"
class="rounded-xl border border-warning-400 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-warning-400 text-warning-950 shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Warning</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-warning-400">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It asks for attention before continuing.
</p>
</div>
</details>
<details
id="card-2077"
class="rounded-xl border border-danger-600 dark:border-danger-700 bg-white dark:bg-dominant-900"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden bg-danger-600 dark:bg-danger-700 text-white shadow-sm rounded-xl [[open]>&]:rounded-b-none"
>
<h4 class="text-base font-semibold">Danger</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-danger-600 dark:border-danger-700">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a strong fill, for emphasis. It warns about an error or a destructive action.
</p>
</div>
</details>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Elevated</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<details
id="card-2086"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-primary-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Primary</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-primary-200 dark:border-primary-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It marks the main action of a view.
</p>
</div>
</details>
<details
id="card-2092"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-dominant-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180 text-dominant-700 dark:text-dominant-200"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-dominant-200 dark:border-dominant-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It is neutral content.
</p>
</div>
</details>
<details
id="card-2099"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-success-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Success</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-success-200 dark:border-success-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It confirms a completed action.
</p>
</div>
</details>
<details
id="card-2104"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-info-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Info</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-info-200 dark:border-info-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It shows a neutral notice.
</p>
</div>
</details>
<details
id="card-2109"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-warning-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Warning</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-warning-200 dark:border-warning-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It asks for attention before continuing.
</p>
</div>
</details>
<details
id="card-2115"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-danger-500"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Danger</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-danger-200 dark:border-danger-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A card with a shadow and a coloured top edge. It warns about an error or a destructive
action.
</p>
</div>
</details>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Flat</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<details
id="card-2121"
class="rounded-xl border border-primary-200 dark:border-primary-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Primary</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-primary-200 dark:border-primary-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It marks the main
action of a view.
</p>
</div>
</details>
<details
id="card-2126"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180 text-dominant-700 dark:text-dominant-200"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-dominant-200 dark:border-dominant-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It is neutral
content.
</p>
</div>
</details>
<details
id="card-2132"
class="rounded-xl border border-success-200 dark:border-success-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Success</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-success-200 dark:border-success-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It confirms a
completed action.
</p>
</div>
</details>
<details
id="card-2140"
class="rounded-xl border border-info-200 dark:border-info-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Info</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-info-200 dark:border-info-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It shows a neutral
notice.
</p>
</div>
</details>
<details
id="card-2146"
class="rounded-xl border border-warning-200 dark:border-warning-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Warning</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-warning-200 dark:border-warning-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It asks for attention
before continuing.
</p>
</div>
</details>
<details
id="card-2150"
class="rounded-xl border border-danger-200 dark:border-danger-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<summary
class="flex cursor-pointer list-none items-center justify-between gap-3 rounded-xl px-5 py-4 focus-visible:ring-2 focus-visible:ring-primary-700 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-dominant-950 focus-visible:outline-none dark:focus-visible:ring-primary-400 [&::-webkit-details-marker]:hidden"
>
<h4 class="text-base font-semibold">Danger</h4>
<i
aria-hidden="true"
class="shrink-0 text-xs transition-transform duration-200 fa-solid fa-chevron-down [[open]>summary>&]:rotate-180"
>
</i>
</summary>
<div class="px-5 py-4 border-t border-danger-200 dark:border-danger-800">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border and a small shadow. It warns about an
error or a destructive action.
</p>
</div>
</details>
</div>
</div>
Header, body and footer
A card takes a header and a footer through slot="header" and slot="footer"; title alone renders a header with the title; the body is the default slot and sets its own padding. The header carries the variant: subtle and solid fill it, while the body and the footer stay neutral. The separators between the sections follow the variant, like the expandable separator. Without a header the card keeps its usual surface.
Title prop
Billing address
The title prop renders the header with an h2; the header slot replaces it.
Subtle
Primary
The header has a tinted background; the body stays neutral. It marks the main action of a view.
Dominant
The header has a tinted background; the body stays neutral. It is neutral content.
Success
The header has a tinted background; the body stays neutral. It confirms a completed action.
Info
The header has a tinted background; the body stays neutral. It shows a neutral notice.
Warning
The header has a tinted background; the body stays neutral. It asks for attention before continuing.
Danger
The header has a tinted background; the body stays neutral. It warns about an error or a destructive action.
Outline
Primary
A coloured border around the header, the body, and the footer. It marks the main action of a view.
Dominant
A coloured border around the header, the body, and the footer. It is neutral content.
Success
A coloured border around the header, the body, and the footer. It confirms a completed action.
Info
A coloured border around the header, the body, and the footer. It shows a neutral notice.
Warning
A coloured border around the header, the body, and the footer. It asks for attention before continuing.
Danger
A coloured border around the header, the body, and the footer. It warns about an error or a destructive action.
Solid
Primary
The header has a strong fill; the body stays neutral. It marks the main action of a view.
Dominant
The header has a strong fill; the body stays neutral. It is neutral content.
Success
The header has a strong fill; the body stays neutral. It confirms a completed action.
Info
The header has a strong fill; the body stays neutral. It shows a neutral notice.
Warning
The header has a strong fill; the body stays neutral. It asks for attention before continuing.
Danger
The header has a strong fill; the body stays neutral. It warns about an error or a destructive action.
Elevated
Primary
A shadow and a coloured top edge around the sections. It marks the main action of a view.
Dominant
A shadow and a coloured top edge around the sections. It is neutral content.
Success
A shadow and a coloured top edge around the sections. It confirms a completed action.
Info
A shadow and a coloured top edge around the sections. It shows a neutral notice.
Warning
A shadow and a coloured top edge around the sections. It asks for attention before continuing.
Danger
A shadow and a coloured top edge around the sections. It warns about an error or a destructive action.
Flat
Primary
The standard surface with a thin coloured border. It marks the main action of a view.
Dominant
The standard surface with a thin coloured border. It is neutral content.
Success
The standard surface with a thin coloured border. It confirms a completed action.
Info
The standard surface with a thin coloured border. It shows a neutral notice.
Warning
The standard surface with a thin coloured border. It asks for attention before continuing.
Danger
The standard surface with a thin coloured border. It warns about an error or a destructive action.
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Title prop</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-1558"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
>
<h2 class="text-base font-semibold text-dominant-900 dark:text-white">Billing address</h2>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The title prop renders the header with an h2; the header slot replaces it.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Subtle</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-1680"
class="rounded-xl bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-primary-200 dark:has-[>[data-card-header]:not(:empty)]:border-primary-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800 bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-200 rounded-t-xl"
>
<h4 class="text-base font-semibold">Primary</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It marks the main action of a
view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
>
<button
id="button-1758"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-primary-300 dark:inset-ring-primary-700 bg-white dark:bg-dominant-900 text-primary-800 dark:text-primary-200 dark:shadow-none shadow-sm not-disabled:hover:bg-primary-50 dark:not-disabled:hover:bg-primary-900/50 not-disabled:active:bg-primary-100 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-1816"
class="rounded-xl bg-dominant-100 dark:bg-dominant-900/50 text-dominant-800 dark:text-dominant-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-dominant-200 dark:has-[>[data-card-header]:not(:empty)]:border-dominant-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800 bg-dominant-100 dark:bg-dominant-900/50 text-dominant-800 dark:text-dominant-200 rounded-t-xl"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
>
<button
id="button-1846"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-1874"
class="rounded-xl bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-success-200 dark:has-[>[data-card-header]:not(:empty)]:border-success-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800 bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-200 rounded-t-xl"
>
<h4 class="text-base font-semibold">Success</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It confirms a completed
action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
>
<button
id="button-1895"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-success-300 dark:inset-ring-success-700 bg-white dark:bg-dominant-900 text-success-800 dark:text-success-200 dark:shadow-none shadow-sm not-disabled:hover:bg-success-50 dark:not-disabled:hover:bg-success-900/50 not-disabled:active:bg-success-100 focus-visible:ring-success-700 dark:focus-visible:ring-success-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-1920"
class="rounded-xl bg-info-100 dark:bg-info-900/50 text-info-800 dark:text-info-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-info-200 dark:has-[>[data-card-header]:not(:empty)]:border-info-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800 bg-info-100 dark:bg-info-900/50 text-info-800 dark:text-info-200 rounded-t-xl"
>
<h4 class="text-base font-semibold">Info</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
>
<button
id="button-1937"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-info-300 dark:inset-ring-info-700 bg-white dark:bg-dominant-900 text-info-800 dark:text-info-200 dark:shadow-none shadow-sm not-disabled:hover:bg-info-50 dark:not-disabled:hover:bg-info-900/50 not-disabled:active:bg-info-100 focus-visible:ring-info-700 dark:focus-visible:ring-info-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-1957"
class="rounded-xl bg-warning-100 dark:bg-warning-900/50 text-warning-800 dark:text-warning-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-warning-200 dark:has-[>[data-card-header]:not(:empty)]:border-warning-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800 bg-warning-100 dark:bg-warning-900/50 text-warning-800 dark:text-warning-200 rounded-t-xl"
>
<h4 class="text-base font-semibold">Warning</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It asks for attention before
continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
>
<button
id="button-1971"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-warning-300 dark:inset-ring-warning-700 bg-white dark:bg-dominant-900 text-warning-800 dark:text-warning-200 dark:shadow-none shadow-sm not-disabled:hover:bg-warning-50 dark:not-disabled:hover:bg-warning-900/50 not-disabled:active:bg-warning-100 focus-visible:ring-warning-700 dark:focus-visible:ring-warning-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-1989"
class="rounded-xl bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-200 has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-danger-200 dark:has-[>[data-card-header]:not(:empty)]:border-danger-800 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800 bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-200 rounded-t-xl"
>
<h4 class="text-base font-semibold">Danger</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a tinted background; the body stays neutral. It warns about an error or a
destructive action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
>
<button
id="button-1998"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-danger-300 dark:inset-ring-danger-700 bg-white dark:bg-dominant-900 text-danger-800 dark:text-danger-200 dark:shadow-none shadow-sm not-disabled:hover:bg-danger-50 dark:not-disabled:hover:bg-danger-900/50 not-disabled:active:bg-danger-100 focus-visible:ring-danger-700 dark:focus-visible:ring-danger-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Outline</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2015"
class="rounded-xl border border-primary-300 dark:border-primary-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-300 dark:border-primary-700"
>
<h4 class="text-base font-semibold">Primary</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It marks the main action of
a view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-300 dark:border-primary-700"
>
<button
id="button-2025"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-primary-300 dark:inset-ring-primary-700 bg-white dark:bg-dominant-900 text-primary-800 dark:text-primary-200 dark:shadow-none shadow-sm not-disabled:hover:bg-primary-50 dark:not-disabled:hover:bg-primary-900/50 not-disabled:active:bg-primary-100 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2040"
class="rounded-xl border border-dominant-300 dark:border-dominant-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-300 dark:border-dominant-700"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-300 dark:border-dominant-700"
>
<button
id="button-2055"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2066"
class="rounded-xl border border-success-300 dark:border-success-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-300 dark:border-success-700"
>
<h4 class="text-base font-semibold">Success</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It confirms a completed
action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-300 dark:border-success-700"
>
<button
id="button-2075"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-success-300 dark:inset-ring-success-700 bg-white dark:bg-dominant-900 text-success-800 dark:text-success-200 dark:shadow-none shadow-sm not-disabled:hover:bg-success-50 dark:not-disabled:hover:bg-success-900/50 not-disabled:active:bg-success-100 focus-visible:ring-success-700 dark:focus-visible:ring-success-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2084"
class="rounded-xl border border-info-300 dark:border-info-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-300 dark:border-info-700"
>
<h4 class="text-base font-semibold">Info</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-300 dark:border-info-700"
>
<button
id="button-2089"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-info-300 dark:inset-ring-info-700 bg-white dark:bg-dominant-900 text-info-800 dark:text-info-200 dark:shadow-none shadow-sm not-disabled:hover:bg-info-50 dark:not-disabled:hover:bg-info-900/50 not-disabled:active:bg-info-100 focus-visible:ring-info-700 dark:focus-visible:ring-info-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2097"
class="rounded-xl border border-warning-300 dark:border-warning-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-300 dark:border-warning-700"
>
<h4 class="text-base font-semibold">Warning</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It asks for attention
before continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-300 dark:border-warning-700"
>
<button
id="button-2101"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-warning-300 dark:inset-ring-warning-700 bg-white dark:bg-dominant-900 text-warning-800 dark:text-warning-200 dark:shadow-none shadow-sm not-disabled:hover:bg-warning-50 dark:not-disabled:hover:bg-warning-900/50 not-disabled:active:bg-warning-100 focus-visible:ring-warning-700 dark:focus-visible:ring-warning-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2107"
class="rounded-xl border border-danger-300 dark:border-danger-700 bg-white dark:bg-dominant-900"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-300 dark:border-danger-700"
>
<h4 class="text-base font-semibold">Danger</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A coloured border around the header, the body, and the footer. It warns about an error or
a destructive action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-300 dark:border-danger-700"
>
<button
id="button-2111"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-danger-300 dark:inset-ring-danger-700 bg-white dark:bg-dominant-900 text-danger-800 dark:text-danger-200 dark:shadow-none shadow-sm not-disabled:hover:bg-danger-50 dark:not-disabled:hover:bg-danger-900/50 not-disabled:active:bg-danger-100 focus-visible:ring-danger-700 dark:focus-visible:ring-danger-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Solid</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2118"
class="rounded-xl bg-primary-600 dark:bg-primary-700 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-primary-600 dark:has-[>[data-card-header]:not(:empty)]:border-primary-700 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-600 dark:border-primary-700 bg-primary-600 dark:bg-primary-700 text-white shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Primary</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It marks the main action of a view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-600 dark:border-primary-700"
>
<button
id="button-2124"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-primary-300 dark:inset-ring-primary-700 bg-white dark:bg-dominant-900 text-primary-800 dark:text-primary-200 dark:shadow-none shadow-sm not-disabled:hover:bg-primary-50 dark:not-disabled:hover:bg-primary-900/50 not-disabled:active:bg-primary-100 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2130"
class="rounded-xl bg-dominant-700 dark:bg-dominant-600 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-dominant-700 dark:has-[>[data-card-header]:not(:empty)]:border-dominant-600 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-700 dark:border-dominant-600 bg-dominant-700 dark:bg-dominant-600 text-white shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Dominant</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-700 dark:border-dominant-600"
>
<button
id="button-2137"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2143"
class="rounded-xl bg-success-500 text-success-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-success-500 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-500 bg-success-500 text-success-950 shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Success</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It confirms a completed action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-500"
>
<button
id="button-2149"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-success-300 dark:inset-ring-success-700 bg-white dark:bg-dominant-900 text-success-800 dark:text-success-200 dark:shadow-none shadow-sm not-disabled:hover:bg-success-50 dark:not-disabled:hover:bg-success-900/50 not-disabled:active:bg-success-100 focus-visible:ring-success-700 dark:focus-visible:ring-success-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2154"
class="rounded-xl bg-info-500 text-info-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-info-500 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-500 bg-info-500 text-info-950 shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Info</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-500"
>
<button
id="button-2159"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-info-300 dark:inset-ring-info-700 bg-white dark:bg-dominant-900 text-info-800 dark:text-info-200 dark:shadow-none shadow-sm not-disabled:hover:bg-info-50 dark:not-disabled:hover:bg-info-900/50 not-disabled:active:bg-info-100 focus-visible:ring-info-700 dark:focus-visible:ring-info-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2165"
class="rounded-xl bg-warning-400 text-warning-950 shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-warning-400 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-400 bg-warning-400 text-warning-950 shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Warning</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It asks for attention before
continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-400"
>
<button
id="button-2171"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-warning-300 dark:inset-ring-warning-700 bg-white dark:bg-dominant-900 text-warning-800 dark:text-warning-200 dark:shadow-none shadow-sm not-disabled:hover:bg-warning-50 dark:not-disabled:hover:bg-warning-900/50 not-disabled:active:bg-warning-100 focus-visible:ring-warning-700 dark:focus-visible:ring-warning-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2173"
class="rounded-xl bg-danger-600 dark:bg-danger-700 text-white shadow-sm has-[>[data-card-header]:not(:empty)]:border has-[>[data-card-header]:not(:empty)]:border-danger-600 dark:has-[>[data-card-header]:not(:empty)]:border-danger-700 has-[>[data-card-header]:not(:empty)]:bg-white dark:has-[>[data-card-header]:not(:empty)]:bg-dominant-900 has-[>[data-card-header]:not(:empty)]:text-inherit"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-600 dark:border-danger-700 bg-danger-600 dark:bg-danger-700 text-white shadow-sm rounded-t-xl"
>
<h4 class="text-base font-semibold">Danger</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The header has a strong fill; the body stays neutral. It warns about an error or a
destructive action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-600 dark:border-danger-700"
>
<button
id="button-2175"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-danger-300 dark:inset-ring-danger-700 bg-white dark:bg-dominant-900 text-danger-800 dark:text-danger-200 dark:shadow-none shadow-sm not-disabled:hover:bg-danger-50 dark:not-disabled:hover:bg-danger-900/50 not-disabled:active:bg-danger-100 focus-visible:ring-danger-700 dark:focus-visible:ring-danger-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Elevated</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2181"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-primary-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800"
>
<h4 class="text-base font-semibold">Primary</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It marks the main action of a view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
>
<button
id="button-2184"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-primary-300 dark:inset-ring-primary-700 bg-white dark:bg-dominant-900 text-primary-800 dark:text-primary-200 dark:shadow-none shadow-sm not-disabled:hover:bg-primary-50 dark:not-disabled:hover:bg-primary-900/50 not-disabled:active:bg-primary-100 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2186"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-dominant-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
>
<button
id="button-2189"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2192"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-success-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800"
>
<h4 class="text-base font-semibold">Success</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It confirms a completed action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
>
<button
id="button-2193"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-success-300 dark:inset-ring-success-700 bg-white dark:bg-dominant-900 text-success-800 dark:text-success-200 dark:shadow-none shadow-sm not-disabled:hover:bg-success-50 dark:not-disabled:hover:bg-success-900/50 not-disabled:active:bg-success-100 focus-visible:ring-success-700 dark:focus-visible:ring-success-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2194"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-info-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800"
>
<h4 class="text-base font-semibold">Info</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
>
<button
id="button-2196"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-info-300 dark:inset-ring-info-700 bg-white dark:bg-dominant-900 text-info-800 dark:text-info-200 dark:shadow-none shadow-sm not-disabled:hover:bg-info-50 dark:not-disabled:hover:bg-info-900/50 not-disabled:active:bg-info-100 focus-visible:ring-info-700 dark:focus-visible:ring-info-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2197"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-warning-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800"
>
<h4 class="text-base font-semibold">Warning</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It asks for attention before
continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
>
<button
id="button-2198"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-warning-300 dark:inset-ring-warning-700 bg-white dark:bg-dominant-900 text-warning-800 dark:text-warning-200 dark:shadow-none shadow-sm not-disabled:hover:bg-warning-50 dark:not-disabled:hover:bg-warning-900/50 not-disabled:active:bg-warning-100 focus-visible:ring-warning-700 dark:focus-visible:ring-warning-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2199"
class="rounded-xl bg-white dark:bg-dominant-800 dark:shadow-none shadow-md border-t-4 border-danger-500"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800"
>
<h4 class="text-base font-semibold">Danger</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
A shadow and a coloured top edge around the sections. It warns about an error or a
destructive action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
>
<button
id="button-2200"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-danger-300 dark:inset-ring-danger-700 bg-white dark:bg-dominant-900 text-danger-800 dark:text-danger-200 dark:shadow-none shadow-sm not-disabled:hover:bg-danger-50 dark:not-disabled:hover:bg-danger-900/50 not-disabled:active:bg-danger-100 focus-visible:ring-danger-700 dark:focus-visible:ring-danger-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-3">
<h3 class="text-sm font-semibold text-dominant-900 dark:text-white">Flat</h3>
<div class="grid grid-cols-1 gap-3 items-start sm:grid-cols-2 lg:grid-cols-3">
<div
id="card-2201"
class="rounded-xl border border-primary-200 dark:border-primary-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-primary-200 dark:border-primary-800"
>
<h4 class="text-base font-semibold">Primary</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It marks the main action of a view.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-primary-200 dark:border-primary-800"
>
<button
id="button-2203"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-primary-300 dark:inset-ring-primary-700 bg-white dark:bg-dominant-900 text-primary-800 dark:text-primary-200 dark:shadow-none shadow-sm not-disabled:hover:bg-primary-50 dark:not-disabled:hover:bg-primary-900/50 not-disabled:active:bg-primary-100 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2204"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
>
<h4 class="text-base font-semibold text-dominant-900 dark:text-white">Dominant</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It is neutral content.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
>
<button
id="button-2206"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2208"
class="rounded-xl border border-success-200 dark:border-success-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-success-200 dark:border-success-800"
>
<h4 class="text-base font-semibold">Success</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It confirms a completed action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-success-200 dark:border-success-800"
>
<button
id="button-2209"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-success-300 dark:inset-ring-success-700 bg-white dark:bg-dominant-900 text-success-800 dark:text-success-200 dark:shadow-none shadow-sm not-disabled:hover:bg-success-50 dark:not-disabled:hover:bg-success-900/50 not-disabled:active:bg-success-100 focus-visible:ring-success-700 dark:focus-visible:ring-success-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2210"
class="rounded-xl border border-info-200 dark:border-info-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-info-200 dark:border-info-800"
>
<h4 class="text-base font-semibold">Info</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It shows a neutral notice.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-info-200 dark:border-info-800"
>
<button
id="button-2211"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-info-300 dark:inset-ring-info-700 bg-white dark:bg-dominant-900 text-info-800 dark:text-info-200 dark:shadow-none shadow-sm not-disabled:hover:bg-info-50 dark:not-disabled:hover:bg-info-900/50 not-disabled:active:bg-info-100 focus-visible:ring-info-700 dark:focus-visible:ring-info-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2212"
class="rounded-xl border border-warning-200 dark:border-warning-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-warning-200 dark:border-warning-800"
>
<h4 class="text-base font-semibold">Warning</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It asks for attention before continuing.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-warning-200 dark:border-warning-800"
>
<button
id="button-2213"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-warning-300 dark:inset-ring-warning-700 bg-white dark:bg-dominant-900 text-warning-800 dark:text-warning-200 dark:shadow-none shadow-sm not-disabled:hover:bg-warning-50 dark:not-disabled:hover:bg-warning-900/50 not-disabled:active:bg-warning-100 focus-visible:ring-warning-700 dark:focus-visible:ring-warning-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
<div
id="card-2216"
class="rounded-xl border border-danger-200 dark:border-danger-800 bg-white dark:bg-dominant-900 shadow-sm"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-danger-200 dark:border-danger-800"
>
<h4 class="text-base font-semibold">Danger</h4>
</div>
<div class="px-5 py-4">
<p class="text-sm text-dominant-600 dark:text-dominant-300">
The standard surface with a thin coloured border. It warns about an error or a destructive
action.
</p>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-danger-200 dark:border-danger-800"
>
<button
id="button-2217"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-danger-300 dark:inset-ring-danger-700 bg-white dark:bg-dominant-900 text-danger-800 dark:text-danger-200 dark:shadow-none shadow-sm not-disabled:hover:bg-danger-50 dark:not-disabled:hover:bg-danger-900/50 not-disabled:active:bg-danger-100 focus-visible:ring-danger-700 dark:focus-visible:ring-danger-400 gap-2 px-4 py-2.5 text-sm"
>
<span>View</span>
</button>
</div>
</div>
</div>
</div>
With image
An image at the top, or at the side from the sm breakpoint up. The image area here is a decorative block; use an img with alt in your page, or alt="" when the title already says it. overflow-hidden keeps the image inside the rounded corners.
<div
id="card-1544"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm overflow-hidden"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<div
aria-hidden="true"
class="flex items-center justify-center h-40 text-primary-700 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50"
>
<i class="text-3xl fa-solid fa-image"> </i>
</div>
<div class="p-5">
<span
id="badge-1624"
class="inline-flex items-center gap-1.5 rounded-full font-semibold bg-primary-100 dark:bg-primary-900/50 text-primary-800 dark:text-primary-300 px-2 py-0.5 text-xs"
>
<span>Guide</span>
</span>
<h3 class="mt-3 text-base font-semibold text-dominant-900 dark:text-white">
Plan the next release
</h3>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
How to group the work, set a date and tell the team.
</p>
<a
id="link-1674"
href="#"
class="font-semibold rounded underline-offset-2 focus-visible:ring-2 focus-visible:outline-none inline-flex items-center gap-1.5 text-primary-700 dark:text-primary-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 hover:underline focus-visible:underline hover:text-primary-800 dark:hover:text-primary-200 mt-4 text-sm"
>
<span>Read more</span><i aria-hidden="true" class="text-xs fa-solid fa-arrow-right"></i>
</a>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-1763"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm overflow-hidden sm:flex"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<div
aria-hidden="true"
class="flex items-center justify-center h-32 text-primary-700 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50 sm:h-auto sm:w-40 sm:shrink-0"
>
<i class="text-3xl fa-solid fa-image"> </i>
</div>
<div class="p-5">
<h3 class="text-base font-semibold text-dominant-900 dark:text-white">Weekly summary</h3>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
What the team finished, and what is still open, in one page.
</p>
<a
id="link-1805"
href="#"
class="font-semibold rounded underline-offset-2 focus-visible:ring-2 focus-visible:outline-none inline-flex items-center gap-1.5 text-primary-700 dark:text-primary-300 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 hover:underline focus-visible:underline hover:text-primary-800 dark:hover:text-primary-200 mt-4 text-sm"
>
<span>Open summary</span><i aria-hidden="true" class="text-xs fa-solid fa-arrow-right"></i>
</a>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
Link card
The whole card is one link. The link is the title, and after:absolute after:inset-0 makes it cover the card, so there is one tab stop and one name for a screen reader. The focus ring is drawn around the card with has-focus-visible:.
Documentation
Guides and references for every component.
Support
Talk to the team about a problem.
<div
id="card-1545"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5 relative transition-shadow group hover:shadow-md has-focus-visible:ring-2 has-focus-visible:ring-primary-500 dark:has-focus-visible:ring-primary-400"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<span
aria-hidden="true"
class="flex items-center justify-center size-10 text-primary-800 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50 rounded-lg"
>
<i class="fa-solid fa-book-open"> </i>
</span>
<h3 class="mt-4 text-base font-semibold text-dominant-900 dark:text-white">
<a href="#" class="after:absolute after:inset-0 focus-visible:outline-none">Documentation</a>
</h3>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
Guides and references for every component.
</p>
<i
aria-hidden="true"
class="absolute top-5 right-5 text-xs text-dominant-600 dark:text-dominant-300 transition-transform fa-solid fa-arrow-right group-hover:translate-x-0.5"
>
</i>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-1672"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5 relative transition-shadow group hover:shadow-md has-focus-visible:ring-2 has-focus-visible:ring-primary-500 dark:has-focus-visible:ring-primary-400"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<span
aria-hidden="true"
class="flex items-center justify-center size-10 text-primary-800 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50 rounded-lg"
>
<i class="fa-solid fa-life-ring"> </i>
</span>
<h3 class="mt-4 text-base font-semibold text-dominant-900 dark:text-white">
<a href="#" class="after:absolute after:inset-0 focus-visible:outline-none">Support</a>
</h3>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
Talk to the team about a problem.
</p>
<i
aria-hidden="true"
class="absolute top-5 right-5 text-xs text-dominant-600 dark:text-dominant-300 transition-transform fa-solid fa-arrow-right group-hover:translate-x-0.5"
>
</i>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
Stat
A number with a label and a change. The arrow is not enough to tell up from down, so the text also has a plus or minus sign.
Total orders
1,284
+12.5%Compared with last month
Refunds
42
−3.1%Compared with last month
<div
id="card-1546"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<p class="text-sm font-medium text-dominant-600 dark:text-dominant-300">Total orders</p>
<div class="flex items-end justify-between gap-3 mt-2">
<p class="text-3xl font-bold tracking-tight text-dominant-900 dark:text-white">1,284</p>
<span
id="badge-1625"
class="inline-flex items-center gap-1.5 rounded-full font-semibold bg-success-100 dark:bg-success-900/50 text-success-800 dark:text-success-300 px-2 py-0.5 text-xs"
>
<i aria-hidden="true" class="fa-solid fa-arrow-up"> </i>
<span>+12.5%</span>
</span>
</div>
<p class="mt-2 text-xs text-dominant-600 dark:text-dominant-300">Compared with last month</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
<div
id="card-1707"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<p class="text-sm font-medium text-dominant-600 dark:text-dominant-300">Refunds</p>
<div class="flex items-end justify-between gap-3 mt-2">
<p class="text-3xl font-bold tracking-tight text-dominant-900 dark:text-white">42</p>
<span
id="badge-1759"
class="inline-flex items-center gap-1.5 rounded-full font-semibold bg-danger-100 dark:bg-danger-900/50 text-danger-800 dark:text-danger-300 px-2 py-0.5 text-xs"
>
<i aria-hidden="true" class="fa-solid fa-arrow-down"> </i>
<span>−3.1%</span>
</span>
</div>
<p class="mt-2 text-xs text-dominant-600 dark:text-dominant-300">Compared with last month</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
Profile
An avatar, a name, a role and two actions. The two buttons share the width with flex-1.
Alex Morgan
Product designer
<div
id="card-1547"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5 text-center"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<span
role="img"
aria-label="Alex Morgan"
class="inline-flex shrink-0 items-center justify-center mx-auto size-16 text-xl font-semibold text-primary-800 dark:text-primary-300 bg-primary-100 dark:bg-primary-900/50 rounded-full"
>AM</span
>
<h3 class="mt-3 text-base font-semibold text-dominant-900 dark:text-white">Alex Morgan</h3>
<p class="text-sm text-dominant-600 dark:text-dominant-300">Product designer</p>
<div class="flex gap-2 mt-4">
<button
id="button-1632"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 inset-ring inset-ring-dominant-300 dark:inset-ring-dominant-600 bg-white dark:bg-dominant-800 text-dominant-700 dark:text-dominant-200 dark:shadow-none shadow-sm not-disabled:hover:bg-dominant-100 dark:not-disabled:hover:bg-dominant-700 not-disabled:hover:text-dominant-900 dark:not-disabled:hover:text-white not-disabled:active:bg-dominant-200 dark:not-disabled:active:bg-dominant-600 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm in-[.button-group-extra-small]:gap-1.5 in-[.button-group-extra-small]:px-2.5 in-[.button-group-extra-small]:py-1 in-[.button-group-extra-small]:text-xs in-[.button-group-small]:gap-1.5 in-[.button-group-small]:px-3 in-[.button-group-small]:py-1.5 in-[.button-group-small]:text-sm in-[.button-group-large]:gap-2 in-[.button-group-large]:px-5 in-[.button-group-large]:py-3 in-[.button-group-large]:text-base in-[.button-group-extra-large]:gap-2.5 in-[.button-group-extra-large]:px-6 in-[.button-group-extra-large]:py-3.5 in-[.button-group-extra-large]:text-lg flex-1"
>
<span>Message</span>
</button>
<button
id="button-1690"
type="button"
class="cursor-pointer transition-colors inline-flex items-center justify-center rounded-lg font-semibold group peer focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:focus-visible:ring-offset-dominant-950 bg-primary-600 text-white shadow-sm not-disabled:hover:bg-primary-700 not-disabled:active:bg-primary-800 focus-visible:ring-primary-700 dark:focus-visible:ring-primary-400 gap-2 px-4 py-2.5 text-sm in-[.button-group-extra-small]:gap-1.5 in-[.button-group-extra-small]:px-2.5 in-[.button-group-extra-small]:py-1 in-[.button-group-extra-small]:text-xs in-[.button-group-small]:gap-1.5 in-[.button-group-small]:px-3 in-[.button-group-small]:py-1.5 in-[.button-group-small]:text-sm in-[.button-group-large]:gap-2 in-[.button-group-large]:px-5 in-[.button-group-large]:py-3 in-[.button-group-large]:text-base in-[.button-group-extra-large]:gap-2.5 in-[.button-group-extra-large]:px-6 in-[.button-group-extra-large]:py-3.5 in-[.button-group-extra-large]:text-lg flex-1"
>
<span>Follow</span>
</button>
</div>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</div>
Semantic elements
Cards render a div by default. Set as="section" for a named section or as="main" for the page's main content. Do not nest a main element inside another main. Use appearance="unstyled" with your own surface classes when the standard appearances do not fit.
Project details
A named section rendered as a card.
<section
id="card-1541"
class="rounded-xl border border-dominant-200 dark:border-dominant-800 bg-white dark:bg-dominant-900 shadow-sm p-5"
aria-labelledby="cards-semantic-example-title"
>
<div
data-card-header
class="flex items-center justify-between gap-3 px-5 py-4 border-b empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
<h3
id="cards-semantic-example-title"
class="text-base font-semibold text-dominant-900 dark:text-white"
>
Project details
</h3>
<p class="mt-1 text-sm text-dominant-600 dark:text-dominant-300">
A named section rendered as a card.
</p>
<div
data-card-footer
class="flex flex-wrap items-center justify-end gap-3 px-5 py-4 border-t empty:hidden border-dominant-200 dark:border-dominant-800"
></div>
</section>