Web & App Design

Review, comments and Check Design

Review is the mode for reading a design: measuring it, copying its code, commenting on it and checking it. Nothing you do in Review moves a layer, so you can look without fear of nudging something. Comments and the check are where a design goes from "looks done" to done.

The top bar in Review: Inspect, Comment, Measure, Changes, Check design and Code
The top bar in Review: Inspect, Comment, Measure, Changes, Check design and Code

Review mode#

Press ⌘2, or click Review at the top. Its tools:

ToolKeyWhat it does
InspectVSelects without moving; the inspector reads what is selected
CommentCPins a comment where you click
MeasureMShows sizes, distances, padding and gaps
Changes⇧DTints what changed since the file was opened, in the color of who changed it
Check design⇧KRuns the design check and lists the faults
Code⌥CShows the selection as SwiftUI or CSS, with Copy

Review is free. Without Nox Pro, Nox opens in Review, and everything here works: inspect, measure, copy code, comment, check.

Measure and inspect#

Select a layer with Measure and read three things at once: its size under it in blue, the space outside it in red (to its nearest neighbor on each side, or to the edge of its frame), and the space inside it in teal (padding and the gaps between its children). Select two layers to see the distance between them. With one selected, hold ⌥ and point at another to measure to it; holding ⌥ also measures with Inspect or the Move tool, so you need not switch tools.

Code shows the selection written as SwiftUI or CSS, a start for whoever builds it. A property that follows a variable is written through it.

The Code popover: the selection as SwiftUI, with CSS beside it and Copy
The Code popover: the selection as SwiftUI, with CSS beside it and Copy
With an agent

inspect gives an agent the same: a layer's box, its distance from each edge of what it is in, what it follows, and its code. With to, it measures to another layer:

{"node": "SIGN_IN_BUTTON_ID", "to": "PASSWORD_ID"}

The reply's distance has down, the gap between the two (here 24), and the distance between each pair of edges.

Comments#

Anyone who opens the file can comment, on the free tier as well: those who look at a design are the ones with something to say about it.

By hand
  1. In Review, press C and click a place on the canvas or a layer. Type the comment.
  2. A comment on a layer goes where the layer goes. Its pin shows in Design as well as in Review.
  3. Click a pin to open its thread: Reply (with ⇧↩ for a new line), Resolve, and Delete.
  4. Select nothing to see the page in the inspector: its Comments section lists the comments and says how many are open. Click one to open it.
A thread: a question from Mai and Claude's answer
A thread: a question from Mai and Claude's answer
The page's Comments section: two open comments
The page's Comments section: two open comments

Comments are kept in the document beside the design. They are not drawn and not exported. On the free tier a comment is not undone with ⌘Z; delete it instead.

With an agent
Read the open comments on this page and answer each one. Fix what you can and resolve those comments.

The agent calls comments with nothing to list them, or with "unresolved": true for the open ones. To answer, it adds a reply:

{"add": {"text": "Agreed. #5B6272 gives 6.1 to 1.", "reply_to": "COMMENT_ID"}}

To leave a note on a layer, it gives on, and by if not Claude:

{"add": {"text": "The lede is hard to read on white. Darken it?", "on": "LEDE_ID", "by": "Mai"}}

And to close the thread, {"resolve": "COMMENT_ID"}; reopen and delete take an id the same way.

Ask your agent to leave a comment wherever it made a choice you should confirm. You then review its work where the work is.

Check Design#

The design check looks the page over for what a careful reviewer would raise:

CheckWhat it finds
contrastText below 4.5 to 1 against what is behind it (the WCAG level for ordinary text), and letters too small to read
small_targetsAnything that does something when clicked and is smaller than 44 × 44
clippedLayers cut off by the frame they are in
near_colorsA color used once that is almost another in use
unusedComponents shown nowhere, styles and variables nothing follows
fontsFonts not installed on the Mac
tokensA color set by hand that a variable holds exactly; a binding to a variable that is gone
textText that is cut or overflows, in each language mode

Contrast is measured in the mode each frame shows, so check a Dark copy too.

By hand

In Review, press ⇧K. The faults are listed in the sidebar, each with the layer's name, the kind of check, what is wrong and what would put it right. Click one to select the layer. Run again checks the page as it is now; ⇧K again, or the cross, shuts the list.

Six faults on a sign-in screen: a pale lede, a small link, small print, a layer past its frame's edge, a near color and a text too wide for its box
Six faults on a sign-in screen: a pale lede, a small link, small print, a layer past its frame's edge, a near color and a text too wide for its box
With an agent

The agent calls check_design, on the page or on one frame with root:

{"root": "SIGN_IN_ID"}

On the sign-in screen above it finds, among others:

{"check": "small_targets", "fix": "make it at least 44 by 44, or put the interaction on a larger layer around it", "name": "Forgot link", "node": "FORGOT_LINK_ID", "problem": "does something when clicked and is 90 by 22: smaller than a finger (44 by 44)"}

checks runs some checks only, such as ["contrast", "small_targets"]. With "modes": ["Language=de"], the text check lays every text out again with its German words and reports what no longer fits.

Make the check the last step of every task you give an agent: "then run check_design and fix what it finds". It costs one call and catches the mistakes that are easy to miss.