Open a project with several different screens. For a new project, prepare two content examples to test the rules.
Paste the prompts in order into Codex or Work with access to these materials.
Step 1. Define the scope
Choose two different screens that need shared rules. Save their current appearance and working actions so styling does not turn into an unnecessary rebuild.
Find the task materials and fill the bracketed fields yourself from them.
In [project folder], identify screens and elements needing shared rules. Preserve accepted decisions and the current version; agree on the scope.
Step 2. Choose references
Use your brand guide or a few suitable references. Ask Codex to identify useful principles without copying another brand's colours and logo wholesale.
You can choose a design before implementation in the free Kombai gallery: screens and Card components. You do not need a Kombai account or subscription to browse and send a reference to Codex.
Open the gallery, choose a page or an individual element, open its card and view Live preview. Copy the card link or use the Use in other agents button to copy its prompt. Send it to Codex with your task. Detailed instructions and limitations.
Paste this into Codex for your chosen reference:
Find the project and task materials. Read the project instructions and my materials.
Use this design as a reference: [link to the Kombai card or Live preview].
My task: agree on a design system for a website or application using two different screens.
Content and functions: existing copy and actions, shared buttons, fields, cards and states.
Take the link from my message; if none is provided, ask me to choose a reference. Find the other details in the project and ask about anything missing.
Open the reference and study its composition, colors, typography, spacing, images and element behavior. Adapt the design to my task and project stack. Keep its character and replace demo copy and data with mine. If HTML is available from Live preview, examine it and use suitable parts as a starting point. If the source is unavailable, say so and implement from the available reference.
Extract consistent rules from the chosen examples, save them in DESIGN.md and apply them to two screens. Agree on the rules before changing components.
Check desktop and mobile layouts, run the project locally and show the result. Ask about missing product facts; do not invent them.
Ask questions to improve the result and suggest improvements.
If you have no rules yet, Awesome DESIGN.md helps compare written design examples. Codex chooses one for the task and adapts it to your screens. These are design analyses, not official company brand guides; check error and empty states in your own interface.
For this step
Find the task materials and fill the bracketed fields yourself from them.
Review permitted references [files or URLs] and existing brand guidelines. Select useful ideas for the task. Compare standard Codex work with a suitable helper if needed.
Step 3. Agree on shared styles
Agree colours for text, backgrounds and actions, then font sizes and spacing. Test ordinary and long text, not just an attractive heading.
If the rules are still unclear, UI UX Pro Max can help propose a consistent set. Ask Codex to apply it to two of your screens while preserving brand colors and working actions. Save the accepted decisions in DESIGN.md; there is no need to install the skill if ordinary Codex work is sufficient.
For this step
Find the task materials and fill the bracketed fields yourself from them.
Agree on colour roles, text sizes, spacing and widths in [project]. Show short and long text on light and dark backgrounds if both themes are required.
Step 4. Define components and states
Define shared elements: a button, field, card and menu. Show keyboard focus, errors and unavailable actions where each applies.
Find the task materials and fill the bracketed fields yourself from them.
Define shared buttons, fields, cards and menus for [project]. Include normal, focused, error and disabled states where needed. Show examples.
Step 5. Save the design rules
Collect the accepted decisions in one DESIGN.md. This note tells the next chat which rules to use; it does not change screens by itself. A clear note is enough to pass on ordinary design rules. For named values that can be validated and exported to code, use Google DESIGN.md: the assistant brings the file into line with the specification and reviews the lint report if the CLI is available. A passing document check does not prove the rules were applied to screens; that is checked in step 7.
Save accepted rules in DESIGN.md and reference it in the project's Codex instructions. Separate agreements from proposals; check that another chat can read it.
Step 6. Implement shared components
Ask Codex to build shared elements used across screens. A button change should update the intended places rather than just one copied version.
Find the task materials and fill the bracketed fields yourself from them.
Implement shared styles and reusable components in [project] from DESIGN.md. Remove accidental duplication while retaining existing functions. Test one component before applying it elsewhere.
Step 7. Check two screens
Test both screens in wide and narrow viewports. Field errors and long text reveal problems that an empty mockup can hide.
Find the task materials and fill the bracketed fields yourself from them.
Test the system on two different [screens], including long text, errors, keyboard access and a narrow viewport. Fix shared causes of inconsistency and repeat existing flows.
Step 8. Save and update the system
Practice example
Codex Bible
Result and next step
Result: shared rules and components checked on two different screens.
Next: Design a website or app interface.
Find the task materials and fill the bracketed fields yourself from them.
Save the checked rules, components and examples in [project]. Explain how to add a screen and revise a shared rule. Test one update on both screens.