Canvas & Layout
Responsive patterns
Four layouts come up on almost every project. Each is a few properties on a few frames. The values here are ones you can copy; every call was run in Nox as printed. Read Auto layout first if rows, hug and fill are new to you.
A navigation bar with space between#
The logo holds left, the button holds right, the links sit between, at any width.

| Layer | Values |
|---|---|
| Nav bar | row · height 64 · padding [0, 24] · gap 24 · align space_between · cross_align center |
| Logo | row · gap 8 · hugs |
| Links | row · gap 24 · hugs |
| Sign up | row · height 36 · padding [0, 16] · radius 10 · hugs its label |
- Draw the logo, the links and the button roughly in place inside a frame 64 tall.
- Select the frame, choose Auto and Row in Layout, and set Gap to 24.
- Open More, set the left and right padding to 24, and switch on Space between. Click the middle row of the nine places to center everything vertically.
Build a 64-tall navigation bar: logo left, links Product, Pricing and Docs in the middle, a Sign up button right. Use space between so it holds at any width.
The agent calls create_nodes:
{
"nodes": [
{
"kind": "frame", "name": "Nav bar", "x": 0, "y": 0, "width": 672, "height": 64, "fill": "#FFFFFF",
"layout": {"direction": "horizontal", "gap": 24, "padding": [0, 24], "align": "space_between", "cross_align": "center"},
"children": [
{"kind": "frame", "name": "Logo", "width": "hug", "height": "hug", "layout": {"direction": "horizontal", "gap": 8, "cross_align": "center"}, "children": [
{"kind": "rectangle", "width": 20, "height": 20, "corner_radius": 6, "fill": "#2F6BFF"},
{"kind": "text", "text": "Northwind", "font_family": "Inter", "font_size": 16, "font_weight": 700, "fill": "#111318"}]},
{"kind": "frame", "name": "Links", "width": "hug", "height": "hug", "layout": {"direction": "horizontal", "gap": 24}, "children": [
{"kind": "text", "text": "Product", "font_family": "Inter", "font_size": 14, "font_weight": 500, "fill": "#475467"},
{"kind": "text", "text": "Pricing", "font_family": "Inter", "font_size": 14, "font_weight": 500, "fill": "#475467"},
{"kind": "text", "text": "Docs", "font_family": "Inter", "font_size": 14, "font_weight": 500, "fill": "#475467"}]},
{"kind": "frame", "name": "Sign up", "width": "hug", "height": 36, "fill": "#2F6BFF", "corner_radius": 10,
"layout": {"direction": "horizontal", "padding": [0, 16], "align": "center", "cross_align": "center"}, "children": [
{"kind": "text", "text": "Sign up", "font_family": "Inter", "font_size": 14, "font_weight": 600, "fill": "#FFFFFF"}]}
]
}
]
}For the phone width, duplicate the bar, set its width to 360 and hide Links ("hidden": true). A hidden child takes no room, so the logo and button go to the edges.
A card grid that reflows#
Three across on a wide frame, two on a narrow one, one on a phone, with no second design.

Use a row that wraps. Each card's width is fill, with a least and a most width. The row fits as many cards on a line as their least width allows, then the cards on each line share the line.
| Layer | Values |
|---|---|
| Cards | row · wrap: true · gap 16 · row_gap 16 · width fixed or fill · height hug |
| Each card | width fill · min_size: [200, 0] · max_size: [320, 0] · height hug · padding 16 · radius 14 |
At 672 wide, three cards of 200 and two gaps fit (632), so there are three across, each 213 wide. At 440, two fit, each 212. At 300, one.
Put these feature cards in a grid that reflows: at least 200 wide each, at most 320, 16 between them.
The agent calls create_nodes. Two cards are shown; the rest are the same:
{
"nodes": [
{
"kind": "frame", "name": "Cards", "x": 0, "y": 0, "width": 672, "height": "hug",
"layout": {"direction": "horizontal", "wrap": true, "gap": 16, "row_gap": 16},
"children": [
{"kind": "frame", "name": "Auto layout", "width": "fill", "height": "hug", "min_size": [200, 0], "max_size": [320, 0],
"fill": "#FFFFFF", "stroke": "#E3E6EC", "corner_radius": 14, "layout": {"direction": "vertical", "gap": 6, "padding": 16}, "children": [
{"kind": "text", "text": "Auto layout", "font_family": "Inter", "font_size": 15, "font_weight": 600, "fill": "#111318"},
{"kind": "text", "text": "Rows, columns and grids.", "width": "fill", "font_family": "Inter", "font_size": 13, "fill": "#475467"}]},
{"kind": "frame", "name": "Variables", "width": "fill", "height": "hug", "min_size": [200, 0], "max_size": [320, 0],
"fill": "#FFFFFF", "stroke": "#E3E6EC", "corner_radius": 14, "layout": {"direction": "vertical", "gap": 6, "padding": 16}, "children": [
{"kind": "text", "text": "Variables", "font_family": "Inter", "font_size": 15, "font_weight": 600, "fill": "#111318"},
{"kind": "text", "text": "A value for each mode.", "width": "fill", "font_family": "Inter", "font_size": 13, "fill": "#475467"}]}
]
}
]
}A last line with fewer cards shares its line too, so its cards are wider, up to their most width. If every card must be exactly one column wide, use a grid layout with a fixed number of columns instead (see Grids).
A hero that hugs its content#
The hero is as tall as its words need, whatever the headline's length. No one edits its height by hand again.

