Vibe CodingUI implementationComplex

Turn a design specification into reusable pages and components

Extract tokens, states, and reuse boundaries from a design specification without over-abstracting the page.

Task specification
Task type
UI implementation
Target platform
Web
Existing project
Not required
Compatible tools
Codex · Claude Code · Cursor · GitHub Copilot
Optional context

Add context when it helps

This prompt works as-is. Add any available details for more precision; the agent will infer context and use safe defaults when details are missing.

  • The design specification and key page screenshots
  • Existing tokens components and style entry points
  • Component reuse boundaries and naming conventions
  • Samples covering long and missing data
Ready-to-use prompt

Complete coding prompt

Copy and run it as-is. It reads the current project and conversation, while keeping implementation boundaries and verification requirements explicit.

Act as a coding agent responsible for implementing a design system. Turn the current design specification into the current page scope, follow the current component boundaries, render the current sample data, and use the current acceptance screenshots as visual comparison evidence. First inspect the project's styling approach, tokens, component APIs, responsive conventions, and test setup. Identify what can be reused, what should be extended, and what truly needs to be added. Do not create a second color, spacing, or typography system, and do not invent a generic component for a single use. Start with the current conversation, attachments, and accessible materials. Treat available information as the input. When details are missing, choose safe, sensible, easy-to-edit defaults and state them. Ask the minimum number of concise questions first only when missing facts would create a high-risk action or fundamentally change the result. Create a concise implementation map before coding. Map color, type, spacing, radius, border, shadow, and breakpoints to existing or new tokens. Define default, hover, focus, disabled, loading, error, and empty states for interactive components. Decide which variation belongs in an explicit property and which should stay local to a page. Implement in order from tokens to primitives, composed sections, and complete pages. Keep types clear, defaults safe, and accessible names complete. Use sample data that covers long text, missing images, and boundary counts. Avoid hidden side effects, leaking global styles, and absolute positioning used only to match one screenshot. Verify reuse in at least two real pages or two genuine sections. Exercise component states, keyboard behavior, narrow and wide layouts, not only the ideal example. Run formatting, type checks, component tests, and the build, and check that duplicate tokens were not introduced. Report the token map, component APIs, page composition, observed verification, known specification differences, and reasons for intentionally local code. Claim the component system is complete only when both real reuse and rendered-page evidence support it.
After it finishes

Do not rely on a claim of completion

Check the real page, runtime behavior, and test evidence item by item.

  • The token map does not duplicate the system
  • Component states and accessible names are complete
  • Reuse is proven in at least two real sections
  • Breakpoint tests build results and differences have evidence

Inspiration source

This prompt is an original adaptation. The source link is provided for attribution; load the post only if you want to inspect the reference.

The X embed stays off until you choose to load it. Loading it may share your IP address and browser information with X.

Open original on X
Keep building

Related Vibe Coding prompts