跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

珠宝在线商店是一个四页的店面模板,适合销售少量精选系列的独立珠宝商。首页将摄影风格的活动主视觉与精选单品、材质与制作说明、礼品服务以及本地新闻订阅互动结合在一起。系列页让购物者可以组合金属和宝石筛选条件、按价格或名称排序、查看实时结果数量,并在筛选组合无结果时提供恢复路径。每个产品页都包含响应式图库、款式和尺寸控件、无障碍戒指尺寸指南、带实时预览的可选刻字、礼品包装、礼品留言、保养详情和相关单品。共享购物车抽屉会将所选商品保存在 localStorage 中,并计算个性化、礼品包装、数量、运费和订单总额。结账流程依次经过详细信息、配送和复核,最后生成明确标注为模拟的确认信息;它从不收集银行卡信息、发送订单或处理付款。视觉方向是温暖杂志风奢华感:象牙白表面、牛血红点缀、细线分隔、Cormorant Garamond 展示字体、Manrope 界面文字、接近直角的边角和克制的入场动效。六张协调的棚拍照片为系列带来一致的艺术指导外观,无需依赖图库图片。默认内容是一个虚构的金银珠宝品牌,而备用值会改变名称、城市、系列故事、材质和免运费门槛。要适配模板,请修改这些变量并重写集中式内容文件;产品、筛选、政策、购物车键和页面文案都遵循同一份数据。它适合独立珠宝商、小型工作室和需要完整购物流程且完全静态、无需后端的设计师。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# Jewelry Online Store

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
Build a complete four-page fine jewelry storefront for [BRAND], a fictional independent studio in [CITY] presenting the [COLLECTION] collection in [MATERIAL]. Pages: index.html, shop.html, product.html?p=<slug> (show the first product when opened without a query), and checkout.html. Include combined metal and stone filters, sorting, product galleries, ring sizing, engraving, gift wrapping and messages, a persistent cart drawer, and a three-step mock checkout. Complimentary shipping applies above $[SHIP_FREE]. Everything runs in the browser; no payment, order, or email is ever transmitted.

- Audience: Independent jewelry studios and small design-led retailers, and shoppers who want clear materials, sizing, personalization, and delivery information before committing to a considered gift or personal keepsake.
- Goal: Make a small collection feel tangible and trustworthy, help a visitor configure a piece without hunting for information, and provide a complete static shopping journey from discovery through mock confirmation.
- Tone: Intimate, precise, and assured. Use concise sensory language and concrete product facts rather than superlatives, urgency, or generic luxury clichés.

## 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/cormorant-garamond (OFL-1.1), @fontsource/manrope (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. Create four real HTML entry pages at the project root: index.html (src/main-home.tsx), shop.html (src/main-shop.tsx), product.html (src/main-product.tsx), and checkout.html (src/main-checkout.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'), checkout: resolve(__dirname, 'checkout.html') } } }. Do not copy src/ into dist/.
  - Use Tailwind 3.4 through PostCSS with content ['./index.html', './shop.html', './product.html', './checkout.html', './src/**/*.{ts,tsx}']. Add every Design color to theme.extend.colors with kebab-case keys; fontFamily display ['Cormorant Garamond', 'Georgia', 'serif'] and sans ['Manrope', 'system-ui', 'sans-serif']; maxWidth container 1360px.
  - In src/fonts.ts import @fontsource/cormorant-garamond/400.css, /500.css and /600.css plus @fontsource/manrope/400.css, /500.css, /600.css and /700.css. Import src/fonts.ts and src/index.css from all four entries.
  - Centralize every string, price, product, variant, filter, policy, image path, and checkout label in typed src/content.ts. Add src/lib/brand.ts to derive brandSlug from [BRAND] by lowercasing and replacing runs of non-alphanumerics with hyphens, and emailDomain by removing hyphens and appending '.com'. Add safe localStorage helpers in src/lib/storage.ts with keys prefixed by brandSlug.
  - src/lib/product.ts reads product.html?p=<slug> and returns the matching product or the first product for a missing or unknown slug, never a not-found state. src/lib/price.ts centralizes base price, engraving (+$25), gift wrap (+$8 per line), quantity, merchandise subtotal, shipping ($12 below $[SHIP_FREE], otherwise $0), and total calculations.
  - Use a tiny external cart store in src/store/cart.ts with useSyncExternalStore. A line stores product slug, variant, size, engraving, giftWrap, giftMessage, quantity, and a composite key. Expose addLine, setQuantity (1–6), removeLine, clearCart, openCart, and closeCart; persist lines under brandSlug + ':cart' and rehydrate safely on every HTML page.
  - Components: AnnouncementBar, Header, MobileMenu, Footer, CartButton, CartDrawer, ProductCard, Reveal, Newsletter, Hero, FeaturedPieces, MaterialStory, GiftPanel; shop FilterBar and ProductGrid; product Gallery, VariantPicker, RingSizeDialog, EngravingField, GiftOptions, PurchasePanel, ProductAccordions and RelatedPieces; checkout CheckoutSteps, DetailsForm, DeliveryForm, ReviewOrder and MockConfirmation. Every page renders the shared announcement, header, cart drawer, and footer.
  - Before the first build, download each image listed under Assets with curl -L -o into public/images/ using the exact file names. Runtime code and the build never fetch remote assets.
  - Create public/favicon.svg as described under Assets. All HTML files use lang='en', <meta name='theme-color' content='#F4EFE6'>, and a local favicon link. Titles: '[BRAND] — [COLLECTION]' on home, 'The collection — [BRAND]' on shop, 'Shop — [BRAND]' on product (replace with the product name on load), and 'Checkout — [BRAND]' on checkout.
  - Write ASSETS.md at the project root exactly as described under Assets. Keep dist/ under 20 MB with hashed local JS/CSS, woff2 fonts, four HTML files, favicon, and six images.

