1# Make granular UI changes | Codex use cases1---
2 2name: Make granular UI changes
3Codex use cases3tagline: Use Codex-Spark for fast, focused UI iteration in an existing app.
4 4summary: Use Codex to make one small UI adjustment at a time in an existing app,
55 verify it in the browser, and keep iterating quickly from a popped-out chat
6 6 window near your preview.
77skills:
8 8 - token: $playwright
9Codex use case9 url: https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive
10 10 description: Open the running app in a real browser, inspect the changed route,
11# Make granular UI changes11 and verify each small UI adjustment before the next iteration.
12 12bestFor:
13Use Codex-Spark for fast, focused UI iteration in an existing app.13 - Existing apps where the main structure is already built and you need small
14 14 visual adjustments
15Difficulty **Easy**15 - Fast product or design review loops where each note should become one
16 16 focused code change
17Time horizon **5m**17 - UI polish passes that need browser verification but should not turn into a
18 18 broad redesign
19Use Codex to make one small UI adjustment at a time in an existing app, verify it in the browser, and keep iterating quickly from a popped-out chat window near your preview.19starterPrompt:
20 20 title: Make One UI Change
21## Best for21 body: >-
22 22 Make this UI change in the existing app:
23- Existing apps where the main structure is already built and you need small visual adjustments23
24- Fast product or design review loops where each note should become one focused code change24 [describe the exact spacing, alignment, color, copy, responsive, or
25- UI polish passes that need browser verification but should not turn into a broad redesign25 component-state adjustment]
26 26
27# Contents27
28 28 Constraints:
29[← All use cases](https://developers.openai.com/codex/use-cases)29
30 30 - Change only the files needed for this UI adjustment.
31Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/make-granular-ui-changes/?export=pdf)31
32 32 - Reuse existing components, tokens, icons, and layout patterns.
33Use Codex to make one small UI adjustment at a time in an existing app, verify it in the browser, and keep iterating quickly from a popped-out chat window near your preview.33
34 34 - Keep behavior, data flow, and routing unchanged unless I explicitly ask
35Easy35 for it.
36 36
375m37 - Start or reuse the dev server, inspect the current UI in the browser, make
38 38 the smallest patch, and verify the result visually.
39Related links39
40 40
41[Codex-Spark](https://developers.openai.com/codex/speed#codex-spark) [Floating pop-out window](https://developers.openai.com/codex/app/features#floating-pop-out-window)41 Stop after this one change and summarize the files changed plus the browser
42 42 check you ran.
43## Best for43 suggestedModel: gpt-5.3-codex-spark
44 44 suggestedEffort: low
45- Existing apps where the main structure is already built and you need small visual adjustments45relatedLinks:
46- Fast product or design review loops where each note should become one focused code change46 - label: Codex-Spark
47- UI polish passes that need browser verification but should not turn into a broad redesign47 url: /codex/speed#codex-spark
48 48 - label: Floating pop-out window
49## Skills & Plugins49 url: /codex/app/features#floating-pop-out-window
50 50---
51- [Playwright](https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive)
52
53 Open the running app in a real browser, inspect the changed route, and verify each small UI adjustment before the next iteration.
54
55| Skill | Why use it |
56| --- | --- |
57| [Playwright](https://github.com/openai/skills/tree/main/skills/.curated/playwright-interactive) | Open the running app in a real browser, inspect the changed route, and verify each small UI adjustment before the next iteration. |
58
59## Starter prompt
60
61Make this UI change in the existing app:
62[describe the exact spacing, alignment, color, copy, responsive, or component-state adjustment]
63Constraints:
64- Change only the files needed for this UI adjustment.
65- Reuse existing components, tokens, icons, and layout patterns.
66- Keep behavior, data flow, and routing unchanged unless I explicitly ask for it.
67- Start or reuse the dev server, inspect the current UI in the browser, make the smallest patch, and verify the result visually.
68Stop after this one change and summarize the files changed plus the browser check you ran.
69
70Open in the Codex app
71
72Make this UI change in the existing app:
73[describe the exact spacing, alignment, color, copy, responsive, or component-state adjustment]
74Constraints:
75- Change only the files needed for this UI adjustment.
76- Reuse existing components, tokens, icons, and layout patterns.
77- Keep behavior, data flow, and routing unchanged unless I explicitly ask for it.
78- Start or reuse the dev server, inspect the current UI in the browser, make the smallest patch, and verify the result visually.
79Stop after this one change and summarize the files changed plus the browser check you ran.
80 51
81## Introduction52## Introduction
82 53
85 56
86This works best as a tight loop: one visual note, one focused edit, one browser check, then the next note.57This works best as a tight loop: one visual note, one focused edit, one browser check, then the next note.
87 58
88You can use the [Codex Spark model](https://developers.openai.com/codex/models#gpt-53-codex-spark) for this59You can use the [Codex Spark model](https://developers.openai.com/codex/models) for this task. It is
89task. It is available on Pro plans.60 available on Pro plans.
90 61
91## Pick your model62## Pick your model
92 63
93For fast UI iteration, start with `gpt-5.3-codex-spark` if you have access to it. It is less capable that our general-purpose models, but is designed for real-time coding iteration. If you don’t have access to it, use `gpt-5.5` with `medium` or `low` reasoning effort.64For fast UI iteration, start with `gpt-5.3-codex-spark` if you have access to it. It is less capable that our general-purpose models, but is designed for real-time coding iteration. If you don't have access to it, use `gpt-5.5` with `medium` or `low` reasoning effort.
94 65
95That tradeoff is useful for granular UI work. You usually do not need the deepest model to move a button, tune a breakpoint, or adjust a component state. You need a model that responds quickly, understands the local code, edits the right file, and can repeat the loop without making the iteration feel heavy.66That tradeoff is useful for granular UI work. You usually do not need the deepest model to move a button, tune a breakpoint, or adjust a component state. You need a model that responds quickly, understands the local code, edits the right file, and can repeat the loop without making the iteration feel heavy.
96 67
991. Open the existing app and get the relevant route or component visible.701. Open the existing app and get the relevant route or component visible.
1002. Pop out the active Codex conversation into a [floating window](https://developers.openai.com/codex/app/features#floating-pop-out-window) and keep it near your browser, editor, or design preview while you work.712. Pop out the active Codex conversation into a [floating window](https://developers.openai.com/codex/app/features#floating-pop-out-window) and keep it near your browser, editor, or design preview while you work.
1013. Give Codex one specific UI change at a time. Include the route, viewport, current screenshot, target screenshot, or exact product note if you have it.723. Give Codex one specific UI change at a time. Include the route, viewport, current screenshot, target screenshot, or exact product note if you have it.
1024. Ask Codex to inspect the current implementation, make the smallest defensible edit, and preserve the app’s existing components, tokens, layout primitives, and data flow.734. Ask Codex to inspect the current implementation, make the smallest defensible edit, and preserve the app's existing components, tokens, layout primitives, and data flow.
1035. Review the result, then send the next small adjustment in the same thread.745. Review the result, then send the next small adjustment in the same thread.
104 75
105## Write small prompts76## Write small prompts
108 79
109If the result is close but not quite right, keep the follow-up equally specific:80If the result is close but not quite right, keep the follow-up equally specific:
110 81
111The change is close. Keep the implementation, but adjust only this detail:
112[describe the remaining mismatch]
113Verify the same route and viewport again before you stop.
114
115## When to slow down82## When to slow down
116 83
117Do not keep using the fast loop if the task stops being granular. Switch to a stronger model and a more deliberate prompt when the change needs broad refactoring, a new design system primitive, non-trivial accessibility behavior, or a product decision that affects more than one screen.84Do not keep using the fast loop if the task stops being granular. Switch to a stronger model and a more deliberate prompt when the change needs broad refactoring, a new design system primitive, non-trivial accessibility behavior, or a product decision that affects more than one screen.
118 85
119Fast UI iteration works best when Codex is adjusting an already-understood surface, not redesigning the app from scratch.86Fast UI iteration works best when Codex is adjusting an already-understood surface, not redesigning the app from scratch.
120
121## Related use cases
122
123[
124
125### Get from idea to proof of concept
126
127Use Codex with ImageGen to turn a rough idea into a visual direction, implement the smallest...
128
129Front-end Engineering](https://developers.openai.com/codex/use-cases/idea-to-proof-of-concept)[
130
131### Build and deploy internal apps
132
133Use Codex with Sites to build, test, and deploy internal apps, with built-in storage and...
134
135Front-end Integrations](https://developers.openai.com/codex/use-cases/build-and-deploy-internal-apps)[
136
137### Build responsive front-end designs
138
139Use Codex to translate screenshots and design briefs into code that matches the repo's...
140
141Front-end Design](https://developers.openai.com/codex/use-cases/frontend-designs)
142