Patterns
How components combine into screens in any Raft product.
- Page structureThe regions of a phone page and a desktop screen, the head, toolbar and list of a page of a list, how they are layered from the frame inward, and the rule of one line between regions.
- NavigationHow people reach destinations, see where they are, follow links, go back, close things, switch servers and switch between the views of one place.
- TasksThe five task statuses, a page of tasks (Mine and All, its list and board, selecting, the task opened in the row), task details, completing, creating and editing tasks, tasks created from messages and listed beside a conversation, how status changes and how tasks are filtered.
- ConversationThe timeline of messages and event lines, what a message can hold, its actions, mentions, the composer, threads and search in a conversation.
- CommentsWhere comments on a document go — in the margin, level with the passage they are about, as in Google Docs — what replaces the margin on a narrow screen, and the one bar at the bottom of a phone that writes them.
- Forms and settingsWhen a change takes effect (at once, on Save or through a button that names it), settings that apply at once, groups of fields saved together, forms in dialogs, the large one-pass form dialog, validation, long values in fields, option height and the danger zone.
- FeedbackHow to tell people something — what acts at once, what offers Undo and what is confirmed, empty versus loading versus failed, where errors go by scope, and how they are worded.
- Responsive layoutThe breakpoints, what each width shows, how short windows shrink and what they show with the on-screen keyboard up, the conversation's row and the Tasks page's row, why a layout switches on the width of its own region, how a row gives way when it runs out of room, why the first frame is already the settled one, what replaces hover on a touch screen, and how phone layouts hold at 320px.
- Actions and closingWhich surface carries an action, a dialog, a banner or a toast; how each one closes; and why a screen has at most one pink button. The specifics are in each component's doc.
- Cards in messagesHow every card in a message and every item popover is drawn from one set of recipes — one frame with a 12px inset, two widths, a source row, a 2-line title, a row of state and details, and one row of at most two buttons at the bottom end — so changing one card changes them all; how a card with a preview says its title once at the top and its details in one line at the foot; and how a card that asks for something lives and ends: its phases, who can act, an outcome with one tone each, the folded record line, one primary button and a 1.5s undo.
- Coach marksA tour of a screen the person has just entered, one stop at a time — a Popover anchored to what it is about, the target washed cyan, and the page live underneath.
- Drag and dropThe one way everything in Raft is dragged — how a drag starts, what follows the hand, where the item will land, what a refused place shows, how a drop and a cancel move, and the keyboard and screen-reader path.
- EmailAdapt Raft's typography, surfaces, and actions to system-triggered HTML email.
- FreshnessHow a page stays right after the app was in the background, offline or disconnected — one signal that checks again, content that stays while it does, progress only when someone waits, saying "may be out of date" instead of pretending, when an update is announced, and what each kind of component is responsible for.
- ListsHow the rows of a list are drawn — no dividers, one inset rounded shape for hover, press, menu open, selection and focus, the content padded 12px inside that shape, rows spaced 2px apart by the list's gap, a scroller that keeps the shape even, where a row's time and hover actions go, and rows grouped by day.
- QuestionsHow an agent asks a person a question in a conversation — answered where the message is when the question is short, in a card when it isn't — and how an answered, expired or withdrawn question reads.
- StatusOne model for the state of computers, runtimes and agents everywhere it shows — the questions a surface answers, the chain that finds one verdict, the four verdicts and their colors, one word for each state, what "needs attention" counts, and what each Computer-side surface shows.
- Tabs and panesHow objects open beside a conversation as tabs in panes — one shell for every kind of object, its tab bar and width rule, its two menus, dragging, maximizing, narrow windows, Escape and the keyboard.
- Title barsWhat a desktop window's title bar is for, what goes in it and what stays out, for each kind of Raft window, and how it differs on macOS, Windows and Linux.