## Variables
- [BRAND] — Jewelry brand (default: "Aurel & Vale"). Invented studio name used for the text wordmark, titles, footer, derived email domain, and localStorage keys. Never use a real jewelry house or retailer.
- [CITY] — Studio city (default: "Portland, Oregon"). Used in the studio story, shipping copy, and footer. The city may be real; the street address and business remain invented.
- [COLLECTION] — Collection name (default: "Still Light"). Two or three words used in the hero eyebrow, featured-piece introduction, and document titles.
- [MATERIAL] — Material story (default: "Recycled gold and white sapphire"). The collection's primary material and stone story. Drives hero, material-story, product, and care copy while retaining the same layout.
- [SHIP_FREE] — Free shipping threshold (default: "150"). Digits only. Drives the announcement, cart shipping calculation, progress message, and checkout review. Keep it between 100 and 300.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/jewelry-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 仍然免费。

$9/月起 · 年付和终身正在上线特惠

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Jewelry Online Store"
colors:
  ivory: "#F4EFE6"
  porcelain: "#FFFDF8"
  sand: "#E8DFD1"
  ink: "#211C19"
  taupe: "#6E6258"
  oxblood: "#6F1D2C"
  oxblood_dark: "#50131F"
  antique_gold: "#A17C43"
  rule: "#D8CCBC"
