Keep AI-Built App Screens Consistent with ScreenBench
Use one design system across your app screens. Click an element on the local canvas to leave a note, then ask your coding agent to apply the change.
Works with Claude Code · Codex · Cursor · Antigravity
Requirements
- Node.js 20+
- npm
Tutorial
Make four screens feel like one app
ScreenBench brings reference screens, design tokens and a local canvas together. Give your coding agent one set of colors, type sizes and spacing rules before it builds the screens. To request a change, select the element on the canvas, leave a note, and ask your coding agent to apply it.
Choose a design workflow
- huashu-design helps you explore and choose among design directions.
- baoyu-design provides a local editor for refining generated designs.
- Use ScreenBench when you’ve picked a visual style, want to apply it across several screens, and need to leave feedback on individual elements.
Pick a reference with several screens
Open the online studio and compare the home, detail and profile screens in one system. Choose a free system that shows how its primary button, cards and heading hierarchy repeat across screens. ScreenBench lists each design system as a style. Note the style name shown in the studio so you can match it to a local option later.
The repository lists the local canvas, MCP tools, 24 free systems and 8 free animation effects in the community edition. Pro brings the totals to 41 systems and 36 animation effects. The community edition is enough for this exercise.
Connect a local project
Open a terminal in your project folder. Use Node.js 20 or later with npm. For Codex, run:
npm i -g screenbench
screenbench setup codex --dir ./design
screenbench serve --dir ./design
For Claude Code, Cursor or Antigravity, replace codex in the setup command with claude, cursor or antigravity.
- Open the address printed in the terminal. Check that the browser shows your local project canvas.
- Start a new coding agent session and ask it to call ScreenBench’s
get_design_context, report the project directory, and repeat one design rule it read. Check that the returned directory matches the workbench’sdesignfolder. You’ll select the practice style next.
Build a four-screen reading list
Fill in the style name you noted in the studio. The agent matches it using list_styles and passes the matching ID to set_style. If it finds no match, choose a free style from the returned list before continuing.
Match [style name] using list_styles, select its ID with set_style,
and call get_design_context to read that style’s design rules.
Build a reading list app with four screens: Home for current reads, Explore for
categories, Detail for one book, and Profile for saved books.
Share colors, type sizes, spacing and button rules across the screens.
Save them in the configured design folder and open the workbench for review.
Compare the four screens on the canvas. Look for consistent emphasis on primary buttons, matching type sizes for headings at the same level and matching card spacing. Start with the most visible mismatch.
Select an element and edit just that one
- Press
Cin the local canvas and click the main button on the detail screen. Leave a note asking to change its label to “Add to reading list” while keeping its button style. - Back in the coding agent, ask it to call
get_feedback, identify the target, and apply the note on the detail screen. - Check the updated canvas. Confirm the label changed and the labels and styles on the other screens stayed the same. Once you have checked it, ask the agent to mark the feedback as resolved.
For your own app, define the job of each screen and list the rules they must share. In each note, name the screen, element and requested change so you can verify its scope. For example: “Event details → signup button → change the label to ‘View sessions’ and keep the button style.”