用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
商城购物 App 是一个信息密集、移动优先的店面,服务于一个虚构的多卖家商城。它适合创始人、独立开发者和中小零售团队,他们想要的不只是标准商品网格:买家可以用建议标签搜索、浏览分类、关注限时抢购、领取优惠券、探索无限瀑布流商品、选择精确规格,并在多家店铺之间组建购物车。
视觉系统将温暖的象牙色画布与深梅色文字、青绿色操作按钮、树莓色促销点缀和阳光感优惠券面板搭配在一起。Bricolage Grotesque 让标题显得亲切,Inter 则让价格、库存信息、筛选条件和购物车计算易于扫读。无品牌工作室摄影提供了一致的产品世界,紧凑卡片让界面保持活泼而不混乱。
核心工艺在于共享状态。颜色和尺码选择会解析到带独立库存水平的单个 SKU;数量永远不会超过可售库存。已领取的优惠券会从店面进入购物车,在购物车中每家店铺都有自己的小计、资格检查、折扣和运费计算。搜索、分类筛选、促销倒计时、商品图库、带图评价、已保存的购物车内容和推荐批次都使用示例数据在本地运行。
在一个内容文件中调整品牌、受众、精选系列和商品目录。布局可以从家居和生活用品转向户外装备、文具或爱好用品,同时保留相同的电商行为。最终效果更像一个可用的购物 App,而不是营销页面,同时仍然易于换肤和扩展。所有内容都以静态站点形式交付,使用本地资源和浏览器持久化;结账是明确的模拟,不是支付流程。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Marketplace Shopping App Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build a dense, polished marketplace shopping web app for [BRAND], an invented multi-store destination for [AUDIENCE]. The default content centers on [FEATURED_COLLECTION], with the promise '[TAGLINE]'. Include a discovery storefront, a complete product detail view, and a seller-grouped cart. Use fictional English products, stores, reviews, prices, stock, and promotions; make every control work against shared client-side state. - Audience: Design-conscious shoppers who enjoy discovering useful objects from independent stores, and makers or small retail teams who need a rich static marketplace interface they can adapt without backend infrastructure. - Goal: Let a visitor move from discovery to a confident simulated order: search or filter, open a product, select an in-stock color and size, add it to a multi-store cart, claim eligible coupons, and understand every discount and shipping line before reviewing the order. - Tone: Lively, warm, useful, and specific. Use concise shopping language, believable product details, transparent sample-data labels, and playful promotional moments without urgency tricks or real transaction claims. ## Stack - Framework: Vite 5 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: lucide-react (ISC), @fontsource-variable/bricolage-grotesque (OFL), @fontsource-variable/inter (OFL) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Configure Vite with base './' and sourcemap false; the production command must emit only static files to dist/. - Use hash routes for the storefront, product, and cart views; direct navigation to #/product selects the first catalog product when no product has been chosen. - Keep every product, store, category, coupon, review, navigation label, and variable-derived copy value in src/content.ts; rewrite the default copy when variable values change. - Create one shared marketplace store with React context and reducers for query, category, selected product and SKU, claimed coupons, cart lines, and recommendation batches. - Persist claimed coupons and cart lines in localStorage under the generic key marketplace-shopping-state-v1; validate stored quantities against current stock when loading. - Use Lucide icons through lucide-react and self-host both font families through the listed Fontsource packages; import only the weights and styles used. - Implement transitions with CSS and Web Animations only, with a prefers-reduced-motion override; do not add a motion or state-management dependency. - Keep the production bundle below 20 MB, use relative image paths, and do not copy src/ into dist/. ## Variables - [BRAND] — Marketplace brand (default: "Tote & Timber"). An invented two- or three-word marketplace name; derive a simple text wordmark from it. - [TAGLINE] — Storefront promise (default: "Useful things, joyfully found."). A short original sentence for the discovery header and empty states. - [AUDIENCE] — Shopper audience (default: "design-loving shoppers hunting for useful home and everyday goods"). Rewrite recommendations, category descriptions, and promotional copy for this audience. - [FEATURED_COLLECTION] — Featured collection (default: "The Weekend Edit"). Name the flash-sale and discovery story; adapt the product catalog and section copy to fit it. - [CURRENCY] — Display currency (default: "USD"). Use Intl.NumberFormat for every price and keep all calculations in integer minor units. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/marketplace-shopping-app in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Marketplace Shopping App"
colors:
canvas: "#F7F4ED"
surface: "#FFFFFF"
ink: "#282330"
teal: "#0F766E"
raspberry: "#C73E67"
sun: "#F4C95D"
mist: "#E8E3DC"
typography:
display_and_section_headings: { family: "Bricolage Grotesque Variable", weights: [600, 700, 800] }
interface_product_data_reviews_and_body: { family: "Inter Variable", weights: [400, 500, 600, 700] }
spacing: "Use a 4 px base unit. App content max-width is 1360 px with 32 px desktop and 16 px mobile gutters. Header modules use 12–16 px gaps, product cards 12 px internal padding, major storefront modules 24 px vertical separation, and product/cart desktop columns 32 px separation. Keep touch targets at least 44×44 px."
radius: "Use 20 px for feature panels, 16 px for product and store cards, 12 px for images and inputs, and fully rounded chips only for filters, stock badges, and compact actions. Borders are 1 px Mist; shadows stay soft and shallow."
---
# Marketplace Shopping App — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Canvas** `#F7F4ED` — Warm ivory app background and generous gaps between dense modules
- **Surface** `#FFFFFF` — Product cards, search field, cart groups, dialogs, and sticky bars
- **Ink** `#282330` — Primary text, wordmark, icons, and high-contrast outlines
- **Teal** `#0F766E` — Primary actions, selected filters, links, and stock-positive messages
- **Raspberry** `#C73E67` — Flash-sale accents, price emphasis, badges, and claimed-coupon details
- **Sun** `#F4C95D` — Coupon panels, rating stars, and small moments of promotional warmth
- **Mist** `#E8E3DC` — Dividers, disabled controls, skeletons, and subtle card borders
## Typography
- **Display and section headings** — Bricolage Grotesque Variable (OFL), weights 600/700/800. Self-host the font files.
- **Interface, product data, reviews, and body** — Inter Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use a 4 px base unit. App content max-width is 1360 px with 32 px desktop and 16 px mobile gutters. Header modules use 12–16 px gaps, product cards 12 px internal padding, major storefront modules 24 px vertical separation, and product/cart desktop columns 32 px separation. Keep touch targets at least 44×44 px.
- Radius: Use 20 px for feature panels, 16 px for product and store cards, 12 px for images and inputs, and fully rounded chips only for filters, stock badges, and compact actions. Borders are 1 px Mist; shadows stay soft and shallow.
## Motion
- Use 160–220 ms ease-out transitions for hover lift, chip selection, cart badges, coupon claims, image changes, and button feedback; never delay a state update for an animation.
- Route changes use a restrained 180 ms fade and 8 px vertical settle; product gallery changes crossfade without zooming the entire page.
- New waterfall batches reveal with a subtle opacity rise, the cart badge gives one small pulse, and claimed coupons show a brief checkmark sweep.
- The sale countdown updates numerically once per second without flipping or pulsing; when it reaches zero it stays at zero and shows 'Offer ended' rather than restarting.
- Under prefers-reduced-motion, remove reveals, crossfades, pulses, smooth scrolling, and nonessential transitions while preserving immediate functionality.
## Imagery
Use exactly six local, AI-generated, unbranded studio product photographs listed in assets. All share realistic catalog photography, a warm ivory set, cobalt/teal/raspberry accents, soft upper-left daylight, crisp material texture, and gentle contact shadows. Reuse a photograph only within the same product family or its genuine reviews, with CSS crops for detail views; never rename one photograph as an unrelated product. No people, faces, text, logos, packaging brands, landmarks, or recognizable commercial product designs. The first screen's flash-sale composition must prominently feature product photography, not typography alone.
## Tone
Lively, warm, useful, and specific. Use concise shopping language, believable product details, transparent sample-data labels, and playful promotional moments without urgency tricks or real transaction claims.
---
— Prompt by VibeFather · https://vibefather.ai/t/marketplace-shopping-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 户外装备合作社:将 BRAND 和 FEATURED_COLLECTION 设置为你当季的主题,把目录换成帐篷和越野装备,并为成员卖家保留多店铺购物车。
- 文具制造商联合体:将 AUDIENCE 指向纸笔爱好者,把分类标签替换为笔记本、墨水和桌面工具,并使用优惠券做组合优惠。
- 爱好用品商城:根据你所在地区设置 CURRENCY,围绕精选套件重写限时抢购故事,并按独立爱好商店对购物车分组。
- 测试店面的小型零售团队:保留示例目录,更改 BRAND 和 TAGLINE,并使用已保存的购物车和优惠券行为向利益相关者演示购物流程。
商城购物 App:常见问题
商城购物 App 中优惠券和购物车总额在多家店铺之间是如何计算的?
商城购物 App 按店铺对购物车条目分组,每家店铺都有自己的小计、优惠券资格检查、折扣和运费行。已领取的优惠券会随购物车存储,因此在店面领取的优惠券会进入购物车,并且只适用于其所属的店铺。所有计算都基于示例数据在本地运行,结账是模拟而非支付流程。
怎么用 AI 做一个商城购物 App?
复制本页的完整提示词(Pro),或者运行 npx vibefather add marketplace-shopping-app,把 [BRAND]、[TAGLINE]、[AUDIENCE]、[CURRENCY] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
商城购物 App模板的演示是哪个 AI 模型做的?
演示由 Kimi K3.1 Pro 在 Kimi Code 里完成;另一个案例由 DeepSeek V4.1 Flash 在 DeepSeek Harness 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。