Surfaces

The page's ground, the cards that stand on it, the panes an app is built from and the frames set in their flow: what each holds, and what never goes inside what.

Every box on screen is one of three things: a card standing on the page's ground, a frame set in the flow of a surface, or a row inside either. A card never stands on another card. What fills a card is text, fields, rows, tiles and frames, so the ground shows between the cards and nowhere inside them.

api v2.48.1
Unit testsPassed
MigrationsPassed
Smoke testPassed

Roll it back from the release's page, or by hand:

sh
deploy rollback api --to v2.48.0

The release and its runbooks are two cards on the ground. The release's checks are rows of a list, and the command that rolls it back is a block of code in its frame. Each runbook is a link set inside a card, so it is a tile: a quiet fill with no edge of its own.

The layers#

LayerWhat draws itStands onHolds
GroundThe page; an app's frame, between its panes (Pane purpose="app")NothingCards in a ModuleGrid, a LinkCard, a PreviewCard, an app's panes, a sidebar, a page's title line
SurfaceA Card; a pane the app draws as one; the sheet a page is read on; a Dialog, a Sheet, a PopoverThe ground, or over the page for an overlayA header, text, fields, rows, tiles and frames
FrameFrame, ContentFrame, FenceFrame, Tabs variant="framed", List framedA surface, in its flowA lid, a foot, and one block edge to edge between them
Rows and tilesList, Table, NavList, LinkCard with variant="row" or "tile"A surface or a frame; a sidebar's NavList stands on the groundText and controls, never a box
LaneA Board's BoardColumn, sunk to the ground's colourA pane, which it cuts throughBoardCards, raised on it

What goes inside what#

InsidePutNever put
The groundCard, LinkCard, PreviewCard, an app's panes, a sidebarA frame on its own, a tile
A card, a pane drawn as one, the reading sheet, an overlayText, fields, rows, tiles, framesA Card, a LinkCard drawn as a card, a PreviewCard
A frameOne block: code, a file, a diagram, a log, a set of tabs' panels, a list's rowsA card, a tile, another frame
A board's laneIts cards, each a BoardCardA Card, a tile, a frame

The one frame inside a frame is a document's own block: a Markdown file or a message shown in a frame keeps the frames of the code it holds, since they are its content.

Cards stand on the ground#

A card is a module: it stands on the ground in a ModuleGrid, inside its own rule and over its own shadow. What it holds is drawn on its face, so a card inside it would stand on white: two rules and two shadows where one edge was meant, and headers stacked with nothing to say which box each belongs to. What reads as parts of one module is parts of one card: the rows of a List or a Table, groups parted by space or a Separator, or cells ruled off inside it (Layout & spacing).

api v2.48.1
Checks3 of 3 passed
Rollout40% of traffic
Do

Set the parts of one module as rows inside its card.

api v2.48.1
Checks
3 of 3 passed
Rollout
40% of traffic
Don't

Lay a card on a card. Its rule and its shadow double the edge it sits inside, and the eye has two boxes to tell apart where there was one thing to read.

A box that stands on its own on the ground, such as a column of links beside a page, is a card with a header. A frame's grey band is the lid of a block in a surface's flow; standing on the ground it reads as a block with its content missing.

A list of files takes the look of where it stands. Set among what a card or a pane holds, an AttachmentList is a frame, its rows under a lid. Standing on the ground beside the page's other modules, it is a card, variant="card", and closed to its header line: the line names the files, so the reader sees what is there without the list pushing the page down, and the whole of it but the list's actions opens it. A link to the card's id, such as an All 5 ↓ in a sidebar, opens it too. Start it open (defaultOpen) where the files are what the page is for, rather than what it is about.

Retry a fetch that times out
The sync job gives up on the first timeout and waits an hour for the next run. Retry three times, a few seconds apart, before it gives up.

A module whose title says how something stands, "Nightly backup failed" or "Replica db-2 is behind", takes the card's intent, drawn as a frame's is. Its edge, header and footer take the status colour and its body a wash of it. A module whose title names a thing, with items of several statuses in it such as a table of runs, stays neutral and says each status with a Badge in its row. A merge box whose title is the verdict, as on Color, is the first kind, though it lists the checks behind the verdict. Keep the intent for what the reader should see now: a dashboard whose every card is tinted says nothing, and a check that has held for days needs no green.

Panes#

An app's frame is Pane purpose="app", and between its panes it is ground: from md up it lays them a module gap apart, each pane that is read or worked on drawn as a card, and the sidebar standing on the ground with no fill of its own. A pane is a surface, then, and holds what a card holds. A region whose content is modules, a dashboard's or an admin screen's, is no pane: it is a ModuleGrid on the page's ground under the app's banner, as the Admin demo's sections are. On a phone the app is one sheet, the screen, and its panes are regions of it, ruled off where they meet.

