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 an expert responsive web designer and front-end developer specializing in mobile-first methodology.

## Task
Generate a complete responsive website structure starting from the mobile viewport and progressively enhancing for larger screens. Begin by asking clarifying questions about content, target devices, and functionality. Then produce semantic HTML with proper document structure and mobile-first CSS using relative units (rem, em, percentages) with breakpoints at 768px (tablet) and 1024px (desktop).

## Context
{{project-requirements}}

Ensure the design creates optimal user experiences across all devices by starting with the most constrained environment first. Include the viewport meta tag and demonstrate how elements reflow and adapt across screen sizes.

## Output
Deliver the following in clearly labeled sections:

**Discovery Questions** – Targeted questions about c

Responsive UI Code Generator Prompt

Generates complete mobile-first responsive website code with semantic HTML and breakpoint CSS. Runs on ChatGPT, Claude, and Cursor to produce production-ready frontend structures.

86
## Role
You are a design systems architect who builds production-ready UI component libraries that scale across products and teams.

## Task
Generate a complete, systematic UI kit with design tokens, component library, and implementation guidelines.

## Context
{{project-requirements}}

Include:
- CSS framework (ShadCN, Tailwind, custom CSS, or other)
- Design style preference (modern, minimal, bold, classic, etc.)
- Primary use case (web app, marketing site, dashboard, e-commerce, etc.)
- Brand colors if specific (otherwise use a professional default palette)
- Target device priorities (desktop, mobile, tablet)

## Requirements
- Create foundational design tokens: color palettes with semantic naming, typography scales, spacing systems (4px or 8px base), sizing scales
- Build component variations: buttons (primary, secondary, ghost, danger) with hover/active/disabled states and three siz

UI Component Library Builder Prompt for ChatGPT

Generates a complete, production-ready UI component library with design tokens, component code, and implementation guidelines. Runs on ChatGPT, Claude, and Cursor to output systematic CSS/framework code for scalable design systems.

82

Custom Portal Builder Prompt for React and TypeScript

Generates a complete, production-ready enterprise portal system with authentication, dashboards, data management, and role-based access control tailored to your business context. Outputs a single-file React TypeScript artifact that runs immediately in ChatGPT, Claude, or Cursor.

78

Scalable Component Library Builder for Design Systems

Generates a production-ready design system organized by atomic design methodology, with complete specifications, TypeScript interfaces, accessibility standards, and implementation code. Runs on ChatGPT, Claude, and Cursor.

72

CSS Gradient Maker Builder Prompt

Generates complete technical guidance to build a production-ready CSS gradient maker in React and TypeScript with real-time preview, interactive controls, and code export. Runs on ChatGPT, Claude, and Cursor.

68
## Role

You are an expert UX/UI color strategist combining color theory principles with WCAG accessibility compliance expertise. Your goal is to create a functional color palette system that establishes hierarchy, defines interactive states, reinforces brand identity, and ensures accessibility across digital interfaces.

## Task

Develop a comprehensive color system that includes:

- **Primary colors** for core brand expression and key actions
- **Secondary colors** for supporting elements and content organization
- **Accent colors** for alerts, notifications, and special states

For each color, provide:

- Exact hex codes
- Intended usage contexts (backgrounds, text, interactive elements, system feedback)
- Contrast ratios ensuring WCAG AA compliance (minimum 4.5:1 for normal text, 3:1 for large text)
- Psychological and functional meaning within the application context

## Context

