Components

Card

Groups one subject (a project, a note, a summary) on a bounded surface.

Overview

When to use

  • To present one subject with a title, supporting text and at most one action.
  • Where a bounded surface helps the eye separate neighbouring subjects.

When not to use

  • To wrap every block of content: whitespace and alignment usually group better.
  • For long reading text; use the page layout instead.

Used on the portfolio: Project panels in Selected Work (cinematic) · System Anatomy component plane. In the project panels, an overlay card keeps an opaque background whatever the surface variant, so text stays legible over imagery.

Preview and properties

03 / 04 · Product Design

Scalable SaaS Admin System

A scalable admin system designed to handle complex workflows with clarity and control.

System property

The system surface is "…" (change it in System Studio). An instance can override it.

Surfacesystem

Component properties

Paddingcomponent
Astro
<Card>
  <p class="card__eyebrow label">03 / 04 · Product Design</p>
  <h3 class="card__title">Scalable SaaS Admin System</h3>
  <p class="card__body">A scalable admin system designed to handle complex workflows with clarity and control.</p>
  <Fragment slot="actions"><Button hierarchy="secondary">View on Behance</Button></Fragment>
</Card>
Rendered HTML
<div class="card" data-component="card" data-padding="md">
  <div class="card__content" data-part="content">
    <p class="card__eyebrow label" data-part="eyebrow">03 / 04 · Product Design</p>
    <h3 class="card__title" data-part="title">Scalable SaaS Admin System</h3>
    <p class="card__body" data-part="body">A scalable admin system designed to handle complex workflows with clarity and control.</p>
    <div class="card__actions" data-part="actions">
      <button class="btn" data-component="button" data-hierarchy="secondary" data-size="sm" type="button">
        <span class="btn__label" data-part="label">View on Behance</span>
        <svg class="icon" data-part="icon-trailing" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">
          <path d="M7 7h10v10"/>
          <path d="M7 17 17 7"/>
        </svg>
      </button>
    </div>
  </div>
</div>

Surface variants

Five surfaces, set system-wide (Studio, data-card) or per instance (data-variant): raised (shadow), outlined (strong border), flat (layer fill), offset (thick border with a hard shadow) and minimal (no box, a single rule on top). All rendered by the real component:

raised

Card title

Supporting text for one subject.

outlined

Card title

Supporting text for one subject.

flat

Card title

Supporting text for one subject.

offset

Card title

Supporting text for one subject.

minimal

Card title

Supporting text for one subject.

Padding

padding sm

Card title

padding md

Card title

padding lg

Card title

Anatomy

01 / 04 · Product Design

Onin: AI-Native UX Review Platform

An AI-assisted UX review platform designed around calm intelligence and human-guided decision making.

  1. 1Container. Surface, border, radius and shadow come from card tokens.
  2. 2Media. Optional; decorative unless it carries information.
  3. 3Eyebrow. Optional category or position label in the mono face.
  4. 4Title. A heading. The level is chosen by context, never by size.
  5. 5Body. Short supporting text.
  6. 6Actions. Zero or one primary action, using the shared Button.

Tokens

Component tokenReferencesResolved (dark)Resolved (light)
{color.bg.raised}#252525#F6F5F3
{color.border.subtle}#EAE9E724#0C0C0C24
{elevation.raised}0px 8px 24px -8px #000000520px 8px 24px -8px #00000052
{radius.media}0px0px
{space.stack.md}calc(24px * 1)calc(24px * 1)
{space.stack.sm}calc(16px * 1)calc(16px * 1)
{space.stack.md}calc(24px * 1)calc(24px * 1)
{space.stack.lg}calc(48px * 1)calc(48px * 1)
{prim.motion.distance.xs}8px8px
{border.width.hairline}1px1px
{color.border.subtle}#EAE9E724#0C0C0C24

Guidelines

Do

  • Keep one subject per card.
  • Put the action at the end, in a consistent place.
  • Choose the surface system-wide so cards stay consistent.

Do not

  • Nest cards inside cards.
  • Make the whole card clickable and also add a separate link to the same place.
  • Rely on the outlined surface over images: it is transparent.

Accessibility

TopicBehaviour
SemanticsA card is a grouping, not a role. Give it a heading; use article or a list item when the context calls for it.
KeyboardA card is not focusable by itself. Interactive content inside it (the action) is. The interactive hover lift is a visual hint only.
ContrastText uses color.text.primary and color.text.secondary on the raised, layer and page surfaces, all validated at 4.5:1 in both themes.
MotionThe hover lift scales with motion intensity and is zero in reduced motion.

Code and API

PropertyTypeDefaultScopeDescription
variant'inherit' | 'raised' | 'outlined' | 'flat''inherit'systemDefaults to the system surface; an instance may override it.
padding'sm' | 'md' | 'lg''md'componentInner spacing from the card padding tokens (scaled by density).
interactivebooleanfalsecomponentAdds the hover lift. Only for single-target cards.
slotsmedia · default · actions—componentComposition points; parts carry data-part.
Astro
import Card from '../components/ui/Card.astro';
import Button from '../components/ui/Button.astro';

<Card variant="outlined" padding="lg">
  <p class="card__eyebrow label">01 / 04</p>
  <h3 class="card__title">Onin</h3>
  <p class="card__body">AI-assisted UX review platform.</p>
  <Button slot="actions" size="sm" hierarchy="secondary">View on Behance</Button>
</Card>

The Card is implemented, but on the portfolio it renders only as the overlay panel in the cinematic project scenes; the index layout intentionally shows plain text. The component is shared, not duplicated.

Beyond Design System v0.4.0Human-led. AI-assisted. System-driven.