Browse Components

Cards

A themed surface with consistent spacing.

Basic

A card groups related content. Use article for a standalone item and choose the heading level for its surrounding page.

Your workspace

A place for your next idea.

A flexible surface for content, actions, or a project summary.

View Code
HTML
<article class="panel stack">
  <p class="eyebrow">
    Your workspace
  </p>
  <h2>
    A place for your next idea.
  </h2>
  <p class="muted">
    A flexible surface for content, actions, or a project summary.
  </p>
</article>

Header, content, and footer

Native header and footer organize the content. Stack owns the gaps; panel owns the padding. Links remain real navigation.

View Code
HTML
<article class="panel stack">
  <header class="stack">
    <p class="eyebrow">
      Project notes
    </p>
    <h2>
      A clearer starting point.
    </h2>
    <p class="muted">
      Everything your team needs to begin.
    </p>
  </header>
  <p>
    Keep the brief, decisions, and next steps together in a focused space.
  </p>
  <footer class="cluster">
    <a href="/docs">
      Read the Introduction
    </a>
    <a href="/docs/ai">
      Open the AI Guide
    </a>
  </footer>
</article>

Density

Set --space on the card to coordinate its padding and stack gaps. Default is 24px; compact is 16px. Avoid outward margins on the first and last children.

Compact

A smaller inset for concise content.

Comfortable

Room for a description and supporting details.

View Code
HTML
<div class="grid">
  <article class="panel stack" style="--space:1rem">
    <h2>
      Compact
    </h2>
    <p class="muted">
      A smaller inset for concise content.
    </p>
  </article>
  <article class="panel stack">
    <h2>
      Comfortable
    </h2>
    <p class="muted">
      Room for a description and supporting details.
    </p>
  </article>
</div>

Aligned collections

The grid adapts to available space. An automatic footer margin aligns links without fixing card height or clipping text.

Layout principles

Use shared grids and spacing to keep related content together and give each section room to breathe.

View Code
HTML
<div class="grid">
  <article class="panel stack">
    <h2>
      Design basics
    </h2>
    <p class="muted">
      Build a consistent visual foundation.
    </p>
    <footer style="margin-block-start:auto">
      <a href="/docs/type">
        Explore Typography
      </a>
    </footer>
  </article>
  <article class="panel stack">
    <h2>
      Layout principles
    </h2>
    <p class="muted">
      Use shared grids and spacing to keep related content together and give each section room to breathe.
    </p>
    <footer style="margin-block-start:auto">
      <a href="/docs/grid">
        Explore Layout
      </a>
    </footer>
  </article>
</div>

Long content

Long words and translated content wrap inside the card. Keep content-driven heights and avoid overflow:hidden, which can clip focus rings.

A longer project title with room to grow

Reference: editorial_workspace_documentation_review_2026

View Code
HTML
<article class="panel stack" style="max-inline-size:18rem">
  <h2>
    A longer project title with room to grow
  </h2>
  <p class="muted">
    Reference: editorial_workspace_documentation_review_2026
  </p>
</article>

Right-to-left

Native layout follows the reading direction. Set the language and direction; translate the content yourself.

סביבת העבודה

מקום לרעיון הבא שלכם

רכזו רעיונות וצעדים הבאים במקום אחד.

View Code
HTML
<article class="panel stack" dir="rtl" lang="he">
  <header class="stack">
    <p class="eyebrow">
      סביבת העבודה
    </p>
    <h2>
      מקום לרעיון הבא שלכם
    </h2>
  </header>
  <p class="muted">
    רכזו רעיונות וצעדים הבאים במקום אחד.
  </p>
</article>

Installation

Download these files into the matching paths in your project, or use Create to assemble a kit. Include each dependency once. Do not also load app.css.

Add to your page
<link rel="stylesheet" href="/library/assets/base.css">
<link rel="stylesheet" href="/library/assets/panel.css">

8,754 bytes CSS including base · 0 bytes runtime JavaScript

Usage

Compose the content

Combine .panel and .stack. Add a heading, body, and optional footer. Use article only when the content stands on its own.

Keep spacing consistent

--space controls padding and gaps: 24px by default, or 16px for a compact card. Let content determine the height.

Add actions and images

Use real links or buttons inside the card. Give images dimensions and appropriate alt text. Static cards do not need hover motion or keyboard focus.

Building with AI? The AI Manifest has these notes and the full contract. See the AI Guide.