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

You are an expert Three.js developer specializing in architectural visualization and WebGPU-accelerated graphics.

Create a production-ready, interactive 3D house construction animation that demonstrates the building process through five stages: Foundation → Skeleton (framing) → Systems (plumbing, electrical, HVAC) → Envelope (walls, roof, insulation) → Finished (complete exterior and interior). The animation must include a toggleable X-ray view mode that reveals hidden systems (plumbing pipes in blue, electrical wiring in yellow, HVAC ducts in silver) inside the finished structure.

## Technical Requirements

**Rendering Stack:**
- Three.js with WebGPU backend (use `WebGPURenderer`)
- Implement proper feature detection with graceful WebGL fallback
- Target 60 FPS on modern hardware

**Architecture & Structure:**
- Modular component system: separate classes for Foundation, Frame, Systems

Interactive House Construction With X-Ray View

Generate a Three.js-based interactive 3D animation that visualizes house construction stages with X-ray view capabilities.

3
You are an expert Three.js developer specializing in high-performance particle systems and GPU-accelerated visual effects. Create a production-ready, interactive 3D particle animation that transforms the concept of {{animation-concept}} into a captivating visual experience.

# Core Requirements

## Scene Architecture
- Initialize a Three.js scene with WebGL renderer, perspective camera, and appropriate lighting
- Implement a particle system using BufferGeometry with at least 10,000 particles for visual density
- Use Float32Array for position, velocity, and color attributes to optimize GPU performance
- Add OrbitControls or custom mouse/touch interaction for user engagement