typography:
  display_for_the_text_wordmark_h1_h3_product_names_large_prices_and_engraving_preview: { family: "Cormorant Garamond", weights: [400, 500, 600] }
  body_navigation_buttons_filters_forms_tables_captions_and_numeric_totals: { family: "Manrope", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base unit and a centered 1360px container with 48px desktop, 28px tablet, and 18px mobile side padding. Desktop sections have 104–128px vertical padding, tablet 80px, mobile 56–64px. Use a 12-column grid with 24px gutters. H1 is Cormorant Garamond 500 at clamp(48px, 6vw, 88px), line-height 0.96, letter-spacing -0.025em; H2 clamp(36px, 4vw, 58px), line-height 1.02; H3 26–32px; body Manrope 400 16px/1.75 with a 62ch maximum; lead 18px/1.7. Eyebrows are Manrope 700 11px uppercase with 0.2em tracking. Buttons are 50px high with 24px horizontal padding, Manrope 700 12px uppercase and 0.12em tracking. Inputs are at least 50px high with 16px text. All interactive elements receive a 2px Oxblood focus outline with 3px offset."
radius: "Nearly square editorial geometry: 2px on buttons, inputs, cards, images, drawer, and dialogs; 0px on large editorial bands; 999px only for swatches, count badges, and tiny status dots. Avoid floating rounded-card dashboards and heavy shadows."
---

# Jewelry 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
- **Ivory** `#F4EFE6` — Main page background and photographic negative-space complement.
- **Porcelain** `#FFFDF8` — Cards, forms, drawer, dialogs, and alternating sections.
- **Sand** `#E8DFD1` — Image wells, selected filter backgrounds, and subtle section bands.
- **Ink** `#211C19` — Headlines, body text, primary icons, and dark footer background.
- **Taupe** `#6E6258` — Secondary text, metadata, captions, and placeholder copy.
- **Oxblood** `#6F1D2C` — Primary buttons, active controls, focus rings, and small editorial accents.
- **Oxblood Dark** `#50131F` — Button hover and pressed states.
- **Antique Gold** `#A17C43` — Decorative rules, metal swatches, and non-text accents only.
- **Rule** `#D8CCBC` — Hairline borders, table lines, input borders, and separators.

## Typography
- **Display for the text wordmark, H1–H3, product names, large prices, and engraving preview** — Cormorant Garamond (OFL), weights 400/500/600. Self-host the font files.
- **Body, navigation, buttons, filters, forms, tables, captions, and numeric totals** — Manrope (OFL), weights 400/500/600/700. Self-host the font files.

## Spacing & shape
- Spacing: Use an 8px base unit and a centered 1360px container with 48px desktop, 28px tablet, and 18px mobile side padding. Desktop sections have 104–128px vertical padding, tablet 80px, mobile 56–64px. Use a 12-column grid with 24px gutters. H1 is Cormorant Garamond 500 at clamp(48px, 6vw, 88px), line-height 0.96, letter-spacing -0.025em; H2 clamp(36px, 4vw, 58px), line-height 1.02; H3 26–32px; body Manrope 400 16px/1.75 with a 62ch maximum; lead 18px/1.7. Eyebrows are Manrope 700 11px uppercase with 0.2em tracking. Buttons are 50px high with 24px horizontal padding, Manrope 700 12px uppercase and 0.12em tracking. Inputs are at least 50px high with 16px text. All interactive elements receive a 2px Oxblood focus outline with 3px offset.
- Radius: Nearly square editorial geometry: 2px on buttons, inputs, cards, images, drawer, and dialogs; 0px on large editorial bands; 999px only for swatches, count badges, and tiny status dots. Avoid floating rounded-card dashboards and heavy shadows.

## Motion
- Use --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). Reveal major blocks once at 15% visibility from opacity 0 and translateY(16px) over 650ms, with 70ms sibling stagger; use Motion whileInView and viewport once.
- The hero image enters at scale 1.035 and settles to 1 over 1600ms; headline lines rise 18px with 100ms stagger. Keep the headline readable immediately and never animate letter spacing.
- Product images scale to 1.025 over 450ms on hover while a fine Oxblood underline draws beneath the product name. Filter changes use Motion layout and AnimatePresence over 250–350ms; the result count crossfades without delaying new results.
- Cart overlay fades to 38% over 240ms and the drawer slides from x 100% to 0 over 360ms. Quantity and total changes crossfade over 180ms. Ring-size and lightbox dialogs fade and scale from 0.985 to 1 over 220ms; trap focus and close on Escape.
- Gallery changes crossfade over 220ms, accordion heights animate over 260ms, checkout steps crossfade with a 12px horizontal shift over 280ms, and the confirmation check draws once over 450ms.
- For prefers-reduced-motion, render all content at rest, remove image scaling, reveals, layout animation, sliding, and check drawing; preserve immediate state changes and color-only hover feedback.

## Imagery
Use six photorealistic luxury editorial studio photographs generated specifically for this template. Every frame shares warm ivory travertine, deep oxblood silk, antique-gold highlights, soft directional light from upper left, delicate long shadows, and medium-format macro clarity. Jewelry is generic and unbranded: no signatures, recognizable trademarked designs, readable stamps, text, logos, people, faces, or hands. Use object-fit cover with intentional object-position, 2px corners, and no decorative shadows. The home hero must be a large photographic scene, never type alone. Icons come only from lucide-react at 1.5px stroke. Draw the favicon, swatches, focus states, progress line, ring-size table, gift-wrap diagram, and confirmation check in code.

## Tone
Intimate, precise, and assured. Use concise sensory language and concrete product facts rather than superlatives, urgency, or generic luxury clichés.

---
— Prompt by VibeFather · https://vibefather.ai/t/jewelry-online-store · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 一人金匠工作室:将 BRAND 和 CITY 设为你的工坊,用你当前的系列替换系列内容,并围绕你自己的金属和宝石重写材质故事。
  • 纪念珠宝商:保留刻字字段和礼品留言,并围绕个性化而非季节性系列重写系列文案。
  • 婚戒设计师:充分利用戒指尺寸指南和款式控件,并将 SHIP_FREE 设为一个适合高价值订单的门槛。
  • 礼品导向的零售商:扩展礼品包装和礼品留言选项,并将新闻订阅互动指向你自己的邮件列表。

珠宝在线商店:常见问题

珠宝在线商店模板在没有后端的情况下如何完成结账?

珠宝在线商店模板的结账完全在浏览器中运行,分为三步:详细信息、配送和复核,最后生成明确标注为模拟的确认信息。它从不收集银行卡信息、发送订单或处理付款。要真正销售,你需要将确认的订单接入自己的支付处理商,或发送到你的履约流程。

怎么用 AI 做一个珠宝在线商店?

复制本页的完整提示词(Pro),或者运行 npx vibefather add jewelry-online-store,把 [CITY]、[BRAND]、[MATERIAL]、[SHIP_FREE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。