Vibe coding a mobile app UI: from a prompt to a screen that looks designed
An agent builds generic screens when it guesses colors, spacing and components. Put them in the repo, set the brand, prompt for content and check the diff.


On this page
To vibe code a mobile app UI that looks designed, give the agent decisions before you give it a prompt: coded components and tokens in the repository, rules that tell it to use them, and a brand set in one file. Then prompt for content and states, not style, and check the diff before the screen.
The agent was Claude Code, the app the Appetite UI Code App Starter on Expo SDK 58, and every result below is from that run on an iPhone simulator, in light and dark.
Why does a vibe-coded screen look generic?
Because the prompt leaves every visual decision open, and the model fills each blank with the most common value it knows. A better adjective does not fix that. Components that already exist in the repository do, together with rules that say which one to use. Where the sameness comes from is in Why vibe-coded apps all look the same; this guide is the practical half.
What do you need before the first prompt?
- A coding agent that reads project files: Claude Code, Cursor or Codex.
- An Expo app with coded components and tokens. Here that is Appetite UI Code, whose App Starter runs in Expo Go on SDK 58. The free base on GitHub works for a first try, with 10 components (see the last section).
- Expo Go on a phone, or the iOS Simulator or an Android emulator on your computer.
The full setup around this, from the stack to the store rules, is in How to vibe code a mobile app.
How do you start from an app that already runs?
Open the starter folder of Appetite UI Code and start it:
npm install
npx expo start # i for the iOS Simulator, a for the Android emulator, or scan the QR code with Expo GoThe gallery opens with a first screen and the Tasks, Foodie and AI flows, plus onboarding, empty state and settings screens, in light and dark. Navigation, fonts and the theme work before the agent writes a line, so the agent edits a running app instead of scaffolding one. A UI kit for Expo covers Expo Go versions and development builds.
Which files tell the agent what to use?
The starter carries the agent kit in place, so there is nothing to add:
| File | Read by | What it says |
|---|---|---|
CLAUDE | Claude Code, at the start of every session | The rules: library component first, every value from the theme, branch on the theme's platform, run the checks before finishing |
AGENTS | Cursor, Codex and other agents | The same rules |
.cursor/ | Cursor, attached when a .tsx file is in context | The same rules, scoped to screen files |
.claude/ | Claude Code, as a skill | One file per component with props, the Figma mapping and an example; the tokens; the platform layer |
Claude Code reads AGENTS only when the project has no CLAUDE. In your own project with a CLAUDE of its own, add the line @AGENTS to it and Claude Code loads both. Cursor reads AGENTS in the root and in subfolders.
The rules are short on purpose. They tell the agent that the values are already decided, where the components are and what to run before it finishes.
When do you set the brand?
Before the first screen. The agent kit asks the agent to pick a brand color that fits the product before it builds anything, and to keep the default blue only when the brief asks for it. The whole brand is one value in appetite-ui/:
import type { AppetiteBrand } from '@appetite-ui/core';
export const brand: AppetiteBrand = {
color: '#ca3500',
radiusScale: 1,
fonts: { body: 'Inter', heading: 'Inter Display' },
};color generates the whole brand scale, dark mode included. radiusScale makes corners square at 0 and rounder above 1. Inter and Inter Display are bundled; another family goes in fontFiles with its faces. If a color cannot keep white labels at WCAG AA, the app stops and prints the failing pairs, so pick a darker one rather than bypass the check.
Set it yourself, or name the brand in your first prompt and let the agent set it. Either way it happens once, and every component and screen follows.
How do you prompt for a screen?
A weak prompt:
Create a modern, clean projects screen with a nice blue accent and rounded cards.A prompt that works names parts, states and data:
Add a Projects screen to the Tasks flow at app/tasks/projects.tsx.
Top Bar with a back button, the title Projects and an add action.
A search field under the top bar.
Segmented Control: Active, Archived.
A list of projects. Each row: an icon, the project name, the number of open tasks as a badge, a chevron.
Empty State when the search finds nothing.
Use the existing components and tokens. No new colors, sizes or fonts.The agent read CLAUDE, then the skill file of each component before using it, and wrote one file. It mapped each part to a component by its Figma name: TopBar, Search, SegmentedControl, IconTile, Badge, Icon, Divider and EmptyState. The library List row has no badge slot, so it built that row itself from the same components and tokens. It left the brand alone, because the prompt said no new colors. Both checks passed before it handed the screen back.
What do you check before you accept the screen?
Run the two checks, then look at the screen on a device:
npx tsc --noEmit
npm run checknpm run check reports every hex or rgb( value, named color, font size, family or weight, padding, margin, gap or radius written as a literal, and every branch on Platform instead of the theme. Each one is a place where the agent guessed. The rules files are context the agent follows, not a lock, and the check is what makes the answer independent of who reads the diff.
In this run both checks were clean, and the screen still had one fault. On the simulator the count badge sat at the top of each row instead of in line with the name. The row was the one part the agent wrote itself, and the library Badge aligns itself to the top of its container. No literal was involved, so no check could see it. One follow-up prompt fixed it:
On the iPhone the open-tasks badge sits at the top of each project row instead of in line with the name. Fix it with the existing components and tokens.The agent found the cause in the component source and centred the badge through its style prop, two lines, no new values. Where a component exists, the agent's output matches the system. Where it composes its own layout, look first.
How do you check iOS, Android and dark mode?
Open the same screen on an iPhone and on an Android device, then switch to dark mode. In the starter's gallery, the Color scheme switch (System, Light, Dark) and the Platform switch (Device, iOS, Material) do both without a second device for the conventions. Look at where the primary action sits, how the top bar behaves and whether text keeps its contrast.
The dark rendering of the screen above needed no prompt: every color comes from the theme, so the dark twin of each picture is the same build with the simulator in dark mode.
What does this not fix?
- A component kit does not design your product. Flows, copy and priorities are still yours.
- The agent can still ignore a rule or compose a layout badly. That is why the checks and the look on a device exist.
- The operating system draws the status bar, the keyboard, the Dynamic Island and widgets.
- The App Starter is React Native. Every Appetite UI component also ships in SwiftUI, Flutter and Jetpack Compose, with the same rules for the agent, but without an example app.
Can you try this without buying anything?
Yes, in React Native. The free Appetite UI base on GitHub is a small slice of the kit, 10 components such as Button, Badge, Checkbox and Text Input, the tokens they read, an example app for Expo Go and an AGENTS, under the MIT licence. It is not an npm package; clone the repository. Run the prompt and the checks against it and you will see whether the method fits your app before you pay. The full component set, the App Starter and the agent kit are in Appetite UI Code.
Questions
Do I need the Figma file to vibe code with Appetite UI?
No. Appetite UI Code has its own tokens and works without Figma. With Appetite UI Complete you also get the Figma file, and the agent can read the same components through Figma MCP, as in Claude Code and Figma: one screen.
Does this work with Cursor?
Yes. Cursor reads the starter's AGENTS, and the rule in .cursor/ is attached whenever a .tsx file is in context.
Should the brand come before or after the screens?
Before. The agent kit asks for it before the first screen, and a screen built on the theme follows a later change anyway. If a screen does not follow a brand change, it holds a hard-coded value, and npm run check shows where.
Does it work with app builders that run in the browser?
Where the tool builds an Expo React Native app and lets you put files in the repository, yes. Not every builder reads AGENTS.md, so check yours.
Will the agent stop producing generic screens?
It stops guessing where a rule or a component exists. Where neither exists, it composes its own layout, and that is where to look first.
Does the same method work in SwiftUI, Flutter or Jetpack Compose?
Yes. Every Appetite UI component ships in all four stacks with agent instructions for each, and the brand goes in at the root of the app. The App Starter, the example app used here, is React Native only.
Sources
Facts last verified .





