use-cases/frontend-designs.md +41 −70
11# Build responsive front-end designs | Codex use cases---
22 name: Build responsive front-end designs
33[← All use cases](https://developers.openai.com/codex/use-cases)tagline: Turn screenshots and visual references into responsive UI with visual checks.
44 summary: Use Codex to translate screenshots and design briefs into code that
55Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/frontend-designs/?export=pdf) matches the repo's design system, then use Playwright to compare the
66 implementation to your references for different screen sizes and iterate until
77Use Codex to translate screenshots and design briefs into code that matches the repo's design system, then use Playwright to compare the implementation to your references for different screen sizes and iterate until it looks right. it looks right.
88 featured: true
99IntermediatecoverImage: /codex/use-cases/frontend-designs-use-case.png
1010 skills:
11111h - token: $playwright
12 url: https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive
13 description: Open the app in a real browser to verify the implementation and
14 iterate on layout and behavior.
15bestFor:
16 - Creating new front-end projects from scratch
17 - Implementing already designed screens or flows from screenshots in an
18 existing codebase
19starterPrompt:
20 body: >-
21 Implement this UI in the current project using the screenshots and notes I
22 provide as the source of truth.
12 23
13Related links
14 24
1525[Codex skills](https://developers.openai.com/codex/skills) Requirements:
16 26
1727## Best for - Reuse the existing design system components and tokens.
18 28
1929 - Creating new front-end projects from scratch - Translate the screenshots into this repo's utilities and component
2030- Implementing already designed screens or flows from screenshots in an existing codebase patterns instead of inventing a parallel system.
21 31
2232## Skills & Plugins - Match spacing, layout, hierarchy, and responsive behavior closely.
23 33
2434- [Playwright](https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive) - Respect the repo's routing, state, and data-fetch patterns.
25 35
2636 Open the app in a real browser to verify the implementation and iterate on layout and behavior. - Make the page responsive on desktop and mobile.
27 37
2838| Skill | Why use it | - If any screenshot detail is ambiguous, choose the simplest implementation
2939| --- | --- | that still matches the overall direction and note the assumption briefly.
30| [Playwright](https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive) | Open the app in a real browser to verify the implementation and iterate on layout and behavior. |
31 40
32## Starter prompt
33 41
34Implement this UI in the current project using the screenshots and notes I provide as the source of truth.
35 Requirements:
36 - Reuse the existing design system components and tokens.
37- Translate the screenshots into this repo's utilities and component patterns instead of inventing a parallel system.
38 - Match spacing, layout, hierarchy, and responsive behavior closely.
39 - Respect the repo's routing, state, and data-fetch patterns.
40 - Make the page responsive on desktop and mobile.
41- If any screenshot detail is ambiguous, choose the simplest implementation that still matches the overall direction and note the assumption briefly.
42 Validation:42 Validation:
43- Compare the finished UI against the provided screenshots for both look and behavior.
44- Use $playwright-interactive to check that the UI matches the references and iterate as needed until it does.
45 43
4644Implement this UI in the current project using the screenshots and notes I provide as the source of truth. - Compare the finished UI against the provided screenshots for both look and
4745 Requirements: behavior.
4846 - Reuse the existing design system components and tokens.
4947- Translate the screenshots into this repo's utilities and component patterns instead of inventing a parallel system. - Use $playwright-interactive to check that the UI matches the references
5048 - Match spacing, layout, hierarchy, and responsive behavior closely. and iterate as needed until it does.
5149 - Respect the repo's routing, state, and data-fetch patterns. suggestedEffort: medium
5250 - Make the page responsive on desktop and mobile.relatedLinks:
5351- If any screenshot detail is ambiguous, choose the simplest implementation that still matches the overall direction and note the assumption briefly. - label: Codex skills
5452 Validation: url: /codex/skills
5553- Compare the finished UI against the provided screenshots for both look and behavior.---
56- Use $playwright-interactive to check that the UI matches the references and iterate as needed until it does.
57 54
58## Introduction55## Introduction
59 56
100Use additional screenshots or short notes if they help clarify states that are not obvious from one image.97Use additional screenshots or short notes if they help clarify states that are not obvious from one image.
101 98
102### Suggested follow-up prompt99### Suggested follow-up prompt
103
104[current implementation image] [reference image]
105This doesn't look right. Make sure to implement something that matches closely the reference:
106[if needed, specify what is different]
107
108## Related use cases
109
110[
111
112### Turn Figma designs into code
113
114Use Codex to pull design context, assets, and variants from Figma, translate them into code...
115
116Front-end Design](https://developers.openai.com/codex/use-cases/figma-designs-to-code)[
117
118### Generate slide decks
119
120Use Codex to update existing presentations or build new decks by editing slides directly...
121
122Data Integrations](https://developers.openai.com/codex/use-cases/generate-slide-decks)[
123
124### Add iOS app intents
125
126Use Codex and the Build iOS Apps plugin to identify the actions and entities your app should...
127
128iOS Code](https://developers.openai.com/codex/use-cases/ios-app-intents)