TEXT

Generate a Plan for Building the Best UI/UX

Contributed by ayoubelouardi3710@gmail.com

Improved by Laravel Company · 2026-09-07

Senior Engineering Task: Responsive Web Application Development Plan

You are a seasoned full-stack engineer with over a decade of experience designing and implementing high-performance, user-centric web applications. Your expertise spans responsive design systems, modern UI/UX patterns, and cross-device optimization strategies.


TASK: Comprehensive Development Roadmap

Your mission is to generate a detailed, step-by-step development plan for constructing a responsive web application that satisfies the following stringent criteria across all devices and user scenarios.

① RESPONSIVE DESIGN & CROSS-DEVICE COMPATIBILITY

Define a robust, future-proof responsive strategy that flawlessly adapts to:

  • Screen Sizes: Mobile (320px+), tablet (768px+), desktop (1024px+), large screens (1440px+)
  • Breakpoints: Specify a clear, justified breakpoint strategy with at least 3 levels, documenting the rationale behind each threshold
  • Approach: Clearly articulate whether you're taking a mobile-first or desktop-first approach, explaining the justification based on target audience and content priority
  • Touch Interactions: Address touch targets (44px min), tap gestures, hover states, and keyboard navigation consistently across platforms
  • Device-Specific Considerations: Handle notches, safe areas, dynamic viewport units (dvh/svh/lvh), font scaling, image optimization (srcset, art direction), and fluid typography with specific implementation details
  • Common Pitfalls: Flag and explain how to avoid popular responsive design gotchas like excessive layout shifts, image oversizing, or text illegibility at extremes

② PERFORMANCE & FLUID ANIMATIONS

Target industry-leading performance metrics across all devices:

  • Animations: Aim for 60fps smoothness in all animations, specifying the techniques used (CSS prefers-reduced-motion, requestAnimationFrame, etc.) and the tools to monitor frame rates
  • Core Web Vitals: Specify detailed plans to meet or exceed <2.5s Largest Contentful Paint (LCP), <100ms Input Delay (INP), <0.1 Cumulative Layout Shift (CLS) metrics, explaining the optimizations required for each
  • Optimization Techniques: Outline a comprehensive strategy for lazy loading, code splitting, asset optimization, CSS containment, will-change, GPU compositing, and service workers for offline support or graceful degradation
  • Performance Budgets: Define speculative performance budgets for initial page load, interactive content, and JavaScript execution times, with justification for the chosen targets

③ DESIGN SYSTEM & TOKENIZATION

Establish a modular, extensible design system that ensures visual coherence and ease of maintenance:

  • Tokens: Define a complete design token architecture covering colors, spacing, typography, elevation, and motion, with a clear naming convention and hierarchy
  • Color Palette: Specify a flexible color palette strategy that supports light/dark mode and high-contrast themes, with specific hex values and contrast ratios
  • Spacing & Typography: Develop a logical spacing scale and font pairing rationale that scales proportionally across devices and breakpoints
  • Components: Document the visual consistency rules for each component, including borders, shadows, and decorative elements, to ensure a cohesive user experience
  • Iconography & Imagery: Define a consistent iconography approach and illustration style guidance that aligns with the design tokens

④ MODERN UX/UI BEST PRACTICES

Integrate ** cutting-edge UX/UI principles** to enhance usability and accessibility:

  • Layout & Hierarchy: Apply F/Z pattern layouts, visual weight distribution, and whitespace strategy for optimal scannability and attention management
  • Feedback & Interaction: Implement loading states, skeleton screens, micro-interactions, and error states to provide clear user feedback and reduce cognitive load
  • Navigation Patterns: Plan for responsive navigation systems (hamburger, bottom nav, sidebar), breadcrumbs, and wayfinding that adapt to different screen sizes
  • Accessibility: Achieve WCAG 2.1 AA minimum compliance by addressing contrast ratios, ARIA roles, focus management, screen reader support, and keyboard navigation across all components
  • Forms & Input: Design intuitive forms with appropriate input types, inline validation, autofill support, and device-specific adaptations for a seamless user experience

⑤ TECHNICAL ARCHITECTURE & TOOLING

Recommend a modern, scalable tech stack and architecture:

  • Framework: Suggest a specific modern framework (React, Vue, Svelte, etc.) and justify the choice based on project requirements
  • CSS Strategy: Define the CSS architecture approach (CSS modules, utility-first, CSS-in-JS, etc.) and folder structure for maintainability
  • State Management: Recommend a state management solution (Redux, Vuex, Pinia, etc.) and explain the component-level integration strategy
  • Testing: Specify a comprehensive testing strategy that covers unit tests, integration tests, and end-to-end tests using appropriate tools (Jest, Cypress, etc.) and documents the specific breakpoints and devices to be tested

OUTPUT FORMAT & STYLE GUIDE

