4.2.0
Core

Card

A bounded surface holding one subject, raised by a 1px border rather than a shadow.

Default

The whole family in one surface: an eyebrow, a title and a description in the header, then the content and a footer for whatever the reader does about it. Elevation is the 1px border and the fill — there is no shadow to reach for, here or anywhere.

Environment

Production

Last deploy 14 minutes ago, 3 pending changes.

Three services, all healthy. The last rollout finished in 1m 12s with no failed checks.

Usage

import {
  Card,
  CardAction,
  CardContent,
  CardDescription,
  CardEyebrow,
  CardFooter,
  CardHeader,
  CardTitle,
} from '@oceanic-hub/brand-system'
<Card>
  <CardHeader>
    <CardEyebrow>…</CardEyebrow>
    <CardTitle>…</CardTitle>
    <CardDescription>…</CardDescription>
  </CardHeader>
  <CardContent>…</CardContent>
  <CardFooter>…</CardFooter>
</Card>

Composition

Use the following composition to build a Card:

Card
├── CardHeader
│   ├── CardEyebrow
│   ├── CardTitle
│   ├── CardDescription
│   └── CardAction
├── CardContent
└── CardFooter

Reach for a card when a surface holds ONE thing a reader can act on — an environment, an invoice, a run — and the boundary is what says where that thing ends. When every item on screen carries the same fields, a card grid is the wrong shape: rows under one header are a DataTable, and rows that differ from one another are Items. A card containing only a label and a number wanted KPIStat.

Compose the header from CardEyebrow / CardTitle / CardDescription rather than styling your own text. The eyebrow is Figtree and that is what makes a grid of cards read as one system instead of eight surfaces that happen to have borders.

There is no shadow, no size and no spacing variable, and none of the three is an oversight. Elevation is the 1px border plus a surface shift (core-layer.md § Elevation is a border), so elevated is a fill rather than a lift — nothing on this page rises off the page. The shift is real in BOTH themes: the grounds climb app → surface → elevated whichever way the canvas points, ending on pure white in light. They used to end on white TWICE, which made variant="elevated" a no-op in the light theme; @OCE-1874 fixed it by stepping surface down a rung rather than elevated, because elevated is also the fill of every floating surface and has to stay clear of the app ground beneath it. Upstream's Base UI generation reaches for size="sm" and a --card-spacing custom property to make a card denser; padding is the only thing either changes, so here density is className on the part that needs it, one section below. A caller who wants 12px gets 12px rather than the nearest preset.

There is no CardImage either. Media is an ordinary child, so the aspect ratio stays with the surface that knows it — a 16:9 thumbnail and a square avatar do not want the same slot. Pinned as a refusal in card.contract.test-d.ts.

RTL is not supported — recorded in pairings.json under direction: nothing in this package has been laid out or measured right-to-left, and upstream ships an RTL example.

With a header action

CardAction puts a control on the header row. Before it, one landed under the description.

Monthly cap

Resets on the first of each month.

The header is a single column until a CardAction is present, so the description stays under the title rather than beside it.

variant="featured" adds a 1px brand top-rule — the one decorative accent a card may carry. Reach for it to mark exactly ONE card in a set as the current or recommended choice; the rule only reads as a mark next to cards that do not have it, so a grid where three are featured has marked none. It is the brand role — a job, not a hue — and it follows the theme, which is what a card marked in one accent and read in two themes needs it to do.

Plan

Starter

One environment, one seat.

€0

Recommended

Team

Unlimited environments, five seats.

€49

Plan

Scale

SSO, audit log, a support channel.

€199

Elevated

variant="elevated" swaps the fill for the raised surface, for a card sitting INSIDE another surface — a panel, a drawer, a sunken well — where the default fill would disappear into its background. It is a FILL and not a lift: nothing rises off the page, because elevation here is a border. The two cards below separate by fill in BOTH themes, which they did not always do: surface and elevated were the same pure white in light, so this variant was a no-op there. Fixed in @OCE-1874 by stepping surface down a rung and leaving elevated on white — the top of the ramp, because elevated is also the fill of every floating surface and has to stay clear of the app ground beneath it. The grounds now climb in one direction in both themes.

Default

The card surface.

On a sunken well the border is doing most of the separating.

Elevated

The raised surface.

The fill steps up in both themes now, so the card separates without a heavier line.

Eyebrow

CardEyebrow is Oceanic's own part and it is a classifier, not a subtitle: DM Mono, uppercase, tracked, above the title. It exists because a grid of cards is only scannable when every card says what KIND of thing it is in the same voice, and hand-styled category text drifts one card at a time. Leave it out when there is a single card and no kind to distinguish — an eyebrow reading DETAILS is furniture.

Environment

Production

eu-west-1 · 3 services

Integration

GitHub

Connected 4 months ago

Budget

Monthly cap

€480 of €600 used

Compact

Density is className on the part that needs it — p-4 where the default is p-6 — rather than an axis on the root. Reach for it when cards stack in a sidebar or a list instead of spreading across a grid. Upstream spells this size="sm" plus a --card-spacing custom property, both from its Base UI generation; padding is the only thing either changes, so here the component keeps one shape and the caller picks the number.

Build 4823

14:02

Deployed to production in 1m 12s.

Build 4822

11:47

Reverted — migration timed out.

Build 4821

09:20

Deployed to staging in 58s.

With media

Media is an ordinary child rather than a CardImage part, so the aspect ratio stays with the surface that knows it: a 16:9 thumbnail and a square avatar do not want the same slot. It sits above the header, and clipping it to the card's radius is overflow-hidden on the root — the one thing the caller has to remember, and the reason upstream's dedicated part is tempting.

Snapshot

Latency, last 24 hours

p95 held under 180ms through the 14:02 deploy.

API Reference

See the Card API page for every prop of every part, with types, defaults and the contract that pins them.

On this page