## Particle Behavior
Design particle motion and transformations that visually express {{animation-concept}}:
- Define physics rules: velocity, acceleration, attraction/repulsion forces, or noise-based movement (Perlin

Interactive Particle Effects Experience

Generate a Three.js interactive particle effects animation from a simple concept into a mesmerizing 3D experience.

2

Self-Building Interactive 3D House In WebGPU

Generate a single HTML file that visualizes an interactive 3D construction animation using WebGPU and Three.js. Designed for developers interested in architectural visualization.

2

Cinematic Product Header With X-Ray Spotlight

Generate a cinematic e-bike product header component using React and pure CSS, featuring an interactive x-ray spotlight effect.

2

Morphing Shape Motion Spec Template

Generate a procedural UI animation loop using HTML Canvas 2D, highlighting seamless state transitions through a single morphing shape.

1
You are a design systems architect specializing in production-ready CSS design tokens and variables. Generate a comprehensive, immediately usable design system based on the requirements provided.

# INPUT

{{design-requirements}}

# ANALYSIS FRAMEWORK

First, extract or infer from the requirements:

1. **Brand identity**: Primary, secondary, and accent colors; typography preferences (serif/sans-serif, modern/classic); overall aesthetic (minimal, bold, corporate, playful)
2. **Component scope**: Which UI elements are needed (buttons, cards, forms, navigation, modals, etc.)
3. **Accessibility requirements**: Contrast ratios, text sizing, focus states
4. **Responsive strategy**: Breakpoints, fluid vs. fixed scaling

If any are missing, apply modern best practices as defaults.

# DESIGN SYSTEM OUTPUT

Generate a complete CSS design system following this structure:

## 1. Color Tokens

```css

CSS Design System Generator

Generate a production-ready CSS design system based on provided requirements, perfect for frontend developers.

1
You are an expert creative technologist specializing in physics-based interactive visualizations and mechanical computer simulations. Your task is to build a **fully functional 3D mechanical marble adder** that computes binary addition through physical marble logic—no arithmetic shortcuts.

# CONTEXT & INSPIRATION
The machine draws from Wintergatan's Marble Machine and the Digi-Comp II: a beautiful, legible blend of art, engineering, and computation. Users will understand binary addition by watching marbles cascade through flip-flops, flipping toggles and propagating carries exactly as mechanical computers once did.

# TECHNICAL ARCHITECTURE

## Core Constraint: The Mechanism IS the Computer
- **No arithmetic in JavaScript.** The result must emerge from toggle states after marbles finish moving.
- Each bit of the sum is stored in a **two-state flip-flop toggle** (0 or 1) that a marble ph

Marble Computer Binary Adder 3D

Generate a dynamic 3D marble computer visualization that adds two 4-bit numbers using mechanical toggles and marbles.

1

Real-Time Volcano Fluid Simulation

Generate a real-time 3D Krakatoa volcano eruption simulation using WebGL2. Produces interactive, high-fidelity fluid dynamics in a single HTML file.

1

Castle Above Clouds Real-Time 3D Experience

Generate a real-time Three.js web experience titled 'CASTLE ABOVE CLOUDS,' incorporating PBR techniques for aesthetics and performance.

1
You are an expert procedural 3D graphics engineer specializing in Three.js r168+, WebGPU rendering, and TSL (Three.js Shading Language). You will build a historically accurate, fully parametric 1857 Napoleon 12-pounder field cannon—every component generated via procedural geometry and TSL shaders, with no external assets, texture images, or Blender imports.

# Historical Reference
The Napoleon (Canon obusier de 12) featured:
- Smoothbore bronze barrel, ~1.66m long, 11.43cm bore
- Cascabel, breech, reinforce rings, trunnions, muzzle swell
- Two-wheel wooden carriage with trail, axle, and elevating screw
- Cast ornamentation: eagle, "N" cipher (optional fidelity)

# Architecture Requirements
1. **Procedural Geometry**: Generate barrel (CylinderGeometry or BufferGeometry with custom vertices), carriage, wheels (spokes as merged cylinders), and all fittings using Three.js primitives and CSG-

Procedural 3D Antique Cannon With Blueprints

Generate a 3D model of a historical 1857 Napoleon field cannon using procedural Three.js and WebGPU techniques. Produces technical drawings and simulations in real-time without external assets.

1
You are an expert creative technologist specializing in physics-based simulations with Three.js and Rapier.

# Task
Build a Rube Goldberg-inspired physics simulation where a marble triggers a chain reaction that ultimately topples a 1.8-meter domino. The chain exploits the domino chain reaction principle: each falling domino can knock over the next one up to 1.5Ɨ its height.

# Physics Requirements
- **Domino scaling**: Start with a small domino (~12 cm) and grow each successive domino by ~1.13Ɨ to reach 1.8 m over 10 dominoes (12 cm → 1.8 m span)
- **Marble**: ~2 cm diameter sphere, sufficient initial velocity/drop height to topple the first domino
- **Material properties**: Wood-like friction (0.4–0.5), restitution 0.3–0.4 for realistic tumbling
- **Gravity**: Standard 9.81 m/s²
- **Spacing**: Position each domino so the previous one strikes it in the upper third when falling

# Creati

Rube Goldberg Domino Physics Simulation

Generate a detailed Rube Goldberg-inspired physics simulation using Three.js and Rapier, featuring a cascading domino effect.

1

Search Bar Motion Graphic Intro

Generate After Effects expressions to create a professional motion graphic intro featuring a search bar transition.

1

Morphing Shape UI States Video Template

Create a captivating audio-reactive animation using p5.js and Tone.js where a shape morphs between various UI states in sync with music, ideal for creative coders and frontend developers.

1

UI Card Timing Animation With Verification Loop

Generate a GSAP animation timeline for UI cards with precise timing constraints and implement automated verification using Playwright for error detection.

1
# Task
Generate a single-file HTML motion design film (1920Ɨ1080, 60fps, ~15s) that follows a vivid orange dot through six connected scenes. Every visual is computed from `time` inside a `seek(t)` function—no CSS transitions, timers, or frame-to-frame state. Sync major shape changes to the beat grid of the supplied audio track.

# Audio & Timing
Track: {{audio-track}}  
(Paste a YouTube link, Spotify URI, or describe the BPM and where the strongest beats land. The film will align the cursor click, dot landing, graph peak, shape morphs, and final title reveal to these beats.)

# Scenes & Motion Language
All motion lives on a warm off-white canvas (#F5F2ED) or near-black background (#1A1A1A). The orange dot ({{accent-color}}) is the protagonist; it never teleports—every entrance grows from an element already on screen.

## 1. Toggle (beat 0)
A rounded toggle UI sits beside the label "{{tog

Toggle To Graph Motion Template

Generate a dynamic motion design film using a closed-form spring function that synchronizes visuals with a provided audio track.

1
You are an expert graphics programmer specializing in WebGPU and procedural 3D geometry. Build **"Time, Undone."** — a single, self-contained HTML file that renders a fully functional mechanical watch in 3D using WebGPU and WGSL shaders. The watch must animate realistically (ticking hands, rotating gears) and **disassemble itself as the user scrolls**, with components floating apart to reveal the inner mechanism, all while continuing to run.

## Core Requirements

**Architecture**
- Single HTML file with embedded `<style>` and `<script>` tags
- Pure WebGPU API; no Three.js, Babylon.js, or other 3D libraries
- All geometry (gears, hands, case, jewels, escapement) generated procedurally in JavaScript
- WGSL shaders for vertex transformation and fragment shading

**Mechanical Accuracy**
- Generate at least 8–12 recognizable watch components: balance wheel, escapement, mainspring barrel, gea

Scroll-Driven Self-Disassembling Watch In WebGPU

Generate a self-contained HTML file that renders an interactive 3D mechanical watch using WebGPU, which disassembles as you scroll.

1

Landmark History Motion Graphic With GSAP

Generate a GSAP animation that chronicles a landmark's history with cinematic flair and data-driven storytelling techniques.

0

Cinematic Pit Stop 3D Animation

Generate a realistic 3D animation of an F1 pit stop using Three.js with procedural assets and synthesized audio.

0
You are an expert Three.js developer specializing in detailed 3D scene composition and real-time effects in standalone HTML files.

Create a complete, production-ready single HTML file that renders an accurate 3D representation of the Golden Gate Bridge using Three.js (CDN version). The scene must be visually compelling, performant, and require no external assets.

**Scene Requirements:**

1. **Bridge Geometry**
   - Model the iconic suspension bridge structure: two main towers (Art Deco style, approximately 227m tall), main cables with vertical suspender cables, roadway deck spanning between anchorages
   - Use the signature International Orange color (#C0362C)
   - Include realistic proportions: main span ~1,280m, total length ~2,737m
   - Add structural details: tower portals, deck trusses, railings

2. **Dynamic Water**
   - Animate San Francisco Bay beneath the bridge using either:

Interactive 3D Suspension Bridge Scene

Creates an interactive 3D scene of the Golden Gate Bridge using Three.js in a single HTML file. Ideal for developers looking for a complete, dynamic, and visually compelling HTML representation.

0
You are an expert front-end animator specializing in GSAP (GreenSock Animation Platform) and motion graphics for explainer videos. Your task is to create a visually engaging, timeline-based animation that tells the story of The Sphere in Las Vegas—from its architectural conception to its current status as a premier entertainment venue.

## Animation Brief

Create a 30-60 second GSAP-powered animation with these story beats:

1. **The Beginning** – Minimal architectural wireframe/blueprint of The Sphere emerging
2. **Construction & Completion** – Structure fills in, exterior LED skin activates
3. **Live Music Era** – Major bands and performers take the stage
4. **Cultural Moments** – The Wizard of Oz screening and other landmark events
5. **The Big Reveal** – October 1, 2026: Metallica debuts, with a personal callout: "And guess who's attending? We are!"

## Technical Requirements

- Use 

Landmark History GSAP Motion Graphic

Generate a dynamic motion graphic using GSAP to animate the history of The Sphere in Las Vegas.

0

Vue 3 Component Builder

Generate a Vue 3 component using modern tools and best practices as a complete single-file component.

0

Browser Painting Replication Demo

Generate a Playwright automation script that replicates an image in a browser paint application, capturing the entire process as a video.

0

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: "Interactive House Construction With X-Ray View", "Interactive Particle Effects Experience", "Self-Building Interactive 3D House In WebGPU".

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.