# Cards

**Last updated:** 2026-11-27T01:30:24-03:00 (UTC-3)

Cards and panels are the planes content sits on. In the console and on the site they are the same solid glass tint, steady enough for tables and forms, over a quiet field of light. Part of the [design system](/docs/design/overview/).

## Two kinds of glass

The system has two glass surfaces, and each has one job.

| Surface | Fill | Where |
|---|---|---|
| Solid tint | `--color-glass`, dense enough to hold a table or a form | Every panel and card, the login card, drawers and editors; the site's cards and asides |
| Clear liquid glass | `--color-glass-tint-clear`, which lets the background through | Bars and controls: the console's top bar and tab rows, secondary buttons, the site's header |

Both exist in the dark and the light theme; the tokens change, the rules do not.

## Console: panels

![The Usage page of the console in the dark theme with synthetic data: the dark navigation rail on the left, the top bar as a glass pill, a filter panel with a rim light at its corner, a pill of glass tabs and one stats panel with four values in a row](/docs/images/design-system/console-glass-panels-synthetic.png)

A panel is built from these layers, bottom to top:

| Layer | Token |
|---|---|
| Behind it | The [background field](/docs/design/layout-and-spacing/#background-field) |
| Fill | `--color-glass` |
| Blur behind | `backdrop-filter: blur(var(--blur-panel)) saturate(var(--saturate-panel-solid))` |
| Edge, inner light and drop | `--shadow-panel-solid`: a 1px `--color-glass-edge` ring, a lit top line and a deep drop shadow |
| Radius | `--radius-frame` (24px); the stats panel uses `--radius-glass` (28px) and the login card `--radius-panel` (32px) |

The classes that take the panel are `.panel`, `.metric-grid`, `.catalog-card`, `.integration-card`, `.about-panel`, `.filter-bar`, `.list-toolbar`, `.journey` and `.login-card`. A panel has no border and no hover state of its own; an integration card that opens something takes `--color-fill-on` on hover and focus.

### Nested panels

Glass is never nested in glass. A panel inside a panel, a drawer or an editor is a plain fill: `--color-field` with a hairline ring (`--shadow-hairline`), radius `--radius-field` and no blur.

### Rim light

Three surfaces carry a rim light, a thin line of light (`--size-rim-width`) that enters at the top-left corner and fades before the right edge: a screen's filter panel, the login card and the navigation rail. It runs from `--color-rim-white` through `--color-rim-1` to `--color-rim-2`. No other panel has one; it marks where a screen starts.

### Stats

The numbers at the top of a page (`.metric-grid`) are one panel, not a row of cards. Each stat puts its value first, in the display face at 36px and regular weight, then its label in `--color-text-soft` and a one-line detail in `--color-text-faint`. Stats sit four to a row; a `--color-line` rule separates neighbours, and the first stat of each row has none. There are no icon tiles. The detail explains the number ("Missing counters are not zero usage"), never repeats it. At 1150px and below the stats stack two to a row, with the rule above each one.

### Drawers and editors

A drawer or an editor floats clear of the window edge: `--color-glass` with `--shadow-glass`, radius `--radius-glass`, over a scrim of `--color-glass-drop`.

### Under reduced transparency

`prefers-reduced-transparency: reduce` sets `--color-glass` and the two glass tints to `--color-bg-deep` and the blur tokens to zero; the console also removes `backdrop-filter` from every glass surface and drops the gradient edge of the top bar and the rim light. The top bar, the tab rows and the glass buttons take a plain 1px `--color-line-strong` edge instead of their inner light. Panels become opaque with the same radius. Text contrast is checked against the glass composited over the page, so it passes both ways.

## Site: cards and asides

Glass on the site is for the header, the cards and the asides only; long-form text sits on the open page.

- **Cards and link cards** (the home page grid): `--color-glass` with `--shadow-panel-solid`, radius `--radius-glass`.
- **Asides** (note, tip, caution, danger): the same panel at `--radius-frame`, with the state's color for the title. Note uses `info`, tip uses `secondary`, caution uses `warning` and danger uses `danger`.
- **Code** keeps an opaque ground, in the mono face; a code block's frame uses `--radius-field`.

## Writing a card

```css
.release-card {
  border: 0;
  border-radius: var(--radius-frame);
  background: var(--color-glass);
  box-shadow: var(--shadow-panel-solid);
  backdrop-filter: blur(var(--blur-panel)) saturate(var(--saturate-panel-solid));
  -webkit-backdrop-filter: blur(var(--blur-panel)) saturate(var(--saturate-panel-solid));
}
/* Inside another panel: a quiet fill, no glass. */
.panel .release-card {
  border-radius: var(--radius-field);
  background: var(--color-field);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (prefers-reduced-transparency: reduce) {
  .release-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
```

## Rules

- Do not nest glass in glass: a card inside a panel uses `--color-field`, or the blur doubles and text loses contrast.
- One idea per card. A card that needs a scroll bar is a page or a table.
- Keep the rim light for the filter panel, the login card and the rail. Text never glows.
