用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
为小型时尚品牌打造的四页店面:活动主页展示新品和材质条,商店页支持按类别、尺码和颜色筛选并排序,产品页包含图库、颜色和尺码变体、数量选择及尺码指南,关于页讲述品牌故事,侧滑购物车抽屉带有免运费进度条,模拟结账在浏览器内完成从配送表单到订单确认的全流程。默认内容设定为里斯本一个虚构的亚麻与美利奴羊毛品牌,但结构适用于任何服装品牌:更换品牌名、城市、材质和免运费门槛后,所有产品线、筛选条件和政策依然成立。购物车通过 localStorage 跨页面和刷新持久保存;结账不会实际扣款,并会明确说明。整体风格为低调奢华:暖白与骨白、近黑墨色、一抹柔和的赭石点缀,Playfair Display 标题搭配 Figtree 正文,大幅摄影配以极轻柔的动效。服装摄影只展示人形、衣架、褶皱和细节——不出现面部。要适配模板,只需替换变量并在一个内容文件中重写文案;产品、筛选、政策和公告栏都从该文件读取。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Fashion Online Store
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A four-page storefront for [BRAND], a small fashion label working [MATERIAL] out of [CITY], free shipping over $[SHIP_FREE]. It must behave like a real store: a campaign home, a collection grid with filters and sort, product pages with variants, a size guide and quantity, an about page, a cart drawer with a free-shipping progress bar, and a mock checkout (shipping form → review → order placed) that is clearly a demo and entirely client-side. Pages: index.html, shop.html, product.html?p=<slug> (first product when opened without a query), about.html. The cart persists in localStorage. Nothing is submitted or charged anywhere.
- Audience: Readers of quiet fashion newsletters, 28–50, buying fewer and better garments. They check fabric first, price second, and abandon stores that make them hunt for size info or shipping costs.
- Goal: Sell garments and build the mailing list. Within ten seconds a visitor should feel the label's aesthetic and see new arrivals; within two minutes they should have a variant picked and see the shipping bar move.
- Tone: Calm and specific, like a good garment tag. Short lines, concrete fabric and care facts, no hype adjectives, no exclamation marks.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: react (MIT), react-dom (MIT), motion (motion.dev, import from 'motion/react') (MIT), lucide-react (ISC), tailwindcss (MIT), postcss (MIT), autoprefixer (MIT), vite (MIT), @vitejs/plugin-react (MIT), typescript (Apache-2.0), @fontsource-variable/playfair-display (OFL-1.1), @fontsource-variable/figtree (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with npm create vite@latest using the react-ts template. Four real HTML pages at the project root: index.html (entry src/main-home.tsx), shop.html (src/main-shop.tsx), product.html (src/main-product.tsx) and about.html (src/main-about.tsx).
- vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), shop: resolve(__dirname, 'shop.html'), product: resolve(__dirname, 'product.html'), about: resolve(__dirname, 'about.html') } } }. Do not copy src/ into dist/.
- Tailwind 3.4 through PostCSS (tailwindcss + postcss + autoprefixer), content ['./index.html', './shop.html', './product.html', './about.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (bone, warm-white, linen, card, ink, ink-soft, taupe, rule, ochre, ochre-deep, olive-gray) and fontFamily display ['Playfair Display Variable', 'Georgia', 'serif'], sans ['Figtree Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 2px — nearly square — and add maxWidth { container: '1280px' }.
- In src/fonts.ts import '@fontsource-variable/playfair-display' and '@fontsource-variable/figtree'; import src/fonts.ts and src/index.css from all four entry files.
- File layout: src/content.ts (every string, number, product, variant, color, size, filter, policy, material line and image path, typed), src/lib/brand.ts (brandSlug = [BRAND] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = brandSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys prefixed with brandSlug + ':'), src/lib/product.ts (reads the query 'product.html?p=<slug>', returns the matching product or the first — never a not-found), src/lib/filters.ts (applyFilters + sortProducts with the bands in content.ts).
- State: src/store/cart.ts is a tiny external store (useSyncExternalStore) holding lines { key: '<slug>|<color>|<size>', slug, color, size, qty } plus drawer open state and the checkout step, persisted to localStorage key brandSlug + ':cart'. addToCart, setQty, removeLine, openCart, closeCart; every page can open the drawer from the header.
- Components in src/components/: AnnouncementBar.tsx, Header.tsx, MobileMenu.tsx, CartButton.tsx (with count badge), CartDrawer.tsx (LineRow.tsx, FreeShipBar.tsx), Checkout.tsx (ShippingForm.tsx, Review.tsx, Placed.tsx), ProductCard.tsx (hover photo swap, color dots), Reveal.tsx, Eyebrow.tsx, Newsletter.tsx, Footer.tsx; home: Hero.tsx, NewArrivals.tsx, MaterialsStrip.tsx, EditorialBand.tsx; shop: ShopMasthead.tsx, FilterBar.tsx (chips + SortSelect), Grid.tsx; product: Gallery.tsx, VariantPicker.tsx (ColorSwatches, SizePicker), QtyStepper.tsx, SizeGuide.tsx (accordion with the drawn table), AddToCart.tsx, CareFacts.tsx, Related.tsx; about: Story.tsx, Process.tsx, ContactBlock.tsx. src/pages/Home.tsx, Shop.tsx, Product.tsx, About.tsx compose them; every page renders AnnouncementBar, Header, CartDrawer and Footer.
- Before the first build, download every image listed under Assets into public/images/ with curl -L -o using the exact file names given. The build itself never fetches anything.
- public/favicon.svg as described under Assets. All four HTML files: lang en, <meta name='theme-color' content='#FAF7F1'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>. Titles: index.html '<title>[BRAND] — [MATERIAL] made in [CITY]</title>', shop.html '<title>Shop all — [BRAND]</title>', product.html '<title>Shop — [BRAND]</title>' (the product page sets document.title to the product name on load), about.html '<title>About — [BRAND]</title>'.
- Write ASSETS.md at the project root as described under Assets.
- dist/ holds the four HTML files, hashed JS/CSS, the woff2 fonts, favicon.svg and the six images. Keep it under 12 MB.
## Variables
- [BRAND] — Label name (default: "Fold and Grain"). Invented fashion label name. Used in the wordmark, titles, announcement bar, footer, email (hello@ + brandSlug without hyphens + .com) and localStorage keys. Never a real label or retailer.
- [CITY] — Studio city (default: "Lisbon, Portugal"). Where the label works. Used in the about story, the made-in line and the footer. Real cities are fine; the studio street stays invented.
- [MATERIAL] — Materials (default: "Linen and merino"). The two fabrics the label builds on, title case ('Linen and merino', 'Organic cotton and denim'). Drives the home materials strip, product fabric lines, the about story and care copy. Keep exactly two materials.
- [SHIP_FREE] — Free shipping over (default: "200"). The free-shipping threshold as digits. Drives the announcement bar, the cart drawer's progress bar math and the checkout review line. Keep it 100–300.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/fashion-online-store 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: "Fashion Online Store"
colors:
warm_white: "#FAF7F1"
bone: "#F2EDE3"
linen: "#E9E2D4"
card: "#FFFFFF"
ink: "#1C1A17"
ink_soft: "#4A4640"
taupe: "#8C857A"
rule: "#DED6C6"
ochre: "#A97C2F"
ochre_deep: "#8C6623"
olive_gray: "#6F7263"
typography:
display_h1_h2_h3_product_names_prices_in_large_sizes_the_wordmark: { family: "Playfair Display", weights: [500, 600] }
text_and_ui_body_eyebrows_letterspaced_caps_buttons_nav_forms_captions_all_money_font_variant_numeric_tabular_nums: { family: "Figtree", weights: [400, 500, 600] }
spacing: "8px base unit. Container max-width 1280px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(44px, 6.6vw, 96px) Playfair 500, line-height 1.02; H2 clamp(32px, 4vw, 56px) Playfair 500; H3 24px Playfair 600; italic phrases in headings use Playfair 500 italic (marked with *asterisks* in content.ts, rendered <em>); lead Figtree 400 18px / 1.7 Ink at 88%; body Figtree 400 16px / 1.7 (max-width 64ch); eyebrow Figtree 600 12px uppercase letter-spacing 0.22em Taupe; caption Figtree 400 13px Taupe. Buttons: height 52px, padding 0 30px, Figtree 600 13px uppercase letter-spacing 0.16em. Primary: Ink fill, Warm White text. Secondary: 1px Ink border, Ink text. Small buttons 38px. Inputs: height 52px, 1px Rule border, Card fill, 16px Figtree, focus border Ink. Focus ring everywhere: 2px Ochre outline with 3px offset."
radius: "2px on cards, buttons, inputs, chips, photos, the drawer and checkout panels — nearly square. 999px only for the cart badge, swatch rings, dots and chips."
---
# Fashion Online Store — 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
- **Warm White** `#FAF7F1` — Page background on all pages.
- **Bone** `#F2EDE3` — Alternate section background (materials, editorial band), hover fill, image wells.
- **Linen** `#E9E2D4` — Filter chips, secondary surfaces, the size-guide table banding.
- **Card** `#FFFFFF` — Cards, inputs, the cart drawer, checkout panels.
- **Ink** `#1C1A17` — Headlines and body text, primary buttons (fill), icon color.
- **Ink Soft** `#4A4640` — Drawer and panel background on dark, footer background.
- **Taupe** `#8C857A` — Secondary text, captions, eyebrows, disabled sizes (at 45% opacity).
- **Rule** `#DED6C6` — 1px hairlines, card borders, input borders, dividers.
- **Ochre** `#A97C2F` — The one accent: sale ticks, selected swatch ring, focus ring, the free-shipping bar fill, price strikes.
- **Ochre Deep** `#8C6623` — Ochre hover state, badge text.
- **Olive Gray** `#6F7263` — Quiet second color: 'in stock' dot, material ticks, sustainability notes.
## Typography
- **Display: H1, H2, H3, product names, prices in large sizes, the wordmark** — Playfair Display (OFL), weights 500/600. Self-host the font files.
- **Text and UI: body, eyebrows (letterspaced caps), buttons, nav, forms, captions, all money (font-variant-numeric tabular-nums)** — Figtree (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Container max-width 1280px, centered, side padding 48px desktop, 32px tablet, 20px under 640px. 12-column grid, column gap 24px. Section vertical padding 112px desktop, 80px under 1024px, 64px under 640px. Type scale: H1 clamp(44px, 6.6vw, 96px) Playfair 500, line-height 1.02; H2 clamp(32px, 4vw, 56px) Playfair 500; H3 24px Playfair 600; italic phrases in headings use Playfair 500 italic (marked with *asterisks* in content.ts, rendered <em>); lead Figtree 400 18px / 1.7 Ink at 88%; body Figtree 400 16px / 1.7 (max-width 64ch); eyebrow Figtree 600 12px uppercase letter-spacing 0.22em Taupe; caption Figtree 400 13px Taupe. Buttons: height 52px, padding 0 30px, Figtree 600 13px uppercase letter-spacing 0.16em. Primary: Ink fill, Warm White text. Secondary: 1px Ink border, Ink text. Small buttons 38px. Inputs: height 52px, 1px Rule border, Card fill, 16px Figtree, focus border Ink. Focus ring everywhere: 2px Ochre outline with 3px offset.
- Radius: 2px on cards, buttons, inputs, chips, photos, the drawer and checkout panels — nearly square. 999px only for the cart badge, swatch rings, dots and chips.
## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1) for reveals, the drawer and page motion; --ease-io cubic-bezier(0.65, 0, 0.35, 1) for filters, accordion and checkout steps. Whisper-quiet — small distances, long durations.
- Reveal: blocks wrapped in <Reveal> start at opacity 0, translateY(14px) and animate to rest over 800ms --ease-out when 15% visible (Motion whileInView, viewport once). Siblings stagger by 90ms (index prop).
- Hero: the campaign photo scales from 1.05 to 1.0 over 2800ms --ease-out; scrolling translates it 0 to 8% (Motion useScroll, offset ['start start', 'end start']). H1 lines rise from translateY(20px) with 150ms stagger; the eyebrow letters track from 0.3em to 0.22em as it fades in.
- Product cards: hover crossfades to the alternate photo over 500ms (both photos stacked, opacity swap), the name indents 4px, and the quick-add line ('Quick add +') fades up from the bottom edge on shop cards.
- Grid filtering: cards use Motion layout with AnimatePresence mode 'popLayout'; leaving cards fade to 0.97 and slide 8px over 220ms, survivors glide over 420ms --ease-io; the count crossfades.
- Cart drawer: Ink overlay fades to 40% over 300ms; the drawer slides from the right (x 100% → 0) over 420ms --ease-out; closing reverses in 300ms. Line add: the header badge scales 1 → 1.3 → 1 (400ms) and a small '+1' chip floats from the add button toward the cart (600ms, fade). Line qty changes count the subtotal over 300ms. The free-shipping bar fills with --ease-io 600ms; on crossing the threshold the caption crossfades to 'Shipping is on us.'
- Checkout steps: crossfade with a 14px horizontal slide, 300ms --ease-io (AnimatePresence mode 'wait'). Placed: the order number types character by character over 800ms and a drawn check circle strokes in over 600ms.
- Size guide accordion: height 0 to auto, opacity 0 to 1, 340ms --ease-io; the Plus rotates 45 degrees into an X; the table rows band in with 40ms stagger.
- Swatches: selection moves a 2px Ochre ring between swatches (Motion layoutId); unavailable sizes show a diagonal strike and refuse clicks with a 3px shake.
- Header: transparent over the home hero with Warm White text; after 40px of scroll it gets Warm White at 95% opacity, backdrop-filter blur(10px), Ink text, 1px Rule border, 250ms. Solid from the start on other pages.
- Links: .link-draw grows a 1px currentColor underline from 0% to 100% width over 300ms on hover and focus-visible.
- prefers-reduced-motion: reduce — disable photo scales and parallax, H1 rise, floating '+1', count-ups, type-in and layout animations (render at rest). Color and border hover changes stay. Use CSS @media in index.css plus Motion's useReducedMotion in components.
## Imagery
Real photography only, quiet luxury studio style, all six made for this template in one consistent look: warm white light, bone and ink palette, garments on forms, hangers, lines and folded stacks — never people, faces, hands or full identifiable bodies. No readable text or logos anywhere (care labels stay blank). Every photo uses object-fit cover with the object-position given under Assets, 2px corners, no shadow; photos on Warm White get a 1px Rule outline. Captions in Figtree 13px Taupe. Drawn in code: the favicon, the wordmark (type only), the size-guide table, swatch rings, the free-shipping bar, check circles and the neutral checkout payment row (drawn generic card and chip shapes — never real payment marks). Icons: lucide-react only, stroke width 1.5.
## Tone
Calm and specific, like a good garment tag. Short lines, concrete fabric and care facts, no hype adjectives, no exclamation marks.
---
— Prompt by VibeFather · https://vibefather.ai/t/fashion-online-store · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 爱丁堡的针织工作室:设置 BRAND 和 CITY,将 MATERIAL 改为羊毛和羊绒,并用你自己的服装标签替换产品线和护理信息。
- 男装品牌:保留安静的布局,为你的工坊重写关于故事,并将系列筛选改为你的版型、尺码和配色。
- 慢时尚通讯商店:将 SHIP_FREE 设为你的门槛,将通讯区块链接到你的邮件列表,并用编辑带讲述面料故事。
- 珠宝制作者:保留图库和变体选择器,将 MATERIAL 改为银和金,并用戒指和链子尺寸替换尺码指南表格。
时尚在线商店:常见问题
如何更改时尚在线商店模板中的品牌名、城市和材质?
时尚在线商店模板由四个变量驱动:BRAND、CITY、MATERIAL 和 SHIP_FREE。将 BRAND 设为你的品牌名,CITY 设为工作室所在城市,MATERIAL 设为恰好两种面料(首字母大写),SHIP_FREE 设为 100 到 300 之间的门槛值。文字标志、页面标题、公告栏、页脚、邮箱地址、localStorage 键名、材质条、面料描述和免运费进度条都读取这些值,因此所有页面会同步更新。
怎么用 AI 做一个时尚在线商店?
复制本页的完整提示词(Pro),或者运行 npx vibefather add fashion-online-store,把 [CITY]、[BRAND]、[MATERIAL]、[SHIP_FREE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。