118 AI Prompts for Frontend & UI

The best Frontend & UI prompts in the Coding library. Tested on ChatGPT, Claude, Gemini and every major model.

Browse the prompts

## Role

You are a senior product designer specializing in form UX and conversion optimization. You understand that real-time validation is a conversation between user and system, where every message either builds or destroys user confidence.

## Task

Design a comprehensive real-time form validation system that reduces abandonment and increases conversion while maintaining security.

## Context

{{form-context}}

{{tech-stack}}

## Output

Provide a structured validation system covering:

### Validation Strategy
Comprehensive approach to real-time validation tailored to the application type and user base, emphasizing prevention over correction.

### Field-Level Validation Rules
Specific patterns for required fields with progressive disclosure, email format validation with helpful suggestions, password strength requirements with visual feedback, and custom validation rules for specialize

Real-Time Form Validation System Designer

Generates a complete real-time form validation system with field-level rules, inline messaging, visual feedback, and accessibility patterns. Runs on ChatGPT, Claude, Gemini, and Grok.

48
## Role

You are an expert full-stack developer and UX architect specializing in high-conversion form systems with 95%+ completion rates for fintech, healthcare, and enterprise SaaS.

## Task

Build a production-ready, multi-step form system with real-time validation and premium user experience. Deliver complete React + TypeScript implementation including components, validation schemas (Zod + React Hook Form), Tailwind CSS styling with Framer Motion animations, conditional logic, progress tracking, mobile responsiveness, and WCAG 2.1 AA accessibility features.

## Context

{{form-requirements}}

Address common failure modes: low completion rates, user abandonment, inconsistent data quality, and poor accessibility. Balance stakeholder requirements with user expectations, avoiding clunky patterns that plague enterprise forms.

## Output

Provide structured implementation in this order:

##

Form Builder App Prompt for React and TypeScript

Generates a production-ready, multi-step form system in React with TypeScript, Zod validation, Tailwind CSS styling, and WCAG 2.1 AA accessibility. Runs on ChatGPT, Claude, or Cursor to deliver complete code with animations, conditional logic, and mobile optimization.

48

Accessible Modal Popup Builder for WAI-ARIA

Generates a seven-phase implementation guide for building accessible modal dialogs with focus management, keyboard navigation, and screen reader support. Runs on ChatGPT, Claude, and Cursor to produce production-ready code and testing checklists.

48

App Wireframe Design Prompt for User-Centered UX

Generates structured wireframing roadmaps and phase-by-phase guidance for building intuitive app interfaces grounded in user-centered design principles. Runs on ChatGPT, Claude, Gemini, and Grok.

48

E-Commerce Search Bar Enhancement Prompt

Generates detailed UX/UI recommendations for optimizing e-commerce search functionality, from auto-complete and voice input to zero-result fallbacks. Runs on ChatGPT, Claude, Gemini, and Grok.

47
## Role

You are a senior full-stack developer and UX architect specializing in production-grade notification infrastructure.

## Task

Build a complete, production-ready notification system including UI components, real-time infrastructure, and intelligent prioritization logic. Deliver working code that can be deployed immediately.

## Context

{{business-context}}

The notification system must solve the dual problem of preventing both user fatigue from over-notification and missed critical alerts from under-notification. Focus on cohesive systems thinking rather than isolated components.

## Requirements

**Technical Stack:**
- React + TypeScript
- Tailwind CSS
- Framer Motion for animations
- {{real-time-transport}} (WebSockets or Server-Sent Events)

**Core Components:**
- Notification bell with animated badge
- Dropdown panel with smart grouping
- Toast system with auto-dismiss logi

Real-Time Notification System Builder

Generates a production-ready notification system with React, TypeScript, real-time transport layer, intelligent alert prioritization, and complete UI components. Runs on ChatGPT, Claude, and Cursor to deliver deployment-ready code.

47
## Role

You are a mobile-first UX designer and front-end architect specializing in e-commerce conversion optimization.

## Task

Design a comprehensive mobile-first layout with technical implementation guidance that prioritizes user experience, conversion, and performance.

## Context

Mobile traffic dominates but desktop revenue matters. Users expect instant loading with rich functionality. Intuitive design directly impacts conversion rates.

{{project-context}}

## Process

1. **Discovery & diagnostics**: Identify core site objectives, primary user actions, and current pain points from the project context.

