Screens

Docs

A screen is a page of an app, such as a customers table or an invoice view, made from this project's components and tokens, so a token change restyles every screen. Screens and marketing pages live together on the project's Pages & screens page, which has its own address, /projects/<id>/screens.

How to use it

Open it from the workbench's Pages & screens button on the breadcrumb row, from the Pages & screens link on the project's card on Projects, or from Open pages & screens in the command palette. The page shows a gallery with a Pages section, then a Screens section, each item a card with a still picture of it.

  • Make one: press New screen, describe it (or click an example chip to fill the box), pick a model and press Make screen, which shows its credit estimate. A Making a screen… card holds its place, with Pause.
  • Open one: click its card. It opens with a side list of the project's items, a toolbar and a box at the bottom.
  • Change one: type the change in the box (Change this screen…) and press Enter (Shift+Enter breaks the line). The result is saved as a new version. Pause stops a change; the work done so far is still paid for.
  • Step back: the version picker in the toolbar lists the last 20, newest first. Choosing an older one makes it current; the next change builds on it.
  • Look at it: click the corner thumbnail to swap light and dark, or show both side by side. Pick a device width, or fill the window (Escape leaves).
  • Rename or delete: the toolbar's ⋯ menu. Rename takes up to 40 characters; only the title changes, and the file name stays. Delete asks to confirm and removes the screen with its versions.
  • Pull it into an app: Add to app shows the npx designsource add --screen command; it needs Pro, and Free sees the upgrade card. See Pulling screens into an app.

Links between screens. A button, a table row or an empty state's action can open another screen of the project. Ask for it in the box: "a View button that opens Customers". The AI knows your other screens and links only to ones that exist. Clicking a link in the picture opens that screen; the gallery's thumbnails ignore clicks. A link to a screen you have since deleted does nothing.

Your tokens, saved or not. The page paints in the project's current tokens, including edits you have not saved in the workbench, and says Showing unsaved token changes while there are any. Saving is in the workbench; Add to app gives your app the saved tokens, and says so while edits wait. Colours, fonts and corners are tokens: change them in the workbench, then come back.

A failed version switch or delete shows its reason in a corner notice. A generation runs on your own key or on credits.

Pages. The Pages section holds a home, features, pricing, about, contact and waitlist page for your own site. See Marketing pages. A generated page from project creation leads it as Custom page, view only (The mockup).

How it works

The model never sees your token table or writes styling. It returns a plan, a short list of kit parts (a header, a table, a form) with their copy, which the page draws with the kit, so colours, corners and fonts come from your tokens.

Each message is one call that sees the item's current plan and your request, not earlier messages. The project runs one make or change at a time, so a second waits while one is running and the page says so with a Pause for it. Credits are metered by usage and never exceed the call's reservation. A failed generation, or one whose screen could not be saved, is not charged.

Screens from Figma. Frames sent from Figma become screens here too: the plugin opens this page with a banner for them. What the kit could not draw from a frame is listed under the screen as Not drawn: …; it shows in the preview only and is not in the pulled code.

What can go wrong

  • This project has 50 screens. Delete one to make another.: the cap is reached; see Limits.
  • This version can't be shown: a stored version that no longer reads as a valid plan. It cannot be changed; pick another version or make a new screen.
  • That screen isn't in this project: the address names a screen that was deleted, mistyped or belongs to another project. All pages and screens goes back to the gallery.
  • A credits or key refusal: add credits or a key and send again.
  • Nothing on this screen changed. Colours, fonts and corners are tokens: change them in the workbench.: the request was for a colour or a font.
  • That screen was deleted.: it was deleted elsewhere and drops from the list.