Skip to content
OAIT Design System

Design system / Components

Card

A rounded surface that groups the content and actions about one subject: a status, a summary, a record, a job, an app, a task.

When to use

  • One subject with a title and a little text, shown beside its peers or on its own: a security status, a sign-in summary, a job, a person's summary, an app, or a task tile (D-CSN-01).
  • A whole card that opens one place (a job, a task, an app): give its title a stretched link (D-CSN-04).
  • Something not built yet, or nothing found: the dashed placeholder (D-CSN-06).
  • The sign-in, register, and contact forms: the floating form card (D-ARC-15, C-8).

Pick the variant by role (D-CSN-01, D-ARC-09, canonical §10.10):

Variant Use for
Outlined (default) Any standalone card, on the page or in a panel
Filled Grouping inside a white surface (a box in a dialog, a sheet, or another card); quiet tile grids
Elevated The one focal card of a view
Tonal Action and category tiles (Global ID's Home tasks, Games' rewards, Tamakkan's discovery cards)
Dashed Coming soon, nothing found
Floating Sign-in, register, and contact forms

When not to use

Situation Use instead
A section-sized surface (hero, "How it works", the dark call-to-action band) Panel
Short items of one kind, one after another: settings, recent activity, members List rows in a list card, not a stack of cards
Data in columns, sorting, selection Data table
Choosing one option in a form Choice card: a card that navigates is a link card, never a choice card
A marketing service or feature with a pastel tile Feature card, built on this card
A number or a KPI Stat tile
A message about the page or a form Banner
A setting that opens a one-field edit A list row with a chevron
A job, an ID card, a booth, or a result The product components: job card, ID card, game tiles, result card

Never make a card-sized <a>, a clickable div, or a <button> that wraps a whole card (D-CAI-01, D-CSN-04).

Anatomy

  1. Container .oa-card: the 24px card shape, a 1px edge (transparent when no line shows), padding 20px, 24px from 640px.
  2. Media or icon tile (optional): .oa-tile, or an image in rounded-box corners nested 8px inside.
  3. Header .oa-card__header (optional): a row of an avatar or tile, the heading .oa-card__heading (title and meta, 8px apart), and raised actions at the inline end.
  4. Title .oa-card__title: a heading in title-md.
  5. Body .oa-card__body: body-lg in on-surface-variant, 8px under the title.
  6. Meta .oa-card__meta: facts in body-md on-surface-variant ("Mount Lebanon, Lebanon · Full-time · Hybrid").
  7. Footer .oa-card__footer (optional): after a 1px outline-variant hairline, 16px above its content; it stays at the foot of a card stretched by its grid row.
  8. Stretched title link (clickable cards): .oa-title-link.oa-title-link--stretched on the title's <a>; its ::after covers the card (Link).
  9. Raised actions .oa-card__actions: every control other than the title link (save, more, a button row), above the stretched link.

Blocks sit 16px apart (--space-stack); a title and the body or meta right after it, 8px (--space-stack-tight) (D-CSN-03, D-ARC-25).

Variants

Variant Class Use for Key tokens
Outlined (default) oa-card (--outlined states it) Standalone cards --color-card-outlined-container (white; the page color in dark), 1px --color-outline-variant
Filled oa-card oa-card--filled Grouping inside a white surface; quiet grids; never on a filled panel --color-surface-container-low, transparent edge
Elevated oa-card oa-card--elevated The one focal card of a view --color-card-elevated-container, --shadow-elevation-1, transparent edge
Tonal oa-card oa-card--tonal + --peach, --lavender, --mint, or --sand Action and category tiles; --tonal alone is peach --color-pastel-<hue>, --color-on-pastel-<hue>, transparent edge
Dashed oa-card oa-card--dashed Coming soon, nothing found 1px dashed --color-outline-variant, transparent fill
Floating oa-card oa-card--floating Sign-in, register, contact --radius-sheet, --color-card-elevated-container, --shadow-elevation-1, --container-form
  • Card art, ID cards, and passport cards are not UI cards: they take shadow-art and their own geometry (ID card, passport card); a UI card never takes shadow-art (canonical §6.1).
  • Tonal hues cycle peach → lavender → mint → sand in reading order, so neighbors never match. A pastel never carries a status on its own (canonical §2.11, D-COL-17).
  • In light, the filled card's surface-container-low is one step from the page color: it reads inside a white surface or in a grid of its own kind, which is where it belongs (D-CSN-01).

Icon tile

A square (or a disc) that holds one icon, about half its size; tiles are decoration beside words, so they are aria-hidden (canonical §4.7, §5.3; D-CSN-05, D-ARC-23).

Tile Class Size Corner Icon
sm oa-tile oa-tile--sm --size-tile-sm 40px --radius-12px --size-icon-md 20px
md (default) oa-tile (--md states it) --size-tile-md 48px --radius-box 16px --size-icon-lg 24px
lg oa-tile oa-tile--lg --size-tile-lg 56px --radius-box 16px --size-icon-xl 28px
xl oa-tile oa-tile--xl --size-tile-xl 64px --radius-24px --size-icon-2xl 32px
2xl oa-tile oa-tile--2xl --size-tile-2xl 80px --radius-24px --size-icon-3xl 40px
Round add oa-tile--round any --radius-full as its size
Tone Class Fill / icon Use
Neutral (default) oa-tile --color-surface-container-high / --color-on-surface-variant Quiet tiles, "plain" activity
Pastel --peach, --lavender, --mint, --sand --color-pastel-* / --color-on-pastel-* Feature cards and category tiles, cycling in that order
Status --success, --warning, --info, --error the status container / its on-color Activity discs in list rows ("Mobile number changed"), always beside the words

The tile sets its icon's size; icons inside tonal tiles take FILL 1 (oa-icon--filled) (canonical §8.2). The empty-state disc (tile-xl on secondary-container) belongs to the empty state; step discs to the steps row.

Sizes

Size Height Padding Type style Icon size
Card, every variant but floating Its content's; cards in one grid row stretch to the tallest 20px (--space-card), 24px from 640px (--space-card-medium); a card holding a list has no inline padding (list card) title title-md 18/24 700; body body-lg 16/24; meta and footer body-md 14/20 28px (icon-xl) on tonal tiles' top icon; tiles as in the table above
Floating form card Its content's 40px 20px, 40px from 640px; at most 460px wide (--container-form); blocks 24px apart (--space-stack-loose) its title headline-md (the page's h1 on sign-in pages) 20px in its 56px button