| Layer | Values |
|---|---|
| Hero | column · width fill · height hug · padding [56, 32] · gap 16 · cross_align center · radius 16 |
| Headline | width fill · max_size: [520, 0] · centered · 32 / 38 · weight 700 |
| Body | width fill · max_size: [440, 0] · centered · 15 / 22 |
| Actions | row · gap 12 · hugs |
The most width keeps lines at a readable length on a wide frame; fill lets them narrow on a small one.
Make a dark hero section that hugs its content: a tag, a centered headline no wider than 520, a line of body text no wider than 440, and two buttons.
The agent calls create_nodes:
{
"nodes": [
{
"kind": "frame", "name": "Hero", "x": 0, "y": 0, "width": 672, "height": "hug", "fill": "#14161B", "corner_radius": 16,
"layout": {"direction": "vertical", "gap": 16, "padding": [56, 32], "cross_align": "center"},
"children": [
{"kind": "text", "text": "Design at the speed of thought", "width": "fill", "max_size": [520, 0], "text_align": "center",
"font_family": "Inter", "font_size": 32, "line_height": 38, "font_weight": 700, "letter_spacing": -0.5, "fill": "#FFFFFF"},
{"kind": "text", "text": "A Mac design tool your agents can drive.", "width": "fill", "max_size": [440, 0], "text_align": "center",
"font_family": "Inter", "font_size": 15, "line_height": 22, "fill": "#B6BDCB"},
{"kind": "frame", "name": "Actions", "width": "hug", "height": "hug", "layout": {"direction": "horizontal", "gap": 12}, "children": [
{"kind": "frame", "name": "Get started", "width": "hug", "height": 44, "fill": "#2F6BFF", "corner_radius": 10,
"layout": {"direction": "horizontal", "padding": [0, 20], "align": "center", "cross_align": "center"},
"children": [{"kind": "text", "text": "Get started", "font_family": "Inter", "font_size": 14, "font_weight": 600, "fill": "#FFFFFF"}]}]}
]
}
]
}A sticky footer bar#
The bar with the main action stays at the bottom of the screen. The content takes whatever is left and scrolls when there is more of it.

| Layer | Values |
|---|---|
| Screen | column · gap 0 · fixed size (390 × 844 for a phone) · clips |
| Header | width fill · height 52 |
| Body | width fill · height fill · column · gap 8 · padding 16 · clips · scrolls: "vertical" |
| Footer | width fill · height hug · padding [12, 16, 20, 16] |
| Button | width fill · height 48 |
The body's height is fill, so it is the only part that gives. With scrolls it scrolls under the bar when the prototype is played.
- Make the screen a Column with a gap of 0.
- Set the body's H to Fill and switch on Clip what is outside it under More.
- Leave the footer's H at Hug, and set the button's W to Fill.
Make this screen a column with a sticky check-out bar: header 52 tall, a body that fills the rest and scrolls, and a footer with a full-width 48 pt button.
The agent calls create_nodes:
{
"nodes": [
{
"kind": "frame", "name": "Bag", "x": 0, "y": 0, "width": 390, "height": 844, "fill": "#F4F5F8", "clips_content": true,
"layout": {"direction": "vertical", "gap": 0},
"children": [
{"kind": "frame", "name": "Header", "width": "fill", "height": 52, "fill": "#FFFFFF",
"layout": {"direction": "horizontal", "padding": [0, 16], "cross_align": "center"},
"children": [{"kind": "text", "text": "Your bag", "font_family": "Inter", "font_size": 17, "font_weight": 700, "fill": "#111318"}]},
{"kind": "frame", "name": "Body", "width": "fill", "height": "fill", "clips_content": true, "scrolls": "vertical",
"layout": {"direction": "vertical", "gap": 8, "padding": 16},
"children": [{"kind": "rectangle", "name": "Item", "width": "fill", "height": 64, "corner_radius": 12, "fill": "#FFFFFF"}]},
{"kind": "frame", "name": "Footer", "width": "fill", "height": "hug", "fill": "#FFFFFF",
"layout": {"direction": "vertical", "padding": [12, 16, 20, 16]},
"children": [{"kind": "frame", "name": "Check out", "width": "fill", "height": 48, "fill": "#2F6BFF", "corner_radius": 10,
"layout": {"direction": "horizontal", "align": "center", "cross_align": "center"},
"children": [{"kind": "text", "text": "Check out · $36", "font_family": "Inter", "font_size": 14, "font_weight": 600, "fill": "#FFFFFF"}]}]}
]
}
]
}If the whole screen scrolls instead of one part of it, put scrolls on the screen and stays_put: true on the bar: it then stays where it is while the rest scrolls.