2 cases built from this template
Same prompt, different [VARIABLES]. Click one to preview it above.About this template
An online grocery shop that behaves like one. The home page opens on a banana-yellow panel beside a crate of fresh produce, then drops into the aisles: forty-five everyday products in a dense grid with a quantity stepper on every card, so adding two avocados and a loaf takes two clicks. Search filters as you type and aisle chips narrow the grid. The basket page has a free-delivery meter, a delivery slot picker with seven days of two-hour windows, and substitution preferences, and ends in a sample order that is saved to your past orders. Recipes are the shortcut: each one lists its ingredients from the shop, shows three short steps and has one button that adds everything to the basket. Past orders can be reordered in one click. All product photographs come from one bright studio shoot with plain packaging and no labels, and the palette is leaf green, tomato red and banana yellow on white with a rounded display face. Everything is stored in the browser. Change the shop name, delivery town and free-delivery threshold in the content file, and edit products and prices in the seed; layout, palette and motion stay as described.
The template prompt
The live demo was built from exactly this text — nothing added. The other cases only change the values of the [VARIABLES].
# 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 template
Unlock the full prompt and the source code
- The full prompt: design, sections, motion, assets
- Source code of every live demo
- Commercial license
The live demo and DESIGN.md stay free.
DESIGN.md
The design system on its own — colors, type, spacing and motion. Apply this look to a project you already have.
---
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
Make it yours
- A village greengrocer that delivers: set BRAND and CITY to your shop and town, then trim the forty-five products down to the produce you actually stock each week.
- A farm shop box scheme: raise FREE_DELIVERY to your box threshold, rewrite the recipes around seasonal produce and use the delivery slot picker for your two-hour drop windows.
- A small health food store: keep the aisle chips but rename them to supplements, grains and dairy-free, and rework the recipes into simple everyday meals from your shelves.
- A market stall going online: set BRAND to the stall name, keep the quantity steppers for weighed items and link the past orders page so regulars can reorder their usual basket.
Online Grocery Delivery Store: questions and answers
How do I change the shop name, delivery town and free-delivery threshold in the Online Grocery Delivery Store template?
The Online Grocery Delivery Store template keeps three variables in its content file: BRAND for the shop name, CITY for the delivery town and FREE_DELIVERY for the basket total that unlocks free delivery. Change those three values, then rewrite every headline, label and paragraph that mentions the old ones so the copy stays consistent across the shop, recipes, basket and orders pages.
How do I edit the products, prices and aisles in the Online Grocery Delivery Store template?
Products, prices, aisle names, recipes, delivery slots and past orders all live in the seed data file. Edit the product entries to match your own stock, set each price, and rename or regroup the aisle chips so the search and filter still make sense. The product photographs crop from studio image sheets, so swap in your own images and update the cell positions for each tile.
How does the recipe-to-basket feature work in the Online Grocery Delivery Store template?
Each recipe in the Online Grocery Delivery Store template lists ingredients that come from the shop, shows three short steps and has one button that adds everything to the basket at once. Recipes are a shortcut for shoppers who do not want to search aisle by aisle. To adapt them, replace the recipe entries in the seed with your own dishes and point each ingredient at the matching product.
Can I use the Online Grocery Delivery Store template for a client's grocery or farm shop site?
Commercial and client use of the Online Grocery Delivery Store template needs Pro. Pro templates show the brief, stack and variables publicly and give Pro members the full prompt plus the source code of the demos. Free prompts and every DESIGN.md are licensed for personal, non-commercial use only, so a paid client build requires the Pro route.
Where is the basket and order data stored in the Online Grocery Delivery Store template?
The Online Grocery Delivery Store template stores the basket, past orders and delivery preferences in the browser using localStorage, keyed by a slug built from the shop name. There is no backend, server code or external API, so placing an order saves a sample order to the past orders list rather than sending it anywhere. Connecting a real checkout or order system would need work beyond the template.
How do I build an online grocery delivery store with AI?
Copy the full prompt (Pro) from this page or run npx vibefather add online-grocery-delivery-store, replace [CITY], [BRAND] and [FREE_DELIVERY] with your own content, and paste it into Claude Code, Codex, Cursor or another AI coding agent. The live demos were built from exactly that text.
Which AI model built the Online Grocery Delivery Store demo?
The Maplewood grocer delivery case was built by GLM-5.4 in ZCode; the Brookfield farm shop delivery case was built by Kimi K3.1 Pro in Kimi Code. Each build used the published prompt with nothing added, so you can compare the models side by side.
What tech stack and pages does the Online Grocery Delivery Store template use?
Online Grocery Delivery Store is a 4-page site built with Motion, Tailwind CSS and React, with micro-interactions. The prompt fixes the stack so every AI tool builds the same kind of project, and the result runs as a static site you can host anywhere.
Is the Online Grocery Delivery Store template free to use?
Online Grocery Delivery Store is a Pro template: the brief, stack and variables are public, and the full prompt, the source code of the live demo and a commercial license come with VibeFather Pro. Its DESIGN.md is free for personal projects.
Does the Online Grocery Delivery Store template work on mobile?
Yes. Every Online Grocery Delivery Store build was tested on a phone-sized screen as well as desktop before it went live, checking layout, text size and touch targets. Open the live demo on your phone, or switch the preview on this page to mobile view, to check it yourself.