跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

一个用起来就像真实生鲜店的在线杂货商店。首页以香蕉黄色面板搭配一箱新鲜农产品开场,随后进入货架区:四十五种日常商品以密集网格排列,每张卡片都带数量步进器,加两个牛油果和一条面包只需点两下。搜索随输入实时过滤,货架标签可进一步缩小网格范围。购物篮页面有免配送费进度条、可选七天、每段两小时的配送时段选择器,以及替代商品偏好设置,最后生成一份示例订单并保存到历史订单中。食谱是捷径:每份食谱列出商店中对应的食材,展示三个简短步骤,并有一个按钮可将全部食材加入购物篮。历史订单可一键再次订购。所有产品照片来自同一次明亮的棚拍,包装朴素、无标签;配色为叶绿、番茄红和香蕉黄,搭配白色背景和圆润的展示字体。所有内容都存储在浏览器中。在内容文件中修改商店名称、配送城镇和免配送费门槛,在种子数据中编辑商品和价格,布局、配色和动效保持不变。

模板提示词

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

# Online Grocery Delivery Store

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

## Brief
A grocery shop: aisles and search; quick add with quantity steppers; a delivery slot picker; substitution preferences; recipes that add all their ingredients to the cart; reorder past orders; and a basket with a running total and a free-delivery meter. Product photographs come from one bright studio shoot with no brand labels. Leaf green #2DB34A, tomato #FF5A3C and banana #FFE066 on white.

- Audience: Independent grocers and farm shops that deliver, and developers building a food-commerce interface.
- Goal: Fill a basket quickly, choose a delivery slot and place a sample order, or come back and reorder.
- Tone: Cheerful and practical: short product names, clear prices, no supermarket slogans.

## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: motion (MIT), lucide-react (ISC), @fontsource/baloo-2 (OFL-1.1), @fontsource/nunito (OFL-1.1), @fontsource/dm-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - vite.config.ts: base './', build.sourcemap false, nothing from src/ copied into dist/.
  - tailwind.config.js: extend colors leaf #2DB34A, leafDark #187A2E, tomato #FF5A3C, tomatoDark #D93A1E, banana #FFE066, white #FFFFFF, cream #FAFAF7, ink #1B2420, muted #56635C, line #E6EAE6; fontFamily display 'Baloo 2', sans 'Nunito', mono 'DM Mono'.
  - Product tiles crop one cell out of the five 3 × 3 product sheets: src/components/ProductTile.tsx takes an image file and a cell (col and row from 0 to 2) and renders a square div with background-image, background-size: 300% 300% and background-position: (col × 50)% (row × 50)%.
  - A small hash router reads location.hash: #/ (shop), #/recipes, #/basket, #/orders; scroll to top on route change. No router library.
  - src/data/seed.ts holds the 45 products, aisles, recipes, delivery slots and two past orders; src/store/useShop.ts is a reducer for basket, slot, substitutions, orders and past-order reordering, persisting to localStorage under the keys [BRAND_SLUG]-basket, -orders and -prefs, where [BRAND_SLUG] is [BRAND] lowercased with hyphens.
  - Delivery days are labelled Today, Tomorrow and the next five weekday names, computed from the real clock; slot prices and availability come from the seed.
  - All copy, aisle names, search suggestions and form labels live in src/content.ts; components never hard-code copy.

## Variables
- [BRAND] — Shop name (default: "Greenlane Grocers")
- [CITY] — Delivery town (default: "Maplewood")
- [FREE_DELIVERY] — Basket total that unlocks free delivery (default: "$40")
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/online-grocery-delivery-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: "Online Grocery Delivery Store"
colors:
  white: "#FFFFFF"
  cream: "#FAFAF7"
  leaf: "#2DB34A"
  leafdark: "#187A2E"
  tomato: "#FF5A3C"
  tomatodark: "#D93A1E"
  banana: "#FFE066"
  ink: "#1B2420"
  muted: "#56635C"
  line: "#E6EAE6"
