Agents & MCP

Prompting for high-end designs

An agent draws what you describe, at the level of detail you describe it. "Make a landing page" gets a generic page. A brief with a frame size, a palette, a type scale and a grid gets a design that holds together, because every choice the agent makes has something to answer to. This article lists what to say, in the order that matters, and ends with five prompts you can copy.

Say the screen and the platform#

Give the frame's size in numbers and say what it is for. The agent sets the frame, the safe area and the touch targets from it.

  • Website: 1440 × 900 desktop hero, 12 columns, 96 margin, 24 gutter
  • Phone: 390 × 844 iPhone screen, safe area 47 top and 34 bottom
  • Game: 1920 × 1080 HUD, safe area 54 top and bottom, 96 left and right
  • Icons: 24 × 24 frames, 2 unit stroke, round caps and joins

Give the palette as variables#

Ask for colors as variables, not as hex values on each layer. A design that follows variables can be restyled, themed and handed to code by name.

With an agent
Before drawing, make a variable set "Theme" with modes Light and Dark: color/surface, color/text, color/text-muted, color/accent and radius/card. Bind every fill to one of them.

The agent calls set_variables:

{
  "set": "Theme",
  "modes": ["Light", "Dark"],
  "variables": [
    { "name": "color/surface", "values": { "Light": "#FFFFFF", "Dark": "#1B1E26" } },
    { "name": "color/text", "values": { "Light": "#111318", "Dark": "#F4F5F8" } },
    { "name": "color/text-muted", "values": { "Light": "#5E6472", "Dark": "#A3A9B8" } },
    { "name": "color/accent", "values": { "Light": "#5B5BD6", "Dark": "#8E8EF5" } },
    { "name": "radius/card", "values": 16 }
  ]
}

Give a type scale and a spacing grid#

Name the fonts and the sizes, and one number that all spacing is a multiple of.

  • Type: Space Grotesk 72/76 bold for the headline, Inter 20/30 for body, Inter 13 semibold for labels
  • Spacing: 8 grid: gaps 8, 16, 24; padding 24 in cards, 96 at the page's sides
  • Corners: 16 on cards, 26 on buttons 52 high

These fonts come with Nox: Inter, Geist, DM Sans, Manrope, Plus Jakarta Sans, Rubik, Roboto, Space Grotesk, Lora and JetBrains Mono. A font the Mac does not have is drawn in another face, so name one you have.

Give references in words#

An agent cannot open the site you have in mind. Describe what you like about it: dark ground, one soft violet glow behind the product panel, a lot of empty space, no borders heavier than 1. Three such phrases steer more than an adjective like "modern".

Ask for structure#

Say how the design is to be built, not only how it looks.

  • Auto layout: use auto layout for every row and column, hug or fill, no hand-placed x and y inside a card. Text is then measured by the layout, and nothing overlaps when a label changes.
  • Components: make the row a component and place three instances with overrides. One change then restyles all of them.
  • Names: name every layer for what it is. Names become asset file names and string keys later.

Ask for a check and a look before it finishes#

Two tools catch most of what a first draft gets wrong. Ask for both by name.

  • check_design reports what a reviewer would raise: low contrast, layers cut off, small targets, near-duplicate colors, colors set by hand that a variable holds.
  • render_preview returns a picture of the frame, so the agent sees what it drew.
Before you say you are done: run check_design on the frame and fix what it finds, then render_preview and look at the result. Tell me what you changed.

Iterate in small turns#

Each turn waits for your review, and you can accept or revert it whole (see How agents work in Nox). Small turns make that decision easy. Ask for the layout first, then color, then detail. Select the part you mean and say "this card". After a good turn, accept it before asking for the next.

Five prompts to copy#

A website hero#

In Nox, draw a 1440 × 900 desktop hero for Relay, a release tool. Dark ground #0B0D12 with one soft violet glow (#5B5BD6) behind the right half. 12 columns, 96 margin, 24 gutter. Left: a small pill "New · Rollbacks in one click", the headline "Ship on Tuesday. Sleep on Tuesday." in Space Grotesk 72/76 bold #F4F5F8, a 520 wide paragraph in Inter 20/30 #A3A9B8, then two buttons 52 high: "Start free" filled #8E8EF5 and "See how it works" outlined. Right: a 540 × 500 panel #171A22, radius 24, with a release name, a green status pill, three stats and a bar chart. Top: a nav with the logo, four links and "Sign in". Auto layout everywhere. Run check_design and render_preview before you finish.
A hero to this brief: 1440 × 900, Space Grotesk 72 over Inter 20, drawn with one create_nodes call
A hero to this brief: 1440 × 900, Space Grotesk 72 over Inter 20, drawn with one create_nodes call

An app screen#

In Nox, draw a 390 × 844 iPhone screen "Today" for a workout app. Ground #F4F5F8, safe area 47 top and 34 bottom, 20 side padding, 8 grid. A date line in Inter 13 semibold #5E6472, the title "Today" in Inter 34 bold. A goal card 168 high, radius 24, violet gradient #5B5BD6 to #A35BD6, with "4 of 5 workouts" and a progress bar at 80%. Then "Up next" and three rows. Make the row a component (white, radius 16, a 44 tile, title, detail, time) and place three instances with overrides. A tab bar pinned to the bottom. Run check_design, fix the contrast it finds, and show me a preview.

A 2D game HUD#

In Nox, draw a 1920 × 1080 HUD for a 2D action game, safe area 54 top and bottom and 96 at the sides, everything inside it. Top left: a round portrait 64 and two meters 420 × 22, health #EF4444 at 72% and energy #38BDF8 at 45%, on a dark translucent track. Top right: the score in Space Grotesk 56 bold with tabular digits, right aligned, and a combo line in #F59E0B. Bottom left: four ability slots 88 square, radius 18, keys Q W E R, one of them dimmed. Bottom right: a round minimap 240. Pin each group to its corner so that it holds when the frame is resized. Give the score a text_fit of 28 so that long scores shrink instead of overflowing.
A HUD to this brief, 1920 × 1080: each group is pinned to its corner of the safe area
A HUD to this brief, 1920 × 1080: each group is pinned to its corner of the safe area

An icon set#

In Nox, draw six icons for a tab bar: home, search, calendar, chart, bell, person. Each in its own 24 × 24 frame with no fill and icon_grid on. Paths only, no fill, one stroke #111318 of width 2, round caps and joins, every point on a whole unit and 2 units clear of the frame's edge. After each icon run check_icon and fix what it reports, then render_preview with sizes 16, 24 and 48 and look at the 16.

A restyle to a dark mode#

The selected screen follows the variable set "Theme", which has only a Light mode. Add a Dark mode with set_variables: surface #1B1E26, text #F4F5F8, muted text #A3A9B8, accent #8E8EF5. Do not change any layer's own fill. Then run check_design to find colors set by hand that should follow a variable, bind them, and show me render_preview with mode "Dark" beside the light one.

Next#