For Compose Multiplatform

Compose Multiplatform screens for Android and iOS.

Every one of the 100 gluestack screens has a prompt that works in Compose Multiplatform. Your coding agent builds the screen once, in shared Kotlin, and it runs on Android and iOS.

Works with Claude Code Cursor Codex VS Codeand other coding agents
Flight search, a gluestack screen
Event detail, a gluestack screen
Top up, a gluestack screen
Event detail, flight search and top up: gluestack screens with prompts that work in Compose Multiplatform.

How it works

One prompt, one native screen.

Three steps, in the Kotlin Multiplatform project you already have.

  1. 01

    Open your project in an agent

    Open your Kotlin Multiplatform project in Claude Code, Cursor, Codex or any coding agent that can edit files and run a build.

  2. 02

    Copy a screen’s prompt

    Pick a screen in the catalog, copy its prompt and paste it in. Or connect the MCP server and ask for a screen by name.

  3. 03

    It builds the screen in Compose Multiplatform

    It writes shared composables in commonMain, with Material 3, both color palettes and the motion, then runs Gradle to check its work.

$ claude

> Add this screen and make it the first one the app opens. [Pasted text #1 +547 lines]

⏺ Write(commonMain/SignInScreen.kt)

⎿ The Sign in screen, in Compose Multiplatform

⏺ Bash(./gradlew :composeApp:assembleDebug)

⎿ BUILD SUCCESSFUL

⏺ Sign in is now the first screen, built once in Compose Multiplatform for Android and iOS.

Or let the agent find it

“Add a gluestack wallet screen to the app, in our brand green.”
With the gluestack MCP server connected, your agent searches all 100 screens, fetches the prompt and builds it in Compose Multiplatform.Set up the MCP server

The screens

Pick a screen. Get it in Compose Multiplatform.

A few of the 100 screens, each with a prompt that works in Compose Multiplatform. Switch light and dark to see both palettes.

Tips

Getting the best result in Compose Multiplatform.

What we would tell a teammate.

  • Keep it in commonMain

    Ask for the screen in commonMain, so one composable serves both platforms. Reach for expect and actual only where a screen truly needs platform code.

  • Load images with Coil

    The screens load photos from URLs. Coil 3 works in common code with a Ktor engine on each platform (OkHttp on Android, Darwin on iOS) and the INTERNET permission. Without an image loader, the agent draws placeholders.

  • Offsets, not negative padding

    Where a screen overlaps elements, the agent should use Modifier.offset. Negative padding compiles, then crashes when the screen opens. The prompt says so; check it in overlapping headers and avatars.

  • Share assets as resources

    Put fonts, bundled images and icons in composeResources, so both platforms read them through Res. Import Lucide icons there as vector drawables where Material has no match.

  • Build both targets, then run it

    Allow ./gradlew in your agent so it compiles Android and the iOS target, not only Android. Then open the app on both: a clean build is not proof the screen shows.

  • Say your app’s name

    Agents sometimes swap the sample brand for your project’s name, or keep it. Name your app and its color in the request, or pass appName and accent through the MCP server.

  • Start with Sign in

    It is free, quick to build and covers the basics: fields, buttons, both palettes and a little motion. A good way to see how your setup does.

Questions, answered.

What do I get?+

A prompt your coding agent follows to build the screen in Compose Multiplatform, in your shared module: the layout, both color palettes, the motion and notes on fitting it to your app. The agent writes the code, so it fits the way your project is built.

Is it native?+

Yes. The agent writes composables in shared Kotlin, compiled to native code on Android and iOS, with no web view and no JavaScript runtime.

What if my UI is native on each platform?+

Then the iOS and Android pages fit better. This page is for projects that share their UI in Compose Multiplatform. With shared logic and native UI, your agent builds the screen in SwiftUI and in Jetpack Compose.

Do I need a new project?+

No. The agent adds the screen to the Compose Multiplatform project you have, in its shared module, and follows the libraries and versions already there.

Will it match my app?+

Yes. The prompt asks the agent to use your project’s theme, components and navigation where it has them, to swap the sample data for yours, and to keep the layout and the motion. Set your app’s name and brand color on the screen’s page before you copy, or say them in the request.

Does Pro work the same?+

Yes. Free and Pro screens build the same way in Compose Multiplatform. Free screens cost nothing. Pro unlocks every screen for $6 a month, billed yearly.

Which agents can do this?+

Any coding agent that can read and edit your project: Claude Code, Cursor, Codex, GitHub Copilot in VS Code and others. With the gluestack MCP server connected, the agent can also search and fetch screens by itself.

Do I need gluestack-ui or anything else installed?+

No. The agent writes shared composables in Kotlin, in your project. Nothing from gluestack is installed, and nothing from gluestack runs in your app.