| name | design-interface |
| description | Design, implement, redesign, or visually review production-quality websites, apps, dashboards, flows, pages, and UI components. Use when visual direction, usability, responsive behavior, accessibility, interaction states, information hierarchy, or design-system fit materially affect the result, especially when extending an existing product without breaking its visual language. Do not use for backend-only work, mechanical CSS edits with no design judgment, or non-interface artifacts. |
Design Interface
Create interfaces that are useful, coherent, recognizable, accessible, and finished. Treat product intent, content, visual design, interaction, implementation, and rendered verification as one workflow.
Choose the Design Mode
Use existing-product mode whenever the repository already contains a product interface, brand, design system, theme, or reusable components. Preserve its visual grammar and extend it with the smallest justified addition.
Use new-direction mode only for a greenfield interface or an explicitly requested redesign. Establish a coherent system before styling individual screens.
Do not expose routine design deliberation unless the user asks for it.
Establish the Design Contract
Determine from the request and available evidence:
- Who uses the interface and what primary task they must complete.
- The product type, content, environment, platform, supported devices, and constraints.
- The required deliverable: concept, prototype, implementation, redesign, or review.
- Existing brand rules, tokens, components, assets, copy, and interaction conventions.
- The material quality risks, such as accessibility, dense data, trust, conversion, localization, or performance.
Use realistic product content when available. Do not fabricate proof, metrics, testimonials, or business claims in a finished result.
Read the Applicable Guidance
Load only the references needed for the task:
- Read
references/existing-product.md before changing an established interface.
- Read
references/foundations.md when choosing or evaluating typography, spacing, color, layout, imagery, icons, or motion.
- Read
references/interaction-patterns.md when designing forms, navigation, search, filters, tables, dashboards, dialogs, or system states.
- Read
references/accessibility-verification.md for implementation, review, or any task where accessibility and rendered quality must be verified.
Treat referenced numeric values as one of:
- Requirement: a standard or explicit product constraint.
- Platform convention: a default for a specific environment.
- Starting heuristic: a value to adapt when the product has no established rule.
Never overwrite a sound project convention with a generic heuristic.
Recover the Existing Visual Grammar
In existing-product mode, inspect the implementation before proposing a direction:
- Locate theme configuration, design tokens, CSS variables, global styles, fonts, icons, and assets.
- Locate the component library, shared primitives, Storybook or equivalent documentation, and representative states.
- Inspect two or three adjacent pages with similar purpose, density, or content.
- Record the established typography roles, spacing rhythm, grid, container behavior, colors, radii, borders, shadows, icon family, control sizes, copy tone, and responsive patterns.
- Identify which observed choices are deliberate system rules and which are isolated inconsistencies.
Choose in this order:
reuse → compose → minimally extend → create new
Do not introduce a new font, palette, spacing scale, radius language, shadow style, icon family, or base component unless existing mechanisms cannot meet the task. Keep deviations explicit, local, and justified by user or product needs.
Form One Coherent Direction
Define internally:
- Product thesis: what the interface helps someone accomplish.
- Visual thesis: its character, contrast, density, and rhythm in one sentence.
- Interaction thesis: how feedback and state changes should feel.
- Signature: at most one memorable move that belongs to this product.
Choose the direction for the audience and task, not for fashion. Distinctive does not mean loud. Keep one dominant idea per view or section. Remove anything that does not improve meaning, action, orientation, trust, or appropriate atmosphere.
Design from Tasks and Content
- Put the primary task, decision, or message first.
- Order headings, labels, values, and actions for scanning.
- Give each region one clear responsibility.
- Use visible, specific labels that describe the action or result.
- Keep supporting copy concise and consistent with product vocabulary.
- Explain errors in plain language and provide recovery.
- Preserve user input, context, and navigation state across recoverable failures.
- Prioritize workspace, status, decisions, and actions in product UI.
- Build landing pages from promise to evidence to action without invented claims.
Build or Extend the System
Centralize recurring decisions in the product’s existing tokens or theme mechanism.
- Establish hierarchy with placement, alignment, spacing, scale, weight, and contrast before decoration.
- Let content determine layout transitions and breakpoints.
- Prefer grids, regions, lists, dividers, and intrinsic layout primitives over interchangeable card mosaics.
- Use containers only when grouping, interaction, or elevation requires them.
- Preserve established density; do not inflate operational interfaces for appearance.
- Use typography roles rather than styling each text element independently.
- Use semantic color roles for surfaces, text, borders, actions, focus, and status.
- Keep borders, radii, shadows, gradients, and texture consistent with one material logic.
- Use approved assets and a coherent icon family; do not use emoji as interface icons unless the product does.
- Use motion only for feedback, continuity, orientation, or emphasis, and support reduced motion.
Design Complete Behavior
Cover every state material to the flow:
- Default, hover, focus, active, selected, and disabled.
- Loading, empty, partial, error, success, stale, and offline.
- Validation, assistance, destructive confirmation, undo, and recovery.
- Authentication, permissions, and unavailable actions.
- Long content, narrow viewports, zoom, localization, overflow, and slow networks.
Keep system status visible. Prefer prevention and reversible actions over warnings alone. Keep common actions efficient without hiding the understandable path for new users.
Implement with Product Fidelity
When implementation is requested:
- Follow the repository architecture, component system, tokens, supported versions, and naming.
- Produce complete working behavior, not a static approximation.
- Preserve semantics and accessibility through component abstraction.
- Align component boundaries with behavior and genuine reuse.
- Use responsive primitives and platform capabilities before brittle coordinates.
- Reuse the existing stack before adding dependencies or fonts.
- Size media appropriately, prevent avoidable layout shifts, and avoid expensive routine effects.
- Do not leave placeholders, dead controls, unsupported claims, or decorative functionality.
Do not replace a coherent product system with a personal aesthetic.
Verify the Rendered Interface
Do not judge interface quality from source alone.
- Run the product through its normal development path.
- Inspect representative narrow, medium, and wide viewports.
- Exercise the primary flow and every material state.
- Check hierarchy, alignment, wrapping, density, cropping, overflow, focus, contrast, targets, and motion.
- Compare new work with adjacent product surfaces and the design contract.
- Test keyboard operation and available accessibility tooling.
- Run the narrowest relevant type, lint, test, build, and performance checks.
- Fix visible defects and repeat the inspection.
Use screenshots or browser tools when available. For redesigns, preserve before-and-after evidence when useful. Never claim visual or responsive quality was verified without rendering the result.
If delegation is explicitly authorized, apply delegate-work and use an interface reviewer only after a runnable surface exists. Give it exact routes, viewports, states, comparison surfaces, and required screenshot or accessibility evidence; keep implementation and final acceptance in the main session.
Reject Common Failure Modes
Reject:
- Generic AI-SaaS layouts made from repeated rounded cards.
- Unmotivated purple gradients, glass, glows, floating blobs, or oversized radii.
- Marketing-style hero sections inside operational workspaces.
- Every section centered, equally emphasized, or decorated.
- Weak hierarchy hidden behind excessive chrome.
- Trend-driven styling that conflicts with the product or platform.
- Novel controls where familiar conventions reduce cognitive load.
- Attractive default screens with missing error, empty, loading, focus, or mobile states.
- Motion that delays work or ignores reduced-motion preferences.
- Prompt language, design commentary, or invented claims appearing in the interface.
Completion Standard
Finish only when the interface:
- Serves the primary task and communicates its state.
- Has one coherent visual and interaction direction.
- Fits the existing product or establishes a complete new system.
- Remains understandable, responsive, accessible, and appropriately performant.
- Includes material states and recovery paths.
- Has been rendered, inspected, and refined from evidence.