2. **Mobile-first layout design**:
   - Simplified navigation architecture optimized for thumb reach
   - Vertical product displays with touch-friendly spacing (minimum 44Γ—44px tap targets)
   - Collapsible menu systems
   - Strategically positioned sticky cart functionality
   - I

Mobile-First E-Commerce Layout Designer

Generates complete mobile-first layout systems with technical implementation specs for e-commerce sites, prioritizing touch usability, conversion, and progressive enhancement. Runs on ChatGPT, Claude, Gemini, and Grok.

47

Form Validation Code Generator With HTML5 API

Generates a complete HTML5 form validation system with real-time feedback, custom error messaging, and accessibility features. Runs on ChatGPT, Claude, and Cursor to produce production-ready HTML, CSS, and JavaScript code.

46

Mobile Viewport Configuration Guide for Web Developers

Generates step-by-step instructions for implementing viewport meta tags to optimize mobile SEO and user experience. Runs on ChatGPT, Claude, Gemini, and Grok.

46
## Role
You are an expert UX/UI designer specializing in e-commerce product filters, with deep knowledge of usability patterns, accessibility standards, and conversion optimization across devices.

## Task
Create comprehensive product filter design recommendations tailored to the provided catalog and user context. Deliver specific, actionable guidance on layout, interaction patterns, accessibility features, and responsive design.

## Context
Well-designed filters guide customers to products efficiently and boost conversions; poor filters create friction and abandonment. Your recommendations must balance user mental models, platform constraints, device-specific optimization, and WCAG accessibility compliance.

{{project-context}} should describe: product catalog type and size, key product attributes (e.g., price, size, color, brand, rating), target user behaviors and device usage, and any

E-Commerce Product Filter Design Prompt

Generates comprehensive UX/UI recommendations for e-commerce product filters, covering layout strategy, interaction patterns, accessibility compliance, and responsive design. Runs on ChatGPT, Claude, Gemini, and Grok.

46
## Role

You are an interface design architect specializing in platform-native UI patterns. Your approach is grounded in cognitive load research and real-world usage observationβ€”how users behave differently on iOS versus Android based on learned platform behaviors, and how context (commuting, multitasking, one-handed use) shapes interaction success.

## Task

Generate platform-native UI layout recommendations that respect Apple Human Interface Guidelines and Google Material Design principles while maintaining clarity and usability.

For each recommendation, analyze:

1. What platform conventions will users expect?
2. How does the content hierarchy support the primary user action?
3. Where do touch targets need to be for one-handed use?
4. How does white space guide visual flow?

## Context

{{platform-and-context}}

## Layout Criteria

- **Platform authenticity**: Layouts must immediatel

Platform-Native UI Layout Generator

Generates structured UI layout recommendations that follow Apple Human Interface Guidelines and Google Material Design principles. Runs on ChatGPT, Claude, Gemini, and Grok to produce platform-specific design specifications grounded in cognitive load research and real-world usage patterns.

45

Header and Footer Optimization Prompt for UX Design

Generates 4-6 behavioral design concepts for website headers and footers that reduce bounce rates and improve micro-conversions by applying user psychology principles. Runs on ChatGPT, Claude, Gemini, and Grok.

45

Data Collection Form Design Prompt

Generates a UX-optimized form specification that reduces abandonment by auditing fields, structuring conversational flow, and applying progressive disclosure with mobile-first validation. Runs on ChatGPT, Claude, Gemini, and Grok.

44

Quick-View Product Card UI Design Prompt

Generates mobile-first quick-view product card systems optimized for e-commerce conversion, with sub-300ms load targets and friction-free checkout flows. Runs on ChatGPT, Claude, Gemini, and Grok.

44
## Role
You are a usability labeling specialist who translates system logic into user-facing language. You prioritize clarity over internal terminology, ensuring every label makes sense without surrounding context or tooltips.

## Task
Generate clear, user-centered labels for UI elements that reduce confusion, support tickets, and task abandonment. Focus on matching users' mental models rather than reflecting system architecture.

## Context
{{ui-labeling-brief}}

Provide:
- UI element types needing labels (buttons, navigation, sections, form fields, etc.)
- What each element does from a user's perspective
- Target user knowledge level and background
- Current labels or internal terminology (if any)

## Label Criteria
- **Action-oriented interactive elements**: Buttons and controls start with verbs that clearly indicate the outcome ("Save Draft", "Send Invoice", "Filter Results")
- **Nou

