---
title: Vibe coding a mobile app UI: from a prompt to a screen that looks designed
description: 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.
author: Bob Poláček
topic: AI
published: 2026-11-27
updated: 2026-11-27
verified: 2026-11-27
source: https://www.appetiteui.com/blog/vibe-coding-mobile-app-ui
---

# 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.

By Bob Poláček, updated November 27, 2026, last verified November 27, 2026.

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.

**In short**

- Start from an app that already runs, with components and tokens inside the repository.
- Let the agent files do the briefing. The starter ships CLAUDE.md, AGENTS.md, Cursor rules and a skill.
- Set the brand first. It is one value in `brand.ts`, and the agent kit asks for it before any screen.
- Prompt for parts, states and data. Every adjective you leave out is a decision the system already made.
- Run the type check and `npm run check`, then look at the screen. The check catches values; your eye catches layout.

## 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](https://www.appetiteui.com/blog/why-vibe-coded-apps-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](https://www.appetiteui.com/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](https://www.appetiteui.com/blog/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:

**Terminal** In the starter folder, as its README says

```bash
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](https://www.appetiteui.com/blog/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**

| File | Read by | What it says |
| --- | --- | --- |
| `CLAUDE.md` | 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.md` | Cursor, Codex and other agents | The same rules |
| `.cursor/rules/appetite-ui.mdc` | Cursor, attached when a `.tsx` file is in context | The same rules, scoped to screen files |
| `.claude/skills/appetite-ui/` | 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.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.ts** The change made in this run: one line

```ts
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:

**Prompt** Every adjective hands a decision back to the model

```txt
Create a modern, clean projects screen with a nice blue accent and rounded cards.
```

A prompt that works names parts, states and data:

**Prompt** The one used in this run, verbatim

```txt
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.

**The Projects screen from one prompt, on an iPhone simulator**

![A Projects screen: a back button, the title Projects and a round blue add button, a Search projects field, a segmented control with Active selected and Archived, and four rows, Mobile app, Website, Marketing and Design system, each with a blue icon tile, an open task count badge and a chevron](https://www.appetiteui.com/images/blog/vibe-coding-mobile-app-ui/vibe-coding-mobile-app-ui--01.webp)

*The screen the agent built, after the follow-up prompt, in the default blue. Appetite UI Code App Starter, Claude Code, iPhone simulator.*

![The same Projects screen with an orange brand: the add button, the icon tiles and the count badges turn orange, everything else is unchanged](https://www.appetiteui.com/images/blog/vibe-coding-mobile-app-ui/vibe-coding-mobile-app-ui--02.webp)

*The same screen after one line in brand.ts. Appetite UI Code App Starter, iPhone simulator.*

## What do you check before you accept the screen?

Run the two checks, then look at the screen on a device:

**Terminal** The checks the agent kit asks for

```bash
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:

**Prompt** The follow-up, verbatim

```txt
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](https://github.com/bpolacekcz/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](https://www.appetiteui.com/code).

**In short**

- Decisions first: components, tokens and rules in the repository, the brand in one file.
- Prompts name parts, states and data; no adjectives.
- Checks catch values, your eye catches layout. Both, every time.

## 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](https://www.appetiteui.com/blog/claude-code-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: How Claude remembers your project](https://code.claude.com/docs/en/memory), read November 25, 2026
2. [Cursor documentation: Rules](https://cursor.com/docs/context/rules), read November 25, 2026
3. [Appetite UI base on GitHub](https://github.com/bpolacekcz/appetite-ui-base), read November 25, 2026
4. [Appetite UI Code](https://www.appetiteui.com/code), the App Starter README, agent kit and changelog, read November 25, 2026
