Raft Design System

Foundations

Shape

The five radii, the two stroke widths, how Raft rounds an App's icon, and why nothing is attached to the edge of a rounded container.

Square is Raft. Every identity is a square sticker and every dot is a square pixel; pixels are hard and containers are soft. Round is only for switches, radios and grab handles, which follow platform convention, and for two exceptions: a task's completion control and the Android pull-to-refresh disc.

Principles

  • Identities and dots are square. Avatars, workspace tiles, channel tiles, presence lights, attention dots and pixel spinners all use square pixels. A round dot or a ring spinner would be the one round mark among square pixels; the square pixel is the brand's own shape (Principles).
  • Round only for switches, radios and grab handles, and for two exceptions: a task's completion control and the Android pull-to-refresh disc. Nothing else uses a full radius. A grab handle (the bar at a bottom sheet's top edge, the grip bar on a side section's head) is something to take hold of, and every platform draws it with round ends (the iOS sheet grabber, Material's drag handle). Square ends on a 4px bar read as a cut edge, not a handle.
  • A task's completion control is round. It leads every task row and card and marks the task Done in one click. A square box at the start of a row reads as "select this row", which is what a Checkbox there means; the circle reads as "done", as in a to-do list (Completing a task).
  • Pull to refresh on Android web is a round disc, Android's own (stdrc, 2026-10-23): Material's refresh indicator, so a pull feels like the platform's (PullToRefresh). It is the one round surface; the others are controls.
  • Two stroke widths, and a sticker's edge follows its size. 1px for lines and 1.5px for every control and field. A sticker's ink edge follows its size: a sticker with a label, under 24px tall, takes 1px; a larger sticker, or one with no label that relies on its edge for its shape, takes 1.5px (Stroke widths).

Radii

