← Back to blog
November 30, 2026

Why your AI agent's mobile screens all look the same

Sanket SahuCo-founder, GeekyAnts and gluestack

Coding agents are now good at building apps. Ask Claude Code, Cursor, Codex or Lovable for a feature and you get working state, API calls, navigation and forms, often on the first try. Ask the same agent for a mobile screen and you get something that works and looks like every other app it has built. The logic is rarely the problem anymore. The screens are.

What you actually get

Prompt an agent for a sign-in screen, a home tab or a product page with nothing to go on, and the tells are easy to spot:
  • A centered card on a flat background, with a title, two inputs and a button.
  • Default type: one size for the title, one for everything else, the same weight throughout.
  • A plain blue button, because blue is the safest guess.
  • No motion. Nothing animates in, and nothing responds to a press beyond a default opacity change.
  • Dark mode as an afterthought: missing, or the light screen with the colors flipped.
  • Layouts that ignore the safe area, so a header slides under the notch or a button sits on the home indicator.
None of it is wrong. It just looks like a template, and your users notice.

Why it happens

An agent writes the most likely code for what you asked. With nothing specific to aim at, the most likely screen is the average of every screen it has seen, and the average is plain. Mobile makes it worse. A good mobile screen depends on details a text prompt rarely mentions: insets on every edge, gestures, what moves and with what timing, how a list behaves as it scrolls under a header, and two complete color themes. If the prompt does not say, the agent picks the default for each one, and a stack of defaults is what generic looks like.

What does not work

Longer prompts. "Modern, clean, with a soft gradient and subtle animations" is as vague to an agent as it is to you. Every adjective leaves room for the safest reading. You can write paragraphs about a screen and still not pin down spacing, hierarchy or timing. Screenshots alone. A screenshot helps with layout and color, but it is one frame in one theme. It loses the motion, the structure of the components, the press states and the dark mode. The agent guesses the rest, and it guesses plainly. Generic UI kits. A component library gives the agent good parts: buttons, inputs, sheets. It does not give it a screen. We build one, gluestack-ui, so we know this well. Good parts arranged in an average layout still make an average screen.

What works

A finished reference screen, in code, inside the prompt. When the prompt carries a complete screen with real layout, spacing, motion and both color modes, the agent stops guessing. It has a structure to follow, values to keep and animations to preserve. Then its real strength takes over: adapting code to your project. It swaps in your theme, your components and your conventions, whether you use NativeWind, gluestack-ui or a design system of your own. The design comes from the reference. The fit comes from the agent. Each side does what it is good at.

How we use this at gluestack

This is why we built gluestack's screen catalog. Each screen is one plain React Native file with Reanimated motion, safe-area insets and its own light and dark palette. You copy the screen's prompt and paste it into your agent. Along with the full source, the prompt tells the agent to style the screen the way your project already styles screens, and to keep the layout and the animations. We ran it with Claude Code in three projects on November 28 and 29:
  • In a NativeWind app, it rewrote the screen as Tailwind classes on the project's own color tokens.
  • In a plain Expo app with its own theme, it used the project's
    useTheme
    hook and
    ThemedText
    component.
  • In a gluestack-ui app, it used gluestack's
    Input
    ,
    Button
    and
    Heading
    with the project's tokens.
One thing we learned along the way: without the line that asks the agent to match the project's styling, it kept the screen's own styles. A reference tells the agent what to build. You still have to ask it to make the result yours.

A checklist for prompting mobile UI

With or without gluestack, give the agent these five things when you ask for a screen:
  • A reference screen. In code if you can get it; otherwise a screenshot plus a description of the motion. Something concrete to aim at beats any number of adjectives.
  • The states you need. Loading, empty, error, success, a very long name, a missing image. If you do not list them, you get the happy path only.
  • Both themes. Say that light and dark both need to be designed, and where the colors come from: your tokens, your theme hook.
  • Safe areas. Say whether the screen draws edge to edge, and that it should read the insets instead of wrapping everything in a safe-area view. Name the edges that matter: the notch, the home indicator, the keyboard.
  • What should move, and how. Which elements animate in, what responds to a press, what happens on scroll, and roughly how fast. "A spring on press and a short fade on mount" is something an agent can build. "Subtle animations" is not.
Then end with one line: match my project's components, theme and conventions.

Try it

Browse the screens at gluestack.io/patterns. Free screens run live on their pages, so you can see the motion before you copy anything. For what launched yesterday and how pricing works, read the launch post.