UI Element Labeling Prompt for User-Centered Design

Generates clear, user-centered labels for buttons, navigation, forms, and UI sections that match user mental models and reduce confusion. Runs on ChatGPT, Claude, Gemini, and Grok to replace internal jargon with intuitive language.

44
## Role
You are a frontend architect specializing in high-performance data interfaces. You build filtering systems that handle large datasets with instant responsiveness through debouncing, virtual rendering, memoization, and progressive enhancement.

## Task
Build a production-ready smart filtering system with debounced search, multi-field filtering, sorting, and visual filter management. Deliver complete code implementations optimized for large datasets with smooth interactions, proper state management, accessibility, and performance monitoring.

## Context
{{project-context}}

## Requirements
**Tech Stack**: {{tech-stack}}

**Performance Target**: Sub-100ms filter response, smooth scrolling at 60fps, handle 10,000+ items without pagination

## Output
Provide a comprehensive solution structured as:

### Architecture Overview
System design, component structure, and separation of concern

Frontend Filtering System Code Generator

Generates production-ready filtering system code with debounced search, multi-field filtering, sorting, and virtual rendering optimized for datasets of 10,000+ items. Runs on ChatGPT, Claude, and Cursor.

42

Mobile-First Layout Transformation Plan Prompt

Generates a phased mobile layout transformation roadmap grounded in Luke Wroblewski's Mobile First principles. Runs on ChatGPT, Claude, Gemini, and Grok to deliver actionable plans that prioritize radical simplicity, fast loading, and touch-first interactions.

42

Plan Page Navigation Order

Generates an optimized website navigation hierarchy based on cognitive psychology, Gestalt principles, and user mental models. Runs on ChatGPT, Claude, Gemini, and Grok as an interactive text prompt.

41
## Role

You are a full-stack developer specializing in high-conversion checkout systems. You understand the technical and psychological factors that drive purchase completionβ€”trust signals, input responsiveness, error recovery, and friction elimination.

## Task

Build a complete, production-ready checkout system using React, TypeScript, Tailwind CSS, and Stripe Elements. The system should follow a three-step flow (Info β†’ Payment β†’ Confirm) with:

- Mobile-first responsive design with sub-300ms input response
- Real-time form validation and comprehensive error handling
- Multiple payment methods including express options (Apple Pay, Google Pay)
- Progress indicators, trust badges, and security signals
- Automatic progress saving and optimistic UI patterns
- Live order summary with transparent pricing calculations
- Guest checkout option to minimize friction
- WCAG AA accessibility and c

Build Checkout Pages with React and Stripe

Generates a complete, production-ready checkout system in React, TypeScript, Tailwind CSS, and Stripe Elements with three-step flow, real-time validation, express payment options, and mobile-first design. Built for ChatGPT, Claude, or Cursor to output a multi-file codebase optimized for conversion and accessibility.

41
## Role
You are an expert web developer and UX designer specializing in mobile optimization.

## Task
Analyze the provided website and create a comprehensive mobile optimization strategy that improves user experience and search engine rankings through responsive design, fast loading times, and intuitive navigation on smaller screens.

## Context
Website: {{website-url}}
Target audience: {{target-audience}}
Business goals: {{business-goals}}
Current mobile traffic: {{current-mobile-traffic-percentage}}
Current mobile loading speed: {{current-loading-speed}}

## Approach
Address all critical mobile optimization dimensions:
- Responsive layout adjustments and breakpoint strategy
- Image optimization (compression, lazy loading, modern formats)
- Touch-friendly interface design (button sizing, spacing, gesture support)
- Performance enhancements (code minification, caching, critical CSS)
- Mo

Mobile Responsive Design Implementation Prompt

Generates a comprehensive mobile optimization strategy covering responsive layouts, performance tuning, touch interfaces, and Core Web Vitals for any website. Runs on ChatGPT, Claude, Gemini, and Grok.

40

Store Navigation Menu Design Prompt

Generates intuitive e-commerce navigation architectures that match customer mental models and reduce cognitive load. Runs on ChatGPT, Claude, Gemini, and Grok to produce category structures, label copy, and mobile-responsive layout guidance.

39

AI Feedback System Design Prompt

Generates a production-ready specification for emoji-based feedback systems on AI-generated content, including database schema, component architecture, interaction flows, and implementation guidelines. Runs on ChatGPT, Claude, Gemini, and Grok.

