Pop-up
One frame for every menu, picker, confirm and form on a touch phone: a card floating at the thumb, clear of every edge. Cédric, 3 Dec 2026: “The new menu on iOS looks pretty bad. Let’s properly design how we make these kinds of pop-ups look, and then adapt the same style for everything.” Of three placements he picked B, a floating card at the thumb (MAR-4595). It replaces the six hand-made frames the iPhone app drew its 21 pop-ups with, which disagreed on row heights, lines, corners and ways out. The app builds it as PopUp (src/ui/pop-up.tsx); every number on this page is the popUp token block.
A menu: the avatar menu
The avatar menu’s real rows, in its one order (the avatar menu and the account row): the account row, then the group under her name and the group “Airmond”. The rows sit straight on the card’s fill, with no card inside the card and no line between them; the groups are set apart by their small muted names. Meetings is drawn pressed. Help has the only chevron, because it opens a second level inside the pop-up; every other row simply goes somewhere. There is no Cancel row and no ✕.
The avatar menu, Neutral light
Conversations
The avatar menu, Neutral dark
Conversations
A short menu with a destructive row
A conversation’s menu. Two groups with no names, so 8 of space parts them. Delete chat is the destructive row: its words and its mark are danger, in place, with no box round it.
The conversation’s menu, Neutral light
Conversations
The conversation’s menu, Neutral dark
Conversations
A question: confirm
The same frame in the same place: at the thumb, never a centred box on a phone. A title, the sentence as its muted line, then one foot of two buttons, the quiet Cancel and the commit, side by side and half the width each. The commit keeps the colour it has today, danger for a delete. A question has no ✕ as well. A confirm that can happen in place still happens in place, with no pop-up at all, and only one confirmation shows at a time.
Delete this chat?, Neutral light
Conversations
Delete this chat?, Neutral dark
Conversations
A form: rename
One field, then Cancel and Save. With the keyboard up the card sits 8 above it, and its foot keeps only the 10 minimum, because the keyboard covers the home indicator.
Rename, Neutral light
Conversations
Rename, Neutral dark
Conversations
Anatomy
The anatomy, Neutral light
Conversations
What the tags measure
- The card stands 8 from the left, right and bottom of the window, all four corners at 38, at most 420 wide.
- 8 of padding at the sides and the top; under the last row max(10, the bottom inset less 8), 26 on an iPhone with a home indicator.
- The grabber, 36 by 5 in
faint, then 6 before the content. - Title, group names and marks stand on one line, 20 in from the card’s edge; the words start 12 after the 24 slot.
- Rows at least 44 high, 56 with a second line, with 7 kept above and below the words when a large text size makes one taller; corner 12 on the pressed fill. The dashed squares are the mark slots, drawn only here; the app draws no line round anything.
| Part | Token | Value |
|---|---|---|
| The card’s place | popUp.frame.inset | 8 from the left, right and bottom of the window |
| Corner, all four | popUp.frame.radius | 38 |
| Widest | popUp.frame.maxWidth | 420, centred on a wider touch window |
| Above the keyboard | popUp.frame.keyboardGap | 8 |
| Padding at the sides / top | popUp.frame.paddingHorizontal / paddingTop | 8 / 8 |
| Padding under the last row | popUp.frame.paddingBottomMin / bottomInsetGive | max(10, bottom inset − 8) |
| Tallest | popUp.frame.topClearance | the window less the top inset and 56 (8 plus a 48 tap target of dim, the one way out in a phone browser); past that the body scrolls |
| Line round the card | popUp.frame.borderWidth | 0: none |
| Grabber | popUp.grabber.width / height / radius / gapBelow | 36 × 5, fully round, 6 above the content, faint |
| Title and muted line | popUp.head.inset / titleType / lineType / lineGap / gapBelow | 12 in from the content edge (on the marks), subheading over callout muted, 2 apart, 12 before what follows |
| Row | popUp.row.height / heightTwoLine | 44, 56 with a second line |
| Row padding / gap / corner | popUp.row.paddingHorizontal / gap / radius | 12 / 12 / 12 |
| Row padding above and below | popUp.row.paddingVertical | at least 7, so a row grown by a large text size never touches the next; 44 and 56 already hold it |
| Mark | popUp.row.mark / markSlot / markTone | 20 outline in a 24 slot, ink; every row keeps the slot once one row has a mark |
| A person’s face | popUp.row.face | 32, the account row only, centred on the slot |
| Words / second line | popUp.row.wordsType / lineType | body ink / caption muted |
| Right end | popUp.row.valueType / tick / chevron | a caption muted value, or the 16 ink tick; a 16 chevron only for a second level |
| Line between rows | popUp.row.borderWidth | 0: none, anywhere |
| Between groups | popUp.group.gap | 8 of space |
| Group name | popUp.group.nameType / nameTop / nameBottom / nameInset | caption muted, 14 above, 4 below, 12 in |
| Foot (a question or a form) | popUp.foot.gap / top / buttonSize | two buttons, half the width each, 8 apart, 16 below the sentence or field, the kit Button md (46); the quiet one’s plate is the pressed row’s fill |
| Fill | popUp.tones.fillLight / fillDark | surface / surfaceRaised |
| Dim behind | popUp.tones.dim | scrim; it fades, never slides |
| Pressed and current row | popUp.tones.pressedLight / pressedDark | sidebarAccent / ink at 0.08 over the fill (#333335) |
| Destructive | popUp.tones.destructive | danger words and mark, in place |
| Motion | popUp.motion.in / out / rise / easing | rises 24 and fades in over base (240), leaves over quick (160), easeOut; under reduced motion nothing moves |
The rules
| Rule | Do | Don’t |
|---|---|---|
| No line between rows | Part groups with 8 of space or a small muted name. | Draw a hairline, a rule or a divider between rows or groups, anywhere. Lines read as machine-made. |
| The ways out | Tap the dim, drag the card down, or press Android Back. The dim is the one accessible “Close” control. | Add a Cancel row or a ✕ to a menu. |
| A pop-up that guards typing | When the dim does not close it (a form protecting half-typed work), a drag down does not close it either; its Cancel does. | Let a drag throw away what the dim protects. |
| Room to get out | A tall pop-up stops 56 below the top inset, so a 48 band of dim always stays above it to tap. | Grow the card to an 8 sliver under the top, which no finger can hit. |
| A question keeps its buttons | Cancel and the commit as the foot, side by side, half the width each. | Add a ✕ as well, or stack the two buttons as rows. |
| One card | A solid fill (never glass: words behind would read through it), rows straight on it, the card 8 clear of the sides and bottom, all four corners round. | A grey card inside a white sheet, a sheet square to the bottom edge, or a centred box on a phone. |
| One row | The standard menu row: at least 44 high (56 with a second line) and 7 above and below its words when it grows, a 20 ink mark in a 24 slot, words in body. | A row of a different height or type size, or a chevron on a row that just goes somewhere. |
| Fine pointers keep the popover | Desktop web and the Mac window keep the popover menus and centred dialogs. Where a fine pointer does meet the card, it draws no grabber, since nothing drags there; Escape and a click on the dim are its ways out. | Draw a grabber where nothing can drag, or bring the card to a screen that has a popover today. |
| Colour | Kit tones by name; coral only on a face; danger only on a destructive row or a delete. | A new colour, blue or green. |
Measured
| Part | Colours | Neutral light | Neutral dark |
|---|---|---|---|
| Words | ink on the card | 18.88:1 | 13.28:1 |
| Second line, value, group name | muted on the card | 5.99:1 | 5.81:1 |
| A destructive row | danger on the card | 5.20:1 | 4.58:1 |
| A mark | ink on the card (3.0 non-text) | 18.88:1 | 13.28:1 |
| Words on a pressed row | ink on the pressed fill | 15.70:1 | 10.67:1 |
| Second line on a pressed row | muted on the pressed fill | 4.98:1 | 4.67:1 |
| A destructive row while pressed | danger on the pressed fill (3.0: only while a finger is on it) | 4.32:1 | 3.68:1 |
| The pressed fill, as a shape | pressed fill on the card (texture) | 1.20:1 recorded | 1.24:1 recorded |
| The grabber, as a shape | faint on the card (texture: the dim is the control) | 2.58:1 recorded | 2.86:1 recorded |
In dark, sidebarAccent is the same grey as the card’s surfaceRaised, so a pressed row drawn in it would vanish. Dark draws the pressed row as ink at 0.08 over the card instead (the Library row’s selected wash), which stands off the card as far as light’s does. The pairings above are claims in tokens/tokens.json, re-run by build/contrast-test.mjs, and build/pop-up-test.mjs pins the rest.
Consuming it
React Native: popUp in dist/ts/tokens.ts (tones are names of colors; popUp.tones.pressedDark is drawn at pressedDarkOpacity over the fill). Web: the --pop-up-* numbers in dist/css/airmond.css. The motion is the app’s own scale by name, motion.base in and motion.quick out. The row is the app’s MenuRowWords and MenuRowEnd (the standard menu row).