typography:
  display_headings_prices_wordmark: { family: "Baloo 2", weights: [600, 800] }
  body_ui: { family: "Nunito", weights: [400, 600, 700] }
  mono_units_weights_slot_times: { family: "DM Mono", weights: [400, 500] }
spacing: "Page max-w-[1240px] px-6; product cards p-3 with a 14px radius; section padding py-16; 8px rhythm."
radius: "Cards 14px; tiles 12px; buttons 10px; chips and steppers rounded-full."
---

# Online Grocery Delivery 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
- **white** `#FFFFFF` — Page ground and cards
- **cream** `#FAFAF7` — Subtle panels
- **leaf** `#2DB34A` — Leaf green: accents, badges and chips with ink text
- **leafDark** `#187A2E` — Buttons and free-delivery meter with white text
- **tomato** `#FF5A3C` — Tomato: badges and highlights with ink text
- **tomatoDark** `#D93A1E` — Tomato for small text such as prices and sold-out labels
- **banana** `#FFE066` — Banana yellow: the hero panel and the search field, with ink text
- **ink** `#1B2420` — Text
- **muted** `#56635C` — Secondary text
- **line** `#E6EAE6` — Borders and dividers

## Typography
- **Display / headings, prices, wordmark** — Baloo 2 (OFL), weights 600/800. Self-host the font files.
- **Body / UI** — Nunito (OFL), weights 400/600/700. Self-host the font files.
- **Mono / units, weights, slot times** — DM Mono (OFL), weights 400/500. Self-host the font files.

## Spacing & shape
- Spacing: Page max-w-[1240px] px-6; product cards p-3 with a 14px radius; section padding py-16; 8px rhythm.
- Radius: Cards 14px; tiles 12px; buttons 10px; chips and steppers rounded-full.

## Motion
- Adding an item: a small leaf-green badge on the basket icon counts up and the card's stepper pops from scale 0.9.
- The free-delivery meter bar animates to its new width 300ms.
- Filter and search changes fade the grid 200ms; the recipe page's 'Added' confirmation fades in and out.
- Scroll reveals: the hero text and the recipe cards fade up 20px over 400ms, once; content is visible by default.
- prefers-reduced-motion: everything updates instantly.

## Imagery
Product photographs from one bright studio shoot on pure white, plain packaging with no writing, no brand labels, no logos. Each product is one cell of a 3 × 3 sheet and is cropped in code. One lifestyle photograph of a crate of produce on a doorstep.

## Tone
Cheerful and practical: short product names, clear prices, no supermarket slogans.

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

改成你自己的

  • 提供配送服务的乡村果蔬店:将 BRAND 和 CITY 设为你的店铺和城镇,然后把四十五种商品缩减到你每周实际备货的农产品。
  • 农场商店蔬菜箱计划:将 FREE_DELIVERY 提高到你的蔬菜箱门槛,围绕当季农产品重写食谱,并使用配送时段选择器设置你的两小时送达窗口。
  • 小型健康食品店:保留货架标签,但重命名为补充剂、谷物和无乳制品,并将食谱改造成用你货架商品制作的简单日常餐食。
  • 上线经营的市场摊位:将 BRAND 设为摊位名称,保留称重商品的数量步进器,并链接历史订单页面,让老顾客可以再次订购他们常买的购物篮。

在线生鲜杂货配送商店:常见问题

如何修改在线生鲜杂货配送商店模板中的商店名称、配送城镇和免配送费门槛?

在线生鲜杂货配送商店模板在其内容文件中保留三个变量:BRAND 表示商店名称,CITY 表示配送城镇,FREE_DELIVERY 表示解锁免配送费的购物篮总额。修改这三个值后,重写所有提及旧值的标题、标签和段落,确保商店、食谱、购物篮和订单页面的文案保持一致。

怎么用 AI 做一个在线生鲜杂货配送商店?

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