Skip to content
Codex DesignBETA

Mobile app mockups to SwiftUI code prompt for Codex

Have Codex build the approved HTML screens in your SwiftUI app, matching layout and spacing, using your theme colors and supporting Dynamic Type.

Prompt
Implement the approved onboarding and home screens in our [SwiftUI] app. Match the layout and spacing of the HTML files in [designs/], use the colors in [Theme.swift], support Dynamic Type, and reuse existing components where they fit.
Works with
Codex
From the set
Mobile apps

About this prompt

Codex implements the approved onboarding and home screens in your real app, using the HTML files as the reference for layout and spacing. It takes colors from your existing theme file, supports Dynamic Type so text scales with the user’s settings, and reuses components you already have instead of creating duplicates.

Replace SwiftUI with your framework, such as Jetpack Compose, React Native or Flutter, and point the other two brackets at the folder with your HTML designs and the file that defines your colors. Outside Apple platforms, swap Dynamic Type for the local equivalent, such as respecting the system font scale on Android. If you designed dark mode, mention those files too so both themes are built at once.

Codex has to work inside your repository for this step, since it reads your theme and components. Start with the two screens in the prompt rather than the whole app; once their spacing and components match the mockups, the remaining screens go faster because the patterns already exist in code.

More prompts from this set

An independent plugin for Codex. Not affiliated with or endorsed by OpenAI.