A toolbar, a status bar and a titlebar are strips along a pane's edge rather than boxes: they take the pane's ground and a rule of their own (Styles names each purpose).

Tabs that switch everything a pane shows below its header, as a release's overview, log and diff do in the Releases demo, are a strip of the pane too: Tabs variant="pane" runs the strip across the pane's row, its rule meeting the pane's sides, and the current panel fills the rest and scrolls on its own. Framed, the same set would be a box round the pane's whole content, its edge doubling the pane's and its gutter taken from every panel. A module on the ground whose tabs switch all it shows, the Admin demo's members and invitations, is a Card holding the same set: the strip is the card's head, the panel the rest of the card. A frame there would stand on the ground as a block with no surface round it.

Frames sit in a surface's flow#

A box set among what a surface holds, a block of code, a file embedded in a document, a set of tabs that is one block among others, is a Frame. Its heading line goes on its lid, a FrameBar; the actions that close it go on its foot, a FrameBar side="bottom"; what lies between runs edge to edge. Every block a document holds is one: a fenced block of code is a FenceFrame, an embedded file a ContentFrame (Code blocks, Long content). A sample shown on its own, such as a preview of an editor's text, is a Frame inset, a quieter ground that does not stand off the page.

A frame that waits on its reader, or says how something ended, takes an intent, and its lid says the status in words. warning is for what wants the reader before it can go on: a question to answer, a change to look over. danger is a run or a step that failed, and success one that finished as it should. The frame's edge, lid and foot take the status colour, what it holds lies on a wash of it, and the words on its lid say what the colour means, for a reader who cannot tell the colours apart (Color). A block the message shows, such as a failed run's log, keeps its own frame inside, as any message's blocks do, and stays as it is; so do the buttons on the foot: the action that answers is still the primary one.

Most frames have no intent: a block of code, a comment and a reply box say nothing about how anything stands. Nor does what has not ended, a run still going or waiting in a queue, or what someone ended by choice, a run they cancelled. In a history of runs only the one that stands now takes an intent, and the older ones say theirs with a Badge: a timeline of green frames hides the red one. Once the reader has answered or dealt with a frame, it goes back to having none, and its lid says who answered and when: an answer given is history, not a success. Write the status on the lid rather than set a Badge of the same colour on it, which only says it again.

Frames stand on the ground in one place: a contact sheet of live samples, such as the Gallery, where each cell is a sample under its name and shows its export as it is, a card as a card.

A LinkCard takes the look of where it stands. On the ground it is a card, variant="card", that lifts under the pointer: the page before and after this one. Inside a surface it is a tile, variant="tile": a quiet fill with no edge or shadow, its title underlined under the pointer. In a list of pages it is a row, variant="row". size="sm" sets it in an app's UI text rather than the prose of a page that is read, and aria-current="true" marks the one whose place is open beside it.

Do

Inside a card, draw each link as a tile.

Don't

Lay link cards inside a card. Each stands on the card's face as if on the ground: a box in a box.

Where what the place looks like is what there is to say, as on the Demos wall, the link is a PreviewCard. Its PreviewCardPicture is a card on the ground holding a picture of the place at the picture's own proportions, and the name, a label and one line stand under it on the ground, the name a link that covers the whole card. A place told by its name and a sentence is a LinkCard: a wall of pictures there would show nothing the words do not.

Boards#

A board's columns are lanes sunk through its pane to the page's ground, and its cards stand in them as modules stand on the ground. A Board fills a pane. Each BoardColumn takes the ground's colour, so the pane reads as cut through where its lanes run, and each BoardCard is raised in its lane: the hairline and the surface shadow, a step higher under the pointer, a box that can be picked up. It is the one raised box inside a surface, and it keeps the rule: the card stands on ground, the lane's, not on the pane. What a board card holds is text and its own controls, never a tile or a frame. The Tasks demo's board is one, and a task's details open as a pane of their own beside it (Reordering).

Edges#

Every box takes one edge, the hairline rule: a card's, a pane's, a frame's, and the line that rules a frame's lid off from its block. The darker edge of a key belongs to what is pressed or typed into, a button, a select, a field, where it shows where the control is; round a block of code it would outweigh the code. A frame or a card in an intent draws its edge in the status colour. A line is drawn once: a pane's edge where it meets its neighbour is the pane's edge, and a rule a card's header already draws needs no Separator under it.

Under other styles#

A style redraws each layer where it stands. Under raymond a card is a group box, a document pane and a block are sunken wells in the window colour, and a link to another place has no fill, its title underlined in the link colour. A frame in an intent keeps raymond's face and edge, and its lid becomes a window's caption in the status colour; a card in one writes its legend in that colour. A block with a ground of its own, a terminal's or a video's, keeps it in the well. What holds what is the same in every style, so a screen built by these rules reads right in each of them (Styles).

In the demos