39

React ErrorBoundary Component Generator

Generates production-ready React ErrorBoundary components with TypeScript support, flexible fallback UI, error logging integration, and reset functionality. Built for ChatGPT, Claude, and other code-generation models.

38
## Role

You are a UI/UX architect specializing in interfaces that balance intuitive usability with visual excellence. You apply Jakob Nielsen's 10 Usability Heuristics to design experiences that feel effortless to users across all skill levels.

## Task

Guide the user through designing an app interface by:

1. Gathering essential context about the app concept, target users, core functions, platform, and design preferences
2. Determining the optimal number of design phases (3-15) based on app complexity, audience needs, feature scope, and platform constraints
3. Creating a custom phase-by-phase design roadmap tailored to their specific project
4. For each phase, asking: What would confuse users here? What would delight them? How can we make the complex feel simple? What patterns already exist in their muscle memory?

## Context

{{app-concept}}

## Process

Begin by asking the user:

1.

App Interface Design Prompt Using Usability Heuristics

Generates a phase-by-phase UI/UX design roadmap for app interfaces based on Jakob Nielsen's 10 Usability Heuristics. Runs on ChatGPT, Claude, Gemini, and Grok to produce tailored guidance for iOS, Android, and web applications.

37

What are AI prompts for Frontend & UI?

AI prompts for Frontend & UI are engineered instructions that already work. These are not one-line questions. Each one fixes the role, the context, the task and the output format before you type a word, so you get a usable result on the first run instead of the fourth.

They cover the work Frontend & UI actually get asked for: research and briefs, copy and content, analysis and reporting, planning, outreach and the admin that eats the day. Open a card to see the full prompt and the output it returns.

Popular on this page right now: "Real-Time Form Validation System Designer", "Form Builder App Prompt for React and TypeScript", "Accessible Modal Popup Builder for WAI-ARIA".

118 on this page, every one scoped to Frontend & UI. Free to read, free to copy.

Why these prompts work for Frontend & UI

A weak prompt costs you the hour you were trying to save: you rewrite it three times, get something generic, then finish the job by hand. An engineered prompt front-loads that thinking once.

In Frontend & UI that means first drafts you can send, analysis you can act on, and the repetitive work handed off, so the time goes into judgement instead of typing.

Every prompt here was written for a real job and tested against the models people actually use. Nothing scraped from a thread.

How to use these prompts

Open a prompt, copy it, and replace the [bracketed] variables with your own product, audience or topic. The structure around them stays as is. That structure is the part doing the work.

Paste it into ChatGPT, Claude, Gemini, Grok or the model you already use. If the output drifts, tighten the context line instead of rewriting the whole prompt.

No account needed to copy one. No setup, no extension, nothing to install.

Which AI tool works best for Frontend & UI prompts?

Text prompts here run well in ChatGPT, Claude, Gemini and Grok; image prompts target Midjourney and Nano Banana. Each card lists the models it was tested with.

Are these AI prompts free to use?

A big part of the library is free: open a prompt, copy it, use it. Premium packs and the Complete AI Bundle unlock the full collection with lifetime updates.

How do I adapt these prompts to my use case?

Start with the [variables]: niche, audience, constraints. If the result still misses, add one example of the output you want. A single good example beats three extra instructions.

For a prompt built from scratch, the Start Now card above opens the custom prompt generator.

Related resources

Get smarter on AI every week

One email a week with the best new prompts, tools, and model updates. Unsubscribe anytime.

Join 100,000+ subscribers. One email a week, real prompts, tools, and model updates. Unsubscribe anytime.

UI prompts for real components

UI prompts fail when they describe a mood instead of a component. The prompts here name the component, its states, the breakpoints and the library in use, so the output is code you can run, not a screenshot you cannot. A good UI prompt also says what the component must not do: no new dependencies, no inline styles, no placeholder text.

Build a [component] in [React/Vue/Svelte] with [Tailwind/CSS modules]. States: default, hover, focus, disabled, loading, error. Mobile first, breakpoints at 640 and 1024. Accessible: keyboard reachable, visible focus ring, aria labels where needed. No new dependencies. Return the component file only, with a short comment on each prop.

Follow with a second prompt that pastes the output back and asks for the three most likely bugs. The review pass catches most layout breaks before you see them.