Guides · April 23, 2023
Free Prompt Pack: 25 Storefront Prompts for v0 & Lovable
Twenty-five copy-paste prompts for building ecommerce UI in v0 and Lovable, organized by layout, product pages, cart and checkout, content sections, and polish — plus what these tools still can't do for you.
By Polo Themes
Good ecommerce prompts for AI UI builders like v0 and Lovable are specific about layout, data shape, and interaction state — not just "build me a product page." Below are 25 ready-to-use prompts organized into five categories: layout and structure, product/PDP, cart and checkout, content and marketing sections, and polish. Copy any prompt as-is, then read the section after the pack on what these tools reliably get wrong so you can catch it before it ships.
Why Prompt Quality Matters More for Storefronts Than for Generic UI
Ecommerce interfaces carry more hidden state than most UI categories. A product card alone has to account for price, compare-at price, sale badges, out-of-stock states, variant swatches, and a quick-add affordance — and all of that has to survive a grid layout at three different breakpoints. When you prompt an AI builder with something vague like "make a product grid," you get a plausible-looking grid that ignores half of that state, and you spend more time patching it than if you had asked for the right thing up front.
The prompts below are written the way an experienced frontend engineer would brief a junior developer: they name the component, the data fields it needs, the states it must handle, and the interaction behavior. That specificity is what separates a prompt that produces a shippable component from one that produces a rough sketch you have to rebuild anyway.
How to Get the Most Out of This Pack
- Feed a real design as reference. Both v0 and Lovable accept image uploads. A screenshot from an existing design system — one of our Figma UI kits, a Dribbble shot, or your own Figma export — anchors the model to real spacing and hierarchy instead of its default aesthetic.
- State the tech stack explicitly. "Next.js App Router, Tailwind, shadcn/ui" produces very different output than an unstated stack. Say it in every prompt, even if it feels repetitive.
- Ask for empty, loading, and error states in the same prompt. If you don't ask, you'll get the happy path only, and happy-path-only components are the most common source of production bugs in AI-generated UI.
- Iterate in small diffs. Ask for one component at a time rather than a whole page. Large single-shot prompts are harder to review and more likely to silently drop a requirement.
Layout & Structure Prompts
- "Build a responsive ecommerce site header for Next.js and Tailwind with a logo, a horizontal nav for 5 top-level categories, a search icon that expands into an inline search field on click, a cart icon with an item-count badge, and a mobile hamburger menu that opens a full-screen drawer. Sticky on scroll with a subtle shadow after 10px of scroll."
- "Create a mega-menu dropdown that opens under a nav item, showing 3 columns of subcategory links plus a promotional image/CTA block in a 4th column. Keyboard accessible (arrow keys move focus, Escape closes), closes on outside click."
- "Build a footer for an ecommerce store with 4 link columns (Shop, Support, Company, Legal), an email signup form with inline validation, and a bottom bar with copyright text and payment method icons. Stack to a single accordion-style column on mobile."
- "Design a breadcrumb component for a product detail page that shows Home > Category > Subcategory > Product Name, truncates the middle segments on narrow viewports, and uses schema.org BreadcrumbList markup."
- "Build a collection/category page shell with a left sidebar of filters (checkboxes for size, color swatches, a price range slider) that collapses into a slide-over panel below the md breakpoint, and a main content area with a sort dropdown and a responsive product grid."
Product & PDP Prompts
- "Build a product card for a grid: square product image with a hover-swap to a second image, product title, price with a strikethrough compare-at-price when on sale, a sale-percentage badge, color swatch dots, and a quick-add button that appears on hover on desktop and is always visible on mobile."
- "Create a product image gallery for a PDP: a large primary image with a set of vertical thumbnails on desktop that switch the main image on click or hover, collapsing to a horizontal swipeable carousel with dot indicators on mobile. Include a pinch-to-zoom or click-to-zoom lightbox."
- "Build a variant selector for size and color: color as a row of swatch circles with a checkmark on the selected one, size as a row of pill buttons, with an out-of-stock size shown struck-through and disabled rather than hidden. Selecting an unavailable combination should disable the add-to-cart button and show an inline message."
- "Design a sticky add-to-cart bar that appears once the user scrolls past the main product info block, showing a thumbnail, product name, price, and an add-to-cart button, and disappears once the footer comes into view."
- "Build an accordion component for a PDP with sections for Description, Size & Fit, Shipping & Returns, and Reviews, only one section open at a time, with a smooth height-animated expand/collapse and a rotating chevron icon."
Cart & Checkout Prompts
- "Build a slide-over cart drawer that opens from the right when an item is added: list of line items with thumbnail, title, variant, quantity stepper, and remove button, a subtotal, a free-shipping progress bar based on a threshold amount, and a checkout CTA. Include an empty-cart state with a 'continue shopping' link."
- "Create a quantity stepper component with minus/plus buttons and a numeric input, disabling the minus button at quantity 1 and the plus button when stock is limited, with the change debounced before firing an update callback."
- "Build a checkout order summary sidebar showing line items, a discount-code input with an apply button and inline success/error feedback, subtotal, shipping, tax, and total, sticky on desktop and collapsible above the form on mobile."
- "Design a multi-step checkout progress indicator (Cart > Shipping > Payment > Confirmation) as a horizontal stepper on desktop that collapses to a simple 'Step 2 of 4' label with a progress bar on mobile."
- "Build an empty-cart and post-purchase confirmation pair: an empty state with an illustration, a message, and a 'browse products' CTA, and an order-confirmation page with order number, a summary of items, and estimated delivery date."
Content & Marketing Section Prompts
- "Build a homepage hero section: full-bleed background image or video, a headline, subheadline, and a primary CTA button, with a lighter-weight variant that uses a 2-column layout (text left, image right) for a secondary promo section."
- "Create a horizontally scrollable 'shop the look' or 'related products' carousel with peek-next-item behavior, arrow controls that hide on touch devices, and snap-to-item scrolling."
- "Build a testimonial/reviews section showing a star rating, review text, reviewer name, and a verified-purchase badge, in a 3-column grid on desktop collapsing to a single swipeable carousel on mobile."
- "Design an email/SMS signup section with a discount incentive (e.g. '10% off your first order'), an inline form with validation, and a success state that replaces the form with a confirmation message."
- "Build a comparison table component for a pricing or theme/bundle comparison page with sticky first-column labels, a highlighted 'recommended' column, and checkmark/X icons for feature rows, that becomes horizontally scrollable on mobile with a shadow hint at the scroll edge."
Polish, Accessibility & Performance Prompts
- "Audit this component for accessibility: add appropriate aria labels, make sure all interactive elements are reachable and operable via keyboard, ensure focus states are visible, and confirm color contrast meets WCAG AA for text on all backgrounds used."
- "Add skeleton loading states for this product grid and PDP that match the exact layout dimensions of the loaded content, so there's no layout shift when real data replaces the skeleton."
- "Optimize this component for Core Web Vitals: use next/image with explicit width/height or fill plus a sized parent, lazy-load below-the-fold images, and avoid layout shift from web fonts by setting font-display and reserving space."
- "Add subtle micro-interactions to this add-to-cart button: a brief loading spinner state while the request is in flight, then a checkmark and label change to 'Added' for 1.5 seconds before reverting, with a small cart-icon bounce animation."
- "Review this checkout form for real-world edge cases: what happens with a very long product name, a zero-quantity edit, a discount code that doesn't exist, and a slow network — add appropriate error states and disabled/loading states for each."
From Prompt to Production: What AI Tools Still Miss
v0 and Lovable are genuinely good at turning a well-specified prompt into a component that looks right and mostly works. What they consistently miss is the surrounding system: consistent spacing and type scale across components generated in separate sessions, real data-fetching patterns instead of hardcoded arrays, and the edge cases nobody thinks to prompt for until a real customer hits them — a product with no image, a cart with 40 line items, a discount code applied twice. Treat generated components as a strong first draft, not a finished storefront, and budget real review time for accessibility, state management, and design consistency before anything ships.
This is also where starting from an actual design system pays off. If you paste screenshots from a coherent kit rather than prompting from scratch each time, you get far more visual consistency across sessions, because the model is matching an existing pattern instead of inventing one. Our Figma UI kits are built as full ecommerce component systems for exactly this kind of reference — spacing, type, and component variants already resolved, so you're prompting for behavior rather than reinventing a design language every time.
Frequently Asked Questions
Is v0 or Lovable better for building an ecommerce storefront?
They overlap heavily. v0 tends to produce cleaner, more idiomatic React/Next.js/Tailwind/shadcn code and is a strong fit if your team is going to keep editing the output by hand. Lovable leans more toward full-app scaffolding with built-in backend and deployment conveniences, which suits teams that want to go from prompt to a running app with less manual wiring. For component-level UI work like the prompts above, either will get you a usable result — the prompt quality matters more than the tool choice.
Can I use these prompts to build a full production storefront?
You can use them to build the UI layer quickly, but a production storefront also needs real commerce logic — inventory sync, tax and shipping calculation, payment processing, order management — which these prompts intentionally don't cover. Plan for a real backend or commerce platform underneath the generated UI, and review every generated component for the edge cases and accessibility gaps called out above before launch.
Do I need to know how to code to use this prompt pack?
Not to get started — you can paste a prompt, get a working component, and preview it directly in v0 or Lovable. But shipping it into a real codebase, wiring it to real data, and catching subtle bugs (a broken keyboard interaction, a state that only appears with real inventory data) benefits enormously from at least a developer reviewing the output, especially for anything touching checkout or payments.
Why do some of these prompts explicitly ask for empty and error states?
Because AI UI builders default to the happy path unless told otherwise. An unprompted product grid will assume every item has an image and is in stock; an unprompted checkout form will assume every discount code is valid. Naming the empty, loading, and error states in the prompt itself is the single highest-leverage change you can make to get production-ready output on the first pass.
Where can I find more prompts and guides like this?
We publish ongoing guides on AI-assisted storefront design, headless commerce, and theme selection on the Polo Themes blog.