There is no compact card padding in any density (D-ARC-25). One radius at every breakpoint: 24px (--radius-card), 28px for the floating card (--radius-sheet) (D-SEM-02, D-ARC-15).

Tokens

Part Property Token
Container background --color-card-outlined-container; filled --color-surface-container-low; elevated and floating --color-card-elevated-container; tonal --color-pastel-<hue>; dashed transparent
Container text --color-on-surface; tonal --color-on-pastel-<hue>
Container edge 1px --color-outline-variant (dashed on the placeholder); transparent on filled, elevated, tonal, floating
Container corner --radius-card (24px); floating --radius-sheet (28px)
Container shadow none; elevated and floating --shadow-elevation-1
Container padding --space-card → --space-card-medium from 640px; floating --space-10 / --space-5
Container block gap --space-stack (16px); floating --space-stack-loose (24px)
Title type --text-title-md with its line height, letter spacing, and weight
Body type, color --text-body-lg, --color-on-surface-variant
Meta, footer type, color --text-body-md, --color-on-surface-variant
Title to body or meta gap --space-stack-tight (8px)
Footer rule, top padding 1px --color-outline-variant, --space-stack
Raised actions layer --z-raised (10)
Clickable, hover shadow, edge --shadow-elevation-3, --color-outline
Clickable, pressed layer currentColor at --opacity-state-pressed (0.12)
Clickable transition box-shadow, border-color over --duration-short-3 with --ease-standard
Focus (on the link's ::after) ring --size-focus-ring solid --color-focus-ring, offset --size-focus-offset, corner --radius-card

States

State What changes
Enabled The variant at rest. Outlined and filled cards never carry a shadow at rest (canonical §6.1).
Hover (clickable, under (hover: hover)) shadow-elevation-3 and an outline edge, over duration-short-3 with ease-standard; the title underlines. The card never moves, lifts, or scales (D-ARC-16, D-SEM-15, C-1).
Focus-visible The family ring (3px focus-ring, 2px outside) on the title link's ::after, so it follows the card's 24px corners; inside an inverse panel the ring is inverse-primary (D-COL-20).
Pressed The 12% layer of the content color (--opacity-state-pressed) over the card, shown at once (canonical §7.2).
Disabled Not used: a card that cannot be opened is not a link. Remove the link and say why in the card.
Selected Not used: choosing is a choice card.
Loading Skeleton blocks in the card's final layout; the region has aria-busy="true" and one hidden "Loading {thing}…".
Error Not a card state: a banner inside or above the card says what went wrong.

Hover and pressed apply only while the stretched link itself is hovered or pressed; a raised control (save, more) has its own layer.

Behavior

  • One link. A clickable card has one link: the title's <a class="oa-title-link oa-title-link--stretched">, whose ::after covers the card (the card is the positioned box). Every other control sits in .oa-card__actions, raised with z-index: var(--z-raised), with its own name. Never nest a link in a link or a button (D-CSN-04, D-ARC-26).
  • Text selection inside a clickable card's body is covered by the link; accepted (D-CSN-04).
  • Grids. Cards sit in the card grid: one column, two from 640px, three from 1024px, 16px apart (.oa-grid; grid gap-grid sm:grid-cols-2 lg:grid-cols-3); no auto-fit grids. Cards in a row share the row's height and their footers line up at the bottom (canonical §4.4, D-LAY-07).
  • Blocks. Buttons and chips go in .oa-card__actions or a block wrapper, so the card's column never stretches them to its full width.
  • Nesting. Something nested inside a card takes the nested-corner rule: inner radius = outer − gap, rounded down to a step, at least 4px (an image 8px inside a card: rounded-box). A child flush with the card's edge has no radius; the card clips it (D-SEM-05).
  • Motion. Only box-shadow and border-color transition, over duration-short-3 ease-standard; the pressed layer shows at once. Under reduced motion they change instantly (canonical §7.7).
  • Responsive. Padding 20px below 640px, 24px from 640px. The floating card is full width up to 460px, padded 40px 20px, then 40px.

Accessibility

  • Element. article for a self-contained item in a feed or a grid (a job, a post); section with aria-labelledby the title only when the card is a region worth a landmark; otherwise a div. The title is a heading one level under its section's heading.
  • Name. A clickable card's accessible name is its link text: the title. Keep it short and unique on the page ("Frontend Developer (React)"). Raised controls name their item: "Save job: Frontend Developer (React)" (D-CSN-04).
  • Keyboard. Tab reaches the title link (Enter opens it), then the raised controls in DOM order. DOM order equals visual order.
  • Focus. The ring is never removed; the link's own outline turns transparent and the ::after draws it around the card (Link).
  • Targets. The whole card is the link's target; raised icon buttons are 48px.
  • Contrast. Body and meta in on-surface-variant reach 7.2:1 or more in light and 5.4:1 or more in dark on every card container and pastel; primary-ink links reach 5.45:1 or more (canonical §2.13, contrast report).
  • Status. Status inside a card is a status chip with an icon and words, never a colored card (canonical §2.3).
  • Forced colors. Every variant keeps a 1px border, transparent when no line shows, so its edge survives; the dashed edge stays dashed (D-SEM-10).
  • Reduced motion. Nothing transitions.

RTL and languages

  • Logical properties throughout: the header's actions sit at the inline end, the footer starts at the inline start; directional icons (arrow_forward, chevron_right) take oa-icon--mirror (canonical §8.3).
  • Arabic titles use the :lang(ar) line height of title-md (1.75) from the tokens; no uppercase, no tracking (D-TYP-14).
  • Latin user content inside an Arabic card (job titles, company names) carries lang="en" and dir="auto"; money and numbers sit in <bdi dir="ltr"> ("1,200–1,800 US$ في الشهر"); aria-label strings put U+2066 … U+2069 around Latin runs (canonical §14.2).
  • French runs about 26% longer, up to 32% for short labels: titles wrap (text-wrap: balance), never truncate; check every card at 360px (D-TYP-15).

Content

  • Title: a noun phrase or the item's name, sentence case, no full stop: "Show my ID", "Security", "Events and registration". A title that opens the card names where it goes; user content keeps its own case ("Frontend Developer (React)").
  • Body: one or two sentences with a full stop ("All good. Nothing needs your attention."), or a short hint without one ("For gates, the library, and exams").
  • Meta: facts joined by " · " ("Mount Lebanon, Lebanon · Full-time · Hybrid"); money with its ISO code and an en dash for the range ("US$1,200–1,800 per month"); an ID in mono code-sm, isolated left to right ("Student · GU-25-000123") (canonical §3.5, §12.2, §14.3).
  • Who it is for: product and service cards say who can use them ("For students, staff, and guests.") (canonical §12.5).
  • Placeholder: "Coming soon" as a warning status chip, one sentence, no date unless committed, no action; a built feature never stays "Coming soon" (D-BCP-23).
  • Samples: anything that could pass for real says so ("Byblos Digital Studio (Demo)").
  • Arabic (from oait): title "أكاديمية الذكاء الاصطناعي", body "ندوات عبر الإنترنت، وورش عمل تطبيقية، والدبلوم المهني في الذكاء الاصطناعي التطبيقي.", footer "الفئة: أعضاء هيئة التدريس والموظفون والمهنيون".

Do and don't

Do Don't
One stretched title link per card; save and more raised above it. Wrap a card in one big <a>, or put a link inside a link.
Hover with shadow-elevation-3 and the outline edge. Lift, scale, wiggle the tile, or swap the background on hover (retired: oait's 4px lift, Tamakkan's scale(.985)).
Use the outlined card by default. Put a filled card on a filled panel, or a shadow on an outlined card at rest.
Keep one corner: 24px (28px for the floating card). Use 12, 16, 18, 20, 22, or 28px corners on cards (retired).
Say a status in a chip with words. Color a whole card to mean "error" or "done".
Let cards in a grid share the row height. Use auto-fit grids or squeeze four cards into a phone row.

Code

HTML (reference CSS)

Outlined (default), with a footer:

<article class="oa-card">
  <h3 class="oa-card__title">You’re well protected</h3>
  <p class="oa-card__body">All good. Nothing needs your attention.</p>
  <div class="oa-card__footer">
    <a class="oa-link oa-link--standalone" href="#ct-security-check"><span class="oa-link__label">Run a quick security check</span><span class="oa-icon oa-icon--sm oa-icon--mirror oa-link__icon" aria-hidden="true" translate="no">arrow_forward</span></a>
  </div>
</article>

Clickable, with a raised control. The title link is Link's oa-title-link--stretched:

<article class="oa-card">
  <div class="oa-card__header">
    <div class="oa-card__heading">
      <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-job-frontend">Frontend Developer (React)</a></h3>
      <p class="oa-card__meta">Byblos Digital Studio (Demo)</p>
    </div>
    <div class="oa-card__actions">
      <button class="oa-icon-btn" type="button" aria-pressed="false" aria-label="Save job: Frontend Developer (React)"><span class="oa-icon" aria-hidden="true" translate="no">bookmark</span></button>
    </div>
  </div>
  <p class="oa-card__body">Mount Lebanon, Lebanon · Full-time · Hybrid</p>
  <p class="oa-card__meta">US$1,200–1,800 per month</p>
</article>

Tonal task tiles in Global ID Home's order, each a clickable card; the hues follow the cycle by position:

<div class="oa-card oa-card--tonal oa-card--peach">
  <span class="oa-icon oa-icon--xl oa-icon--filled" aria-hidden="true" translate="no">badge</span>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-my-id">Show my ID</a></h3>
  <p class="oa-card__body">For gates, the library, and exams</p>
</div>
<div class="oa-card oa-card--tonal oa-card--lavender">
  <span class="oa-icon oa-icon--xl oa-icon--filled" aria-hidden="true" translate="no">edit</span>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-details">Update my details</a></h3>
  <p class="oa-card__body">Phone, address, and emergency contact</p>
</div>
<div class="oa-card oa-card--tonal oa-card--mint">
  <span class="oa-icon oa-icon--xl oa-icon--filled" aria-hidden="true" translate="no">verified_user</span>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-security">Security</a></h3>
  <p class="oa-card__body">Your sign-in methods, devices, and alerts</p>
</div>
<div class="oa-card oa-card--tonal oa-card--sand">
  <span class="oa-icon oa-icon--xl oa-icon--filled" aria-hidden="true" translate="no">support_agent</span>
  <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-help">Get help</a></h3>
  <p class="oa-card__body">Questions about your ID or signing in</p>
</div>

Filled, elevated, and dashed:

<div class="oa-card oa-card--filled">
  <h3 class="oa-card__title">What happens next</h3>
  <p class="oa-card__body">We email Layla Haddad a one-time setup link. They add a passkey and sign in.</p>
</div>
<div class="oa-card oa-card--elevated">
  <h3 class="oa-card__title">Where would you like to start?</h3>
  <p class="oa-card__body">Start with one. A short briefing is all it takes to find the right first step.</p>
  <div class="oa-card__actions">
    <a class="oa-btn oa-btn--filled" href="#ct-briefing">Book a briefing</a>
  </div>
</div>
<div class="oa-card oa-card--dashed">
  <h3 class="oa-card__title">Events and registration</h3>
  <p class="oa-card__body">Find the university’s events and register with your Global ID.</p>
  <div>
    <span class="oa-status-chip oa-status-chip--warning"><span class="oa-icon oa-status-chip__icon" aria-hidden="true" translate="no">schedule</span>Coming soon</span>
  </div>
</div>

A header with an avatar:

<div class="oa-card">
  <div class="oa-card__header">
    <span class="oa-avatar oa-avatar--md" aria-hidden="true">LH</span>
    <div class="oa-card__heading">
      <h3 class="oa-card__title">Layla Haddad</h3>
      <p class="oa-card__meta">Student · <bdi class="oa-mono oa-text-code-sm" dir="ltr" translate="no">GU-25-000123</bdi></p>
    </div>
  </div>
</div>

Floating form card:

<div class="oa-card oa-card--floating">
  <h3 class="oa-text-headline-md">Sign in with your Global ID</h3>
  <div class="oa-stack oa-stack--tight">
    <button class="oa-btn oa-btn--filled oa-btn--lg oa-btn--wide" type="button"><span class="oa-icon oa-btn__icon" aria-hidden="true" translate="no">fingerprint</span><span class="oa-btn__label">Sign in with face or fingerprint</span></button>
    <p class="oa-card__meta">No password needed. Also called a passkey.</p>
  </div>
  <div class="oa-card__actions">
    <button class="oa-btn oa-btn--text" type="button">Use password instead</button>
  </div>
</div>

Arabic:

<article class="oa-card">
  <h3 class="oa-card__title">أكاديمية الذكاء الاصطناعي</h3>
  <p class="oa-card__body">ندوات عبر الإنترنت، وورش عمل تطبيقية، والدبلوم المهني في الذكاء الاصطناعي التطبيقي.</p>
  <div class="oa-card__footer">الفئة: أعضاء هيئة التدريس والموظفون والمهنيون</div>
</article>
<article class="oa-card">
  <div class="oa-card__header">
    <div class="oa-card__heading">
      <h3 class="oa-card__title"><a class="oa-title-link oa-title-link--stretched" href="#ct-job-frontend-ar" lang="en" dir="auto">Frontend Developer (React)</a></h3>
      <p class="oa-card__meta"><bdi lang="en">Byblos Digital Studio (Demo)</bdi></p>
    </div>
    <div class="oa-card__actions">
      <button class="oa-icon-btn" type="button" aria-pressed="false" aria-label="حفظ الوظيفة: ⁦Frontend Developer (React)⁩"><span class="oa-icon" aria-hidden="true" translate="no">bookmark</span></button>
    </div>
  </div>
  <p class="oa-card__body">جبل لبنان، لبنان · دوام كامل · هجين</p>
  <p class="oa-card__meta"><bdi dir="ltr">1,200–1,800 US$</bdi> في الشهر</p>
</article>

Icon tiles:

<span class="oa-tile oa-tile--sm oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">school</span></span>
<span class="oa-tile oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">school</span></span>
<span class="oa-tile oa-tile--lg oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">school</span></span>
<span class="oa-tile oa-tile--xl oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">school</span></span>
<span class="oa-tile oa-tile--2xl oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">school</span></span>
<span class="oa-tile oa-tile--lg oa-tile--peach" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">badge</span></span>
<span class="oa-tile oa-tile--lg oa-tile--lavender" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">verified_user</span></span>
<span class="oa-tile oa-tile--lg oa-tile--mint" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">support_agent</span></span>
<span class="oa-tile oa-tile--lg oa-tile--sand" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">edit</span></span>
<span class="oa-tile oa-tile--lg" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">help</span></span>
<span class="oa-tile oa-tile--sm oa-tile--round oa-tile--success" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">fingerprint</span></span>
<span class="oa-tile oa-tile--sm oa-tile--round oa-tile--warning" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">call</span></span>
<span class="oa-tile oa-tile--sm oa-tile--round oa-tile--info" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">key</span></span>
<span class="oa-tile oa-tile--sm oa-tile--round oa-tile--error" aria-hidden="true"><span class="oa-icon oa-icon--filled" aria-hidden="true" translate="no">block</span></span>
<span class="oa-tile oa-tile--sm oa-tile--round" aria-hidden="true"><span class="oa-icon oa-icon--filled oa-icon--mirror" aria-hidden="true" translate="no">logout</span></span>

Tailwind CSS v4

<!-- Outlined card (default). Filled: border-transparent bg-surface-container-low. Elevated: border-transparent bg-card-elevated-container shadow-elevation-1.
     Tonal: border-transparent bg-pastel-peach text-on-pastel-peach (lavender, mint, sand). Dashed: border-dashed bg-transparent. -->
<article class="relative isolate flex min-w-0 flex-col gap-stack rounded-card border border-outline-variant bg-card-outlined-container p-card text-on-surface sm:p-card-medium">
  <div class="flex flex-col gap-stack-tight">
    <h3 class="text-title-md text-balance">You’re well protected</h3>
    <p class="text-body-lg text-pretty text-on-surface-variant">All good. Nothing needs your attention.</p>
  </div>
  <div class="mt-auto flex flex-wrap items-center gap-x-4 gap-y-2 border-t border-outline-variant pt-stack text-body-md text-on-surface-variant">…</div>
</article>

<!-- Clickable card: the card hovers and shows the pressed layer; the title link stretches and carries the ring. -->
<article class="relative isolate flex min-w-0 flex-col gap-stack rounded-card border border-outline-variant bg-card-outlined-container p-card text-on-surface transition-[box-shadow,border-color] duration-short-3 ease-standard hover:border-outline hover:shadow-elevation-3 before:absolute before:-inset-px before:-z-1 before:rounded-[inherit] before:bg-current before:opacity-0 has-[a:active]:before:opacity-(--opacity-state-pressed) sm:p-card-medium">
  <div class="flex items-start gap-4">
    <div class="flex min-w-0 flex-1 flex-col gap-stack-tight">
      <h3 class="text-title-md"><a href="/jobs/frontend-developer-react" class="inline-block rounded-8px no-underline underline-offset-4 hover:underline after:absolute after:inset-0 after:rounded-card focus-visible:outline-transparent focus-visible:after:outline-3 focus-visible:after:outline-offset-2 focus-visible:after:outline-focus-ring">Frontend Developer (React)</a></h3>
      <p class="text-body-md text-on-surface-variant">Byblos Digital Studio (Demo)</p>
    </div>
    <div class="relative z-10 ms-auto flex items-center gap-2"><!-- icon button "Save job: Frontend Developer (React)" --></div>
  </div>
</article>

<!-- Floating form card -->
<div class="flex w-full max-w-form flex-col gap-stack-loose rounded-sheet border border-transparent bg-card-elevated-container px-5 py-10 shadow-elevation-1 sm:px-10">…</div>

<!-- Icon tiles: sm size-10 rounded-12px · md size-12 rounded-box · lg size-14 rounded-box · xl size-16 rounded-24px · 2xl size-20 rounded-24px · round rounded-full -->
<span aria-hidden="true" class="inline-flex size-14 shrink-0 items-center justify-center rounded-box bg-pastel-peach text-on-pastel-peach"><!-- Icon 28px, FILL 1 --></span>

hover: in Tailwind v4 already applies only under (hover: hover). Never add motion-safe:hover:-translate-y-1, shadow-sm … shadow-2xl, or rounded-xl (canonical §4.12).

React

Prop Type Default Description
variant "outlined" | "filled" | "elevated" | "tonal" | "dashed" | "floating" "outlined" The card's role.
hue "peach" | "lavender" | "mint" | "sand" "peach" Tonal cards only; cycle in this order.
as "div" | "article" | "section" | "li" "div" section needs aria-labelledby the title.
children ReactNode — CardHeader, CardTitle, CardBody, CardMeta, CardFooter, CardActions.
CardTitle.href string — Makes the card clickable: the title renders the stretched title link.
CardTitle.level 2 | 3 | 4 3 Heading level under the section heading.
CardActions ReactNode — Controls raised above the stretched link, each with its own name.
className string — Layout only (grid placement); never colors, radii, or shadows.
<Card as="article">
  <CardHeader>
    <CardTitle href={`/jobs/${job.slug}`}>{job.title}</CardTitle>
    <CardMeta>{job.company}</CardMeta>
    <CardActions>
      <IconButton icon="bookmark" label={t('saveJob', { title: job.title })} pressed={saved} onClick={toggleSave} />
    </CardActions>
  </CardHeader>
  <CardBody>{[job.place, job.type, job.workplace].join(' · ')}</CardBody>
</Card>

shadcn/ui: Card takes rounded-card border-outline-variant bg-card-outlined-container with no shadow and p-card sm:p-card-medium; CardTitle text-title-md. With shadcn.css loaded, bg-card is already card-outlined-container (canonical §2.12, §3.9; D-ARC-19).