Structure your plan in the following sections, adhering to the specified style and constraints:

  1. Executive Summary – A concise paragraph (150-200 words) outlining the approach and key trade-offs
  2. Responsive Strategy – Detailed documentation of breakpoints, layout system, and fluid scaling approach, with specific values and examples
  3. Performance Blueprint – Step-by-step optimizations, target values, and justification for each performance metric
  4. Design System Specification – Complete token documentation, palette, typography, and component guidelines
  5. UX/UI Pattern Library Plan – Detailed breakdown of key patterns, interactions, and accessibility checklist across devices
  6. Technical Architecture – Specific tooling stack, folder structure, and implementation order, with justification for each choice
  7. Phased Rollout Plan – Prioritized milestones (MVP → polish → optimization) with estimated timelines for each stage
  8. Quality Checklist – Pre-launch verification criteria across all devices, breakpoints, and performance targets

CONSTRAINTS & STYLE GUIDELINES

  • Be specific and prescriptive in your recommendations, avoiding vague generalities
  • Provide concrete values and examples where applicable (e.g., "8px base spacing scale", "400ms ease-out for modals")
  • Flag common pitfalls and workarounds to help the development team avoid common mistakes
  • Where multiple approaches exist, recommend one with clear reasoning, providing pros and cons of alternatives
  • Assume the target is a [INSERT APP TYPE: e.g., SaaS dashboard / e-commerce / portfolio / social app]
  • Target users are [INSERT: e.g., non-technical consumers / enterprise professionals / mobile-first users]

Your task is to begin with the Executive Summary, then proceed section by section, following the specified format and style guidelines.

Please provide a polished, actionable development plan that would enable a team of engineers to implement a high-quality responsive web application with confidence and efficiency.

Original prompt (before our improvements)

You are a senior full-stack engineer and UX/UI architect with 10+ years of experience building production-grade web applications. You specialize in responsive design systems, modern UI/UX patterns, and cross-device performance optimization. --- ## TASK Generate a **comprehensive, actionable development plan** for building a responsive web application that meets the following criteria: ### 1. RESPONSIVENESS & CROSS-DEVICE COMPATIBILITY - Flawlessly adapts to: mobile (320px+), tablet (768px+), desktop (1024px+), large screens (1440px+) - Define a clear **breakpoint strategy** with rationale - Specify a **mobile-first vs desktop-first** approach with justification - Address: touch targets, tap gestures, hover states, keyboard navigation - Handle: notches, safe areas, dynamic viewport units (dvh/svh/lvh) - Cover: font scaling, image optimization (srcset, art direction), fluid typography ### 2. PERFORMANCE & SMOOTHNESS - Target: 60fps animations, <2.5s LCP, <100ms INP, <0.1 CLS (Core Web Vitals) - Strategy for: lazy loading, code splitting, asset optimization - Approach to: CSS containment, will-change, GPU compositing for animations - Plan for: offline support or graceful degradation ### 3. MODERN & ELEGANT DESIGN SYSTEM - Define a **design token architecture**: colors, spacing, typography, elevation, motion - Specify: color palette strategy (light/dark mode support), font pairing rationale - Include: spacing scale, border radius philosophy, shadow system - Cover: iconography approach, illustration/imagery style guidance - Detail: component-level visual consistency rules ### 4. MODERN UX/UI BEST PRACTICES Apply and plan for the following UX/UI principles: - **Hierarchy & Scannability**: F/Z pattern layouts, visual weight, whitespace strategy - **Feedback & Affordance**: loading states, skeleton screens, micro-interactions, error states - **Navigation Patterns**: responsive nav (hamburger, bottom nav, sidebar), breadcrumbs, wayfinding - **Accessibility (WCAG 2.1 AA minimum)**: contrast ratios, ARIA roles, focus management, screen reader support - **Forms & Input**: validation UX, inline errors, autofill, input types per device - **Motion Design**: purposeful animation (easing curves, duration tokens), reduced-motion support - **Empty States & Edge Cases**: zero data, errors, timeouts, permission denied ### 5. TECHNICAL ARCHITECTURE PLAN - Recommend a **tech stack** with justification (framework, CSS approach, state management) - Define: component architecture (atomic design or alternative), folder structure - Specify: theming system implementation, CSS strategy (modules, utility-first, CSS-in-JS) - Include: testing strategy for responsiveness (tools, breakpoints to test, devices) --- ## OUTPUT FORMAT Structure your plan in the following sections: 1. **Executive Summary** – One paragraph overview of the approach 2. **Responsive Strategy** – Breakpoints, layout system, fluid scaling approach 3. **Performance Blueprint** – Targets, techniques, tooling 4. **Design System Specification** – Tokens, palette, typography, components 5. **UX/UI Pattern Library Plan** – Key patterns, interactions, accessibility checklist 6. **Technical Architecture** – Stack, structure, implementation order 7. **Phased Rollout Plan** – Prioritized milestones (MVP → polish → optimization) 8. **Quality Checklist** – Pre-launch verification across all devices and criteria --- ## CONSTRAINTS & STYLE - Be **specific and actionable** — avoid vague recommendations - Provide **concrete values** where applicable (e.g., "8px base spacing scale", "400ms ease-out for modals") - Flag **common pitfalls** and how to avoid them - Where multiple approaches exist, **recommend one with reasoning** rather than listing all options - Assume the target is a **[INSERT APP TYPE: e.g., SaaS dashboard / e-commerce / portfolio / social app]** - Target users are **[INSERT: e.g., non-technical consumers / enterprise professionals / mobile-first users]** --- Begin with the Executive Summary, then proceed section by section.