TokenUse for
radius-stickerThe pixel family: avatars at every size, 19px tiles (larger tiles take their corner by size, below), checkboxes, badges, steps, skeletons; inline marks in running text (inline code, a mention of you, search hits, reference chips); the 24px key caps of a list of shortcuts (Kbd at md)
radius-chipChips (value chips, the chips in a field, task status chips, reactions), tooltips, the highlighted item in a popup, and every control embedded in another component's frame (Inside a frame)
radius-controlControls and selection stickers that stand on their own: buttons, inputs, selects, filters, segmented controls, tabs, sidebar rows, rail items, the tab bar's icon sticker, the workspace button
radius-containerContainers: cards, inset groups, the composer, banners, menus, toasts, profile cards, file cards, the box of tasks under a message
radius-dialogDialogs, and the top corners of bottom sheets
rounded-fullSwitches, radios and grab handles; a task's completion control; the Android pull-to-refresh disc
  • Give the state shape of a list row (Activity items, sidebar rows, search results, ListRow with cell) radius-control: its hover, press, selection and focus fill a rounded shape as tall as the row and inset 8px from each side, never the row's square full width (Lists).
  • Give a sm Kbd, the 16px hint in menus, tooltips and search, a 3px radius, the one it has always had, so those hints keep their look.
  • A control and a tile take their corner by size, about a quarter of the height, snapped to the radius tokens, so a 28px button and a 35px tile look as round as a 34px control (stdrc, 2026-11-03):
    • a 28px bar button (a head's actions and its ×, the composer's icons) and the header's 28px icon tile: radius-chip, the corner of a floating toolbar's 28px buttons on a touch screen;
    • the 34px row highlight and the 34px controls, a floating toolbar's buttons included: radius-control;
    • a control at the control height on a phone and a touch screen (a 44px field, Select, Button at lg and icon-lg, a head's 44px actions): 10px (control-radius, bar-button-radius), 8px at 34 with a mouse on a desktop;
    • tiles (IconTile): 19px radius-sticker, 27px radius-chip, 35px radius-control, 51px radius-container.
    • Avatars are the exception: an avatar is a sticker at every size, radius-sticker with its image 2px inside, so a face never reads as a rounded button (stdrc, 2026-11-04).
    • Badges are one shape: a soft and an outline badge are 20px at radius-sticker, the count badge's.
      A control at the control height writes rounded-(--control-radius) (10 on a touch screen, 8 on a desktop), not rounded-control, the fixed 8 of radius-control: the names differ only in word order. Open with stdrc, as his sizing audit doesn't draw them: the 52px call to action (Button xl) and a Card option (which sits in a form beside the 44px fields) keep radius-control (8) on a touch screen, and a large (52px) ComboboxSelect takes the fields' 10.
      On a phone the header's 27px icon tile keeps radius-sticker, and soft and outline badges keep 22px at radius-chip.
  • Use a 2px radius for status lights and attention dots (10px beside text, 6px to 20px on an avatar's corner) and the images inside avatars at 9px to 11px: they are too small for radius-sticker.

App icons

An App's registered icon is the image Raft stores for the App and serves itself. Its corner depends on what the icon is doing.

  • As the App's identity, it is an avatar. In a list, a head or a profile (the Apps page, an App's details, an agent's Apps, settings: ConnectedAppLogo, an AvatarSlot of type app) the icon is a sticker, with the avatar's ink edge and corner, like every other identity (Radii). The identity sticker's lavender is the placeholder's: it shows with the App's initials while the icon loads, when there is none and when it fails, and goes once the icon has loaded, so a transparent corner shows the surface the sticker sits on. Lavender there reads as a mistake, and a white plate would be the brightest thing on a dark page; an icon that can't stand without a plate is fixed where it is registered, by the last rule here (AppFather, Jasper, 2026-11-25, #proj-workspace:#420).
  • Standing alone as a bare icon, Raft rounds it by its size: the corner is a quarter of the side. The rail item's icon is 20px with a 5px corner (AppRail); a desktop browser tab's icon is 16px with a 4px corner, the tab's icon size (Kirby, Jasper, 2026-11-25, #proj-workspace:#420). A new bare place takes the same proportion at its size.
  • Inside a message, the exception: the 14px icon in a reference chip (MessageReferenceIcon) and the 16px source icon in a card's header (AppLinkCard) keep 2px corners, so a link's chip and its card show the same mark.
  • When a bare icon is missing, or doesn't load, each place has its own fallback. In the rail, the App's initials on the sticker: on a narrow rail the item has no other label, so the initials say which App it is. On a browser tab, the globe, as for any other site: the tab already shows the App's name beside it. The fallback shows until the icon has loaded, never a blank square, and goes once it has.
  • A bare icon has no plate behind it, so an App's icon is a full-bleed, opaque square, and Raft rounds it. A plate would show round every icon with transparent corners; a logo drawn on a transparent background shows nothing of its own on a tab in the dark theme. The icon an App registers brings its own background, edge to edge (Jasper, 2026-11-25, #proj-workspace:#420).

Inside a frame

The radius belongs to the element; the space around it adapts to the frame it sits in. Frames keep their own radius whatever they hold: a field and the composer, a card, a popup, a toolbar and a dialog never round off to fit what is inside them, because hard edges are Raft's.

ElementRadiusSpace to the frame's outer edgeBetween two of them
A Button standing on its ownradius-control——
A control embedded in another component's frame: the clear, toggle and end buttons of a field, the composer's buttons and its send button, the buttons of a floating toolbar (message hover toolbar, text selection toolbar, the lightbox's info bar), the corner action of a card or of media (a code block's copy, a video, a gallery image, a file card's download)radius-chip6px in a field, the composer and a corner; 4px in a floating toolbarThe same as the space to the frame
A chip in a fieldradius-chip, its remove button radius-sticker6px; the remove button 2px inside the chip6px
The highlighted item in a popupradius-chip4px0
The thumb of a segmented control or toggle groupradius-control3px3px
  • One shape for one kind of thing. The same small button wears the same corner in a field, the composer, a card corner and a toolbar, and the same corner as the chips beside it. At radius-control a 20px button in a field reads almost round; under radius-chip it reads hard.
  • The space is even on every side. A control embedded in a frame sits the same distance from the frame's top, bottom and side, and two of them sit that distance apart, so no gap is wider than the others. In a field the embedded controls and chips are the field's height less that space on both sides: 22px on a desktop and 32px on a phone (control-embedded-size), and the field stays 34px or 44px tall with chips in it.
  • A floating toolbar leaves 4px around its buttons, so the buttons' corners sit evenly inside the toolbar's: at 2px the corners left a wider gap than the sides. The message hover toolbar is 36px tall on a touch screen and 42px with a mouse, around 34px buttons (stdrc, 2026-11-05). The toolbar for selected items is the exception: it is as tall as a head and keeps a head's air at its ends, around buttons that stand on their own (radius-control): md buttons 4px apart with a mouse, 44px bar buttons side by side by touch (SelectionToolbar). It replaces the composer at the bottom of a column, so it takes a head's measure, and its actions carry labels, as standalone buttons do (Noel's BatchBar spec, stdrc, 2026-11-10, #wg-task-v2).
  • Close to the frame, the inner corner follows the frame's. A popup's highlight 4px inside the popup and a segmented thumb 3px inside its track run close to the frame's arc, so the frame's corner is chosen to keep the gap even around it. Further inside, as a chip 6px inside a field is, the element reads as an object of its own and simply wears its own radius.
  • What runs to the frame's edge takes the frame's inner corner. A cover image or an excerpt at the top of a card in a message has no space to the frame, so it is cut on the curve of the frame's inside edge: the frame's radius less its border (radius-container less 1px), on the corners it shares with the frame only. A cover at a card's top is round at the top and square at its foot, where it meets the card's next row. Square, it would cover the arc of the frame's border, and the card would look cut at those corners. The part that runs to the edge clips what it holds, not the frame: a frame that clipped would also cut a focus ring drawn around the whole card (MessageEmbed).
  • Nothing covers content. A corner action that sits on content, as a code block's copy button does when the block has no header, reserves its column: the content stops short of the button on every line.
  • A chip's remove button wears radius-sticker, the one exception: it is a smaller target 2px inside the chip, so close that it follows the chip's corner, as a popup's highlight follows the popup's. At radius-chip its corner would run into the chip's.
  • A focus ring that its host would clip, as on a chip's remove button, is drawn inside the element.

Stroke widths

WidthUse for
1pxline-hairline and line-seam: lines inside content and between regions. The ink edge of a labeled sticker under 24px tall: a count, a badge, the @ marker, the rail's count, the reply summary's "2 new", a mention of you in running text, a step's number
1.5pxline-strong: the ink border of buttons and other controls, the edge of every other sticker (24px and taller, or with no label) and the selected row; line-field, the same ink around a field: Input, Textarea, InputGroup, Select, Combobox, ComboboxSelect, the search field, the composer and an option card
  • A sticker's ink edge follows its size. A sticker that carries a label (a number, a word, or an icon that stands for one, like the @ marker) and is under 24px tall takes a 1px edge. A larger sticker, and one with no label that relies on its edge to hold its shape, takes 1.5px: buttons, the selected row, tab and segment, avatars and their corner marks, status pixels and attention dots. The +N count at the end of a stack of faces is one more sticker in the stack, so it keeps the faces' 1.5px edge.

    • Why: at 19 to 20px tall, a 1.5px edge above and below takes 3px of the height, and its ink weighs more than the 12px label inside it, so the edge reads before the word does (artin, 2026-11-28, #proj-mobile:8518431c). 1px still holds the color's shape against paper (Stickers). A sticker with no label is only its shape, so it keeps the heavier edge; a larger sticker has room for it. The app draws the same edges.
    • In dark mode the die-cut edge outside matches the ink edge inside: 1px around a 1px edge, 1.5px around a 1.5px one (Dark mode).
    • A new labeled sticker takes its edge by this rule, not from the component it sits next to.
  • Draw a field's frame at 1.5px, like a button's. A field sits beside its send button, its submit button and the selected row, all at 1.5px ink; at 1px it was the one thin control among them and read as a lighter style rather than the same Raft. Ink at one weight keeps the system's hard edge. Focus, an error and selection mark a field on top of it.

  • Draw the presence light on a 99px avatar with a 2px edge, scaled up with the avatar.

  • The 2px bar before a quote is a mark, not a line.

  • A 3px to 4px progress bar is a line in itself: it has no border.

Nothing on the edge of a rounded container

Don't attach a progress bar, a colored band or a thicker accent border to one edge of a rounded container (a card, file card, input, composer or thumbnail): where it meets the corner, it is cut into an odd shape.

  • Put progress inside the container, on its own 4px track: 2px radius, fill-medium track (layer-card over an image), cyan progress. Progress is cyan, not pink: it is a passive indicator, and pink means to do.
    • In a file card, put it under the file name, aligned with the text.
    • In a thumbnail, inset it 6px from all four edges.
  • To emphasize a whole container, change its fill or its border. Don't add a band to one edge.