Skip to content

  8 min read

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.

An Appetite UI large title bar at large scale: a back button, the title Projects and a round blue add buttonAn Appetite UI large title bar at large scale: a back button, the title Projects and a round blue add button
On this page
  1. Why generic
  2. What you need
  3. Start running
  4. Agent files
  5. The brand
  6. The prompt
  7. Check the diff
  8. Platforms and dark
  9. Limits
  10. The free base
  11. Questions
  12. Sources

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:

TerminalIn the starter folder, as its README says
npm install
npx expo start     # i for the iOS Simulator, a for the Android emulator, or scan the QR code with Expo Go

The 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:

The agent files in the App Starter, and who reads them
FileRead byWhat it says
CLAUDE.mdClaude Code, at the start of every sessionThe rules: library component first, every value from the theme, branch on the theme's platform, run the checks before finishing
AGENTS.mdCursor, Codex and other agentsThe same rules
.cursor/rules/appetite-ui.mdcCursor, attached when a .tsx file is in contextThe same rules, scoped to screen files
.claude/skills/appetite-ui/Claude Code, as a skillOne file per component with props, the Figma mapping and an example; the tokens; the platform layer

Claude Code reads AGENTS.md only when the project has no CLAUDE.md. In your own project with a CLAUDE.md of its own, add the line @AGENTS.md to it and Claude Code loads both. Cursor reads AGENTS.md 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/theme/brand.ts:

appetite-ui/theme/brand.tsThe change made in this run: one line
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:

PromptEvery adjective hands a decision back to the model
Create a modern, clean projects screen with a nice blue accent and rounded cards.

A prompt that works names parts, states and data:

PromptThe one used in this run, verbatim
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.md, 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:

TerminalThe checks the agent kit asks for
npx tsc --noEmit
npm run check

npm 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.OS 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:

PromptThe follow-up, verbatim
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.md, 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.md, and the rule in .cursor/rules 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

  1. Claude Code documentation, read November 25, 2026How Claude remembers your project
  2. Cursor documentation, read November 25, 2026Rules
  3. read November 25, 2026Appetite UI base on GitHub
  4. the App Starter README, agent kit and changelog, read November 25, 2026Appetite UI Code

Facts last verified .

Written by

Bob Poláček

Designer of Appetite UI. Builds the Figma file, the token architecture and the code output, and answers the support inbox.

Keep reading

  • How to vibe code a mobile app in 2026: the complete setup for iOS and Android

    The 2026 setup for vibe coding an iOS and Android app: the stack agents know best, AGENTS.md, MCP tools, coded components, store rules and security checks.

    AI  23 min read

  • Why vibe-coded apps all look the same, and what a design system changes

    A model fills every decision you left out with its most likely value. Where the sameness comes from, and how named tokens and platform rules change it.

    AI  15 min read

  • Do you need Figma to vibe code an app?

    Without Figma, an agent builds a designed app when the design system lives in code. With Figma, when a designer works on it too. How to set up each path.

    AI  9 min read

Enough reading. Open the file.

The articles explain the decisions. The kit is where you can watch them work.