{{

Develop Color Palettes for UI Design

Generates a WCAG-compliant color system with primary, secondary, and accent colors including hex codes, contrast ratios, and usage guidelines. Runs on ChatGPT, Claude, Gemini, and Grok.

67
## Role
You are an expert UI/UX developer specializing in chat interface design and real-time communication systems.

## Task
Provide a complete, production-ready chat widget implementation including:
- Floating button with expand/collapse animations
- Message display area with sender avatars, timestamps, and message grouping
- Typing indicators and connection status displays
- Text input interface with send functionality
- Real-time communication integration (WebSocket or polling)
- Message delivery confirmation and auto-scroll behavior

## Context
The widget must follow proven conversational UI patterns from popular messaging platforms: real-time responsiveness, visual feedback, intuitive interactions.

**Technical Stack:** {{tech-stack}}

**Integration Requirements:** {{integration-requirements}}

## Output
Structure your response with clear section headings for each component. Includ

Chat Widget Development Prompt

Generates production-ready chat widget code with real-time messaging, typing indicators, and conversational UI patterns. Runs on ChatGPT, Claude, and Cursor.

66

Mortgage Calculator Builder for React

Generates production-ready React code for a mortgage calculator with interactive inputs, real-time amortization charts, and accessibility features. Runs on ChatGPT, Claude, and Cursor.

63

Contact Form Design Prompt for UX and Conversion

Generates a complete contact form design guide covering field selection, validation patterns, mobile optimization, and success flows. Runs on ChatGPT, Claude, Gemini, and Grok.

63
## Role
You are an expert front-end developer and UX engineer specializing in navigation systems that balance accessibility, performance, and user experience using modern CSS and JavaScript techniques.

## Task
Create a complete sticky header implementation with step-by-step guidance, production-ready code examples, and best practices. The solution must prevent layout shifts, avoid content obstruction, work across devices, and maintain accessibility standards.

## Context
Website type: {{website-type}}
Header configuration: {{header-config}}

Deliver a mobile-first responsive solution that optimizes vertical space, uses position: sticky as the primary technique with JavaScript enhancement where needed, and incorporates smooth transitions, proper z-index layering, and performance optimization.

## Output
Structure your response with:

1. **Requirements Analysis** – confirm header structur

Sticky Header Implementation Prompt for Front-End

Generates production-ready sticky header code with CSS and JavaScript, optimized for accessibility, performance, and responsive design. Runs on ChatGPT, Claude, Gemini, and Grok.

63
## Role

You are a senior full-stack developer specializing in mobile-to-web application conversions with deep expertise in progressive web apps, responsive design systems, and cross-platform UI translation.

## Task

Create a comprehensive conversion plan that transforms the mobile application into a pixel-perfect web version. Address mobile-to-web-specific challenges: touch-to-cursor interaction mapping, responsive breakpoint strategy (mobile 320-768px preserves original layout; tablet 768-1024px introduces sidebars; desktop 1024px+ uses multi-column layouts with persistent navigation), Progressive Web App implementation with offline capability, and WCAG 2.1 AA accessibility compliance.

## Context

Most mobile-to-web conversions fail because developers simply shrink mobile interfaces or ignore fundamental interaction differences between touch and cursor. This conversion must intellige

Convert Mobile Apps to Web-Based Apps

Generates a complete conversion plan that transforms a mobile application into a pixel-perfect web version with responsive breakpoints, Progressive Web App capabilities, and desktop-specific features. Runs on ChatGPT, Claude, Gemini, and Grok.

61

Password Strength Analyzer Component Builder

Generates a production-ready React TypeScript password strength analyzer with real-time validation, intelligent security feedback, and secure password alternatives. Outputs complete code for ChatGPT, Claude, or Cursor.

60

Build Product Mockups With Interactive Code

Generates a complete, interactive product mockup as a single HTML file with React, shadcn/ui, Tailwind CSS, and working animations. Runs on ChatGPT, Claude, and Cursor to produce production-quality prototypes that convince stakeholders.

57

UI Text Generator for Software Applications

Generates clear, comprehensive interface copy - labels, tooltips, error messages, and onboarding text - for software applications. Runs on ChatGPT, Claude, and Gemini to improve usability and guide users intuitively.

57
## Role
You are an accessibility-first frontend architect specializing in WCAG 2.1-compliant theming systems.

## Task
Design and implement a dual-theme (light/dark) system that meets WCAG 2.1 AA contrast requirements and respects user preferences. Provide production-ready code, testing protocols, and a color adaptation strategy.

## Context
The application currently lacks compliant dark mode support. Previous attempts caused accessibility violations and readability complaints. The solution must satisfy legal accessibility requirements and integrate with:

{{project-setup}}

*Include: brand color palette (hex/RGB), current CSS framework or styling approach, target browser support, user demographics and accessibility needs, and preference detection strategy (system automatic/manual toggle/both).*

## Implementation Requirements

### Contrast Standards
- Normal text: minimum 4.5:1 contrast

WCAG-Compliant Dark Mode Implementation Prompt

Generates production-ready code for accessible light and dark theming systems that meet WCAG 2.1 AA contrast standards. Runs on ChatGPT, Claude, and code-focused AI models to deliver CSS custom properties, toggle mechanisms, and testing protocols.

56
## Role
You are an expert React developer specialized in building production-grade presentation systems.

## Task
Build a complete, single-file React slideshow component that handles professional presentations across any use case—investor pitches, product demos, educational content, or corporate decks.

## Context
{{presentation-requirements}}

The system must deliver enterprise-grade polish: smooth performance on all devices, flawless navigation, accessibility compliance, and maintainable architecture. Prioritize clean code over complexity.

## Technical Requirements
- **TypeScript**: Full type safety with interfaces for slide data, configuration, and props
- **Styling**: Tailwind CSS with CSS variables for theming; dark mode default with high-contrast accessibility; print media queries for PDF export
- **Animations**: Framer Motion for transitions and interactive states with precise ti

React Slideshow Component Builder

Generates a production-ready, single-file React slideshow component with TypeScript, Framer Motion animations, presenter mode, and accessibility features. Runs on ChatGPT, Claude, and Cursor to output complete, maintainable code for professional presentations.

55

E-Commerce Homepage Layout Design Prompt

Generates wireframe-style homepage concepts with conversion optimization, visual hierarchy, and responsive design guidance. Runs on ChatGPT, Claude, Gemini, and Grok.

54

Homepage Wireframe Generator for UX Designers

Generates 2-3 homepage wireframe variations with ASCII diagrams or structured descriptions that balance stakeholder demands, conversion psychology, and technical constraints. Runs on ChatGPT, Claude, Gemini, and Grok.

54
## Role
You are an expert UX/UI designer and information architect specializing in faceted search systems.

## Task
Design a comprehensive filter system specification that enables progressive dataset refinement while maintaining user context and available options throughout the filtering process.

## Context
The filtering system must support:
- Multiple independent filtering dimensions working harmoniously
- Various input controls (checkboxes for multi-select, radio buttons for single selections, range sliders for numerical values)
- Active filter management with individual remove buttons
- Dynamic result count updates and clear-all functionality
- Mobile-friendly collapsible sections
- URL parameter integration for shareable filtered states

**Dataset and Requirements:**
{{dataset-and-requirements}}

**Technical Constraints:**
{{technical-constraints}}

## Output
Provide a detailed filt

Filter System Design Specification Prompt

Generates a complete filter interface specification for progressive dataset refinement, including layout, controls, and responsive behavior. Runs on ChatGPT, Claude, Gemini, and Grok.

54
## Role

You are an expert UX designer and conversion optimization specialist applying signup form best practices grounded in behavioral research and usability testing.

## Task

Design a high-converting signup form that minimizes friction, maximizes completion rates, and balances business needs with user experience principles.

## Context

Every additional form field reduces conversion by 3-5%. Real-time validation implemented correctly can increase completion by up to 22%. Your design must identify essential versus deferrable fields, apply progressive disclosure, establish clear visual hierarchy, and use validation patterns that guide rather than frustrate.

**Project requirements:**  
{{project-requirements}}

## Output

Provide a structured signup form design plan with these sections:

### Essential Fields Analysis
Identify which requested information is truly required at registratio

Signup Form Design Prompt for UX and Conversion

Generates a high-converting signup form design plan that minimizes friction and maximizes completion rates. Runs on ChatGPT, Claude, Gemini, and Grok to produce structured field analysis, validation strategy, and implementation guidelines.

52

Responsive Navigation Menu Builder

Generates production-ready HTML, CSS, and JavaScript for accessible, mobile-first navigation menus that follow established UX conventions. Runs on ChatGPT, Claude, and Cursor.

51

React Rendering Bottleneck Optimizer

Analyzes React component code to identify performance bottlenecks and delivers prioritized optimization strategies with concrete code examples. Runs on ChatGPT, Claude, and other text models.

51

CSS Stylesheet Generator With BEM Methodology

Generates complete, well-organized CSS stylesheets following BEM naming conventions and design system best practices. Runs on ChatGPT, Claude, and Cursor to produce production-ready code.

51
## Role

You are a senior full-stack architect specializing in production-grade React component systems.

## Task

Create a fully functional, production-ready React widget component using TypeScript and Tailwind CSS. The component must work immediately when integrated and rival the quality of products like Linear, Notion, and Stripe.

## Context

{{widget-requirements}}

*Include: purpose and goal, data source or API integration, essential features and functionality, visual style preferences (minimal/modern/colorful/etc.), and target platform (desktop/mobile/both).*

## Output

Deliver a complete, enterprise-grade component with:

**Requirements Analysis**  
Detailed breakdown of widget specifications and technical requirements

**Design Foundation**  
Color scheme, typography, spacing system, and visual hierarchy

**Component Architecture**  
State management strategy and data flow impl

React Widget Component Builder Prompt

Generates production-ready, accessible React widget components with TypeScript and Tailwind CSS. Runs on ChatGPT, Claude, Gemini, and Grok to deliver enterprise-quality code with state management, responsive design, and performance optimizations.

50

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: "Responsive UI Code Generator Prompt", "UI Component Library Builder Prompt for ChatGPT", "Custom Portal Builder Prompt for React and TypeScript".

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.