跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

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

关于这个模板

一个两页的食谱博客:首页有一张主推食谱卡片,下方是按菜系和饮食筛选的网格(菜系和饮食标签)展示五张食谱卡片,每张卡片带时间、难度和饮食标签;食谱页(?r=<slug>,第一个食谱无需参数)包含主图、可实时重算每种食材用量的份量缩放器、按食谱持久保存的食材清单、每一步可独立计时的分步做法(开始/暂停、完成状态)、可输出干净单页食谱表的打印视图、带 AI 生成虚构头像的厨师介绍区块,以及订阅行(纯前端,如实说明)。默认博客由一位虚构的家庭厨师撰写,但结构适用于任何美食博客。视觉是厨房编辑风格:暖奶油底色、墨色衬线标题、一个番茄红强调色、大量摄影。五张编辑风格美食照片和厨师头像撑起卡片。所有文案放在一个带类型的文件里;替换变量即可重写整个博客。不使用真实时钟的日期。

模板提示词

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

# Recipe Blog Website

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

## Brief
A two-page recipe blog by [COOK], a home cook writing about [ANGLE]: a filterable home grid and recipe pages (?r=<slug>) with a live servings scaler, ingredient checklist, per-step timers, a print view, the cook's about block and an honest subscribe line. Pages: index.html, recipe.html?r=<slug> (first recipe without one). Everything runs in the browser; nothing is submitted anywhere.

- Audience: People cooking tonight with a phone propped against the flour tin: they scale servings with two taps, tick ingredients off while shopping, and set a timer without leaving the page.
- Goal: Cook the recipe. Within ten seconds a visitor sees a dish they'd eat; within two minutes they've scaled the recipe to four and started a timer.
- Tone: Kitchen-table warm: one small story per recipe, exact grams, no fuss. One joke about doing the dishes.

## 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/fraunces (OFL-1.1), @fontsource-variable/inter (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 (pin the version if the latest template targets newer majors). Two real HTML pages at the project root: index.html (entry src/main-index.tsx), recipe.html (entry src/main-recipe.tsx).
  - vite.config.ts: base './', plugins [react()], build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), recipe: resolve(__dirname, 'recipe.html') } } }. Do not copy src/ into dist/.
  - Tailwind 3.4 through PostCSS, content ['./index.html', './recipe.html', './src/**/*.{ts,tsx}']. In tailwind.config.ts add every color under Design to theme.extend.colors with kebab-case keys (cream, panel, line, ink, softink, tomato, tomato-deep, tomato-mist, sage, slateink, good) and fontFamily display ['Fraunces', 'Georgia', 'serif'], sans ['Inter Variable', 'system-ui', 'sans-serif']. Set borderRadius DEFAULT to 12px and add maxWidth { container: '1200px', read: '760px' }.
  - In src/fonts.ts import '@fontsource/fraunces/400.css', '@fontsource/fraunces/600.css', '@fontsource/fraunces/400-italic.css' and '@fontsource-variable/inter'; import src/fonts.ts and src/index.css from both entry files.
  - File layout: src/content.ts (cook profile, recipes — { slug, title, blurb, course: 'mains'|'pasta'|'salads'|'baking', diets: string[], time: minutes, difficulty: 'easy'|'medium', serves, heroImage, heroAlt, story: string[], ingredients: { qty?: number, unit?: string, item: string }[], steps: { text, minutes?: number }[] }, every string typed), src/lib/brand.ts (cookSlug = [COOK] lowercased with every run of non-alphanumeric characters replaced by '-', emailDomain = cookSlug without hyphens + '.com'), src/lib/storage.ts (safe localStorage get/set wrapped in try/catch, keys cookSlug + ':checks:<recipe>' and ':sub'), src/lib/scale.ts (scaleQty(qty, factor) with sensible rounding — grams and ml to whole numbers near 10, spoons to halves, countable to whole; never render 0.87 eggs), src/lib/route.ts (reads ?r=, resolves or falls back to the first recipe — never not-found).
  - State: src/store/checks.ts is a tiny external store (useSyncExternalStore) holding checked ingredient indexes per recipe persisted to localStorage; src/store/timers.ts holds per-step timer state { remaining, running } driven by one 1s interval (the tick is information — it continues under reduced motion, without animations); src/store/sub.ts holds the subscribe line state.
  - Components in src/components/: Header.tsx, Footer.tsx, SubscribeLine.tsx; home: LeadCard.tsx, FiltersBar.tsx (CourseChips, DietChips), RecipeGrid.tsx (RecipeCard.tsx with TimeChip.tsx, DifficultyDots.tsx, DietTag.tsx), AboutCook.tsx; recipe: RecipeHero.tsx, ServingsScaler.tsx (stepper +/-), IngredientList.tsx (CheckRow.tsx), MethodList.tsx (StepRow.tsx with StepTimer.tsx), PrintButton.tsx, RelatedRecipes.tsx. Pages: src/pages/Home.tsx, Recipe.tsx.
  - ServingsScaler: a stepper (− / count / +, bounds 1–12) with a live label 'Serves 4'; every ingredient quantity recomputes through scaleQty as the stepper moves; fractional-impossible items round up with the count highlighted once (140ms pop).
  - StepTimer: when a step has minutes, a chip '12 min' beside it starts a timer on click — the chip becomes a mono countdown (mm:ss) with Pause/Reset; at zero it flips to a Good 'Done — check it' state with a gentle one-time ring animation (skipped under reduced motion).
  - Print view: a dedicated print stylesheet (@media print in index.css) that hides the header, filters, timers UI, scaler stepper and footer, and outputs the recipe as one clean sheet: title, meta line, ingredients in two columns, numbered steps; page margins 15mm. PrintButton (window.print()) lives in the recipe header.
  - 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. index.html: lang en, <meta name='theme-color' content='#FBF6EC'>, <link rel='icon' href='./favicon.svg' type='image/svg+xml'>, <title>[COOK] — recipes</title>; recipe.html sets document.title on load.
  - Write ASSETS.md at the project root as described under Assets.
  - dist/ holds the two HTML files, hashed JS/CSS, the woff2 fonts, favicon.svg and six images. Keep it under 9 MB.

## Variables
- [COOK] — Cook name (default: "June Halloran"). The invented cook's name. Used in the wordmark, about block, footer and email (hello@ + cookSlug without hyphens + '.com'). Never a real cook or food writer.
- [ANGLE] — Blog angle (default: "weeknight cooking that survives a Tuesday"). One lowercase phrase naming the blog's angle. Rewrites the hero line, the about block and each recipe's story so they fit. Keep it concrete.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/recipe-blog-website 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.

## Design
### Colors
- Cream `#FBF6EC` — Page background throughout — warm kitchen light.
- Panel `#FFFFFF` — Cards, ingredient panel, scaler.
- Line `#E7DECB` — 1px hairlines: card borders, dividers, checked rows.
- Ink `#26221A` — Headlines and body ink, icons.
- Soft Ink `#6E6656` — Blurbs, meta, captions, eyebrows.
- Tomato `#C8442E` — The one accent: primary buttons, active chips, checked ticks, timer running, focus ring, links.
- Tomato Deep `#A63623` — Hover and pressed primary.
- Tomato Mist `#F9E8E1` — Selected chip fills, diet tags, timer done tint.
- Sage `#7C8A5A` — Diet tag green (vegetarian), difficulty dots' filled state.
- Slate Ink `#231109` — Text on tomato fills.
- Good `#4C8A54` — Timer done, subscribe success, check ticks.

### Typography
- Display: H1, recipe titles, the wordmark, italic story lines — Fraunces, warm kitchen serif: Fraunces (OFL), weights 400/600
- Text and UI: body, steps, forms, timers; tabular numerals for quantities and countdowns: Inter (OFL), weights 400/500/600

### Layout & motion
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; reading column max 760px. Section vertical padding 88px desktop, 64px under 1024px, 48px under 640px. Type scale: H1 clamp(34px, 4.8vw, 58px) Fraunces 600, line-height 1.06; recipe titles clamp(28px, 3.8vw, 44px) Fraunces 600; card titles Fraunces 600 20px; lead 17px Inter 400 / 1.65 at 90%; body 15.5px / 1.7; story paragraphs Fraunces italic 18px / 1.7; eyebrow 12px 600 uppercase letter-spacing 0.14em Soft Ink; meta and captions 13px Soft Ink; quantities Inter 600 15px tabular. Buttons: height 46px, Inter 600 14px; primary Tomato fill with white text, ghost 1px Line border on Panel. Inputs: height 46px, Panel fill, 1px Line border, focus Tomato border + 2px offset ring. Focus everywhere: 2px Tomato outline, 3px offset.
- Radius: 12px on cards and panels; 10px on buttons, inputs, chips; 999px for pills and timer chips.
- Motion: Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). Kitchen-calm: quick, small moves.
- Motion: Reveal: cards and blocks rise 10px over 500ms as they enter (Motion whileInView, once); grid staggers 50ms per card.
- Motion: LeadCard: its photo settles from scale 1.02 over 1200ms once.
- Motion: Filtering: chips fill Tomato Mist with a 140ms ease; cards dim 20% and sink 2px when filtered out (180ms); the count line crossfades.
- Motion: ServingsScaler: quantity changes crossfade 120ms; an item rounding up pops its count once (140ms).
- Motion: CheckRow: the tick draws (SVG stroke, 160ms) and the text takes a soft strike; unchecking reverses.
- Motion: StepTimer: the countdown's digits swap without animation (tabular width holds); 'Done' flips the chip to Tomato Mist with a single ring pulse (skipped under reduced motion).
- Motion: Subscribe: crossfades to the Good line (240ms).
- Motion: Links: .link-draw grows a 1px currentColor underline over 240ms on hover and focus-visible.
- Motion: prefers-reduced-motion: reduce — no reveals, settles, pops or pulses; the tick keeps counting (information); color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.
- Imagery: Six editorial food photographs made for this template in one consistent style: natural daylight, linen and ceramic surfaces, finished home-cooked dishes — a braised tomato butter pasta, a roast chicken platter, a grain salad bowl, a greens-and-egg skillet, and a plum cake slice. No people (except the cook's portrait), no readable text, no logos, no brand-name packaging. The cook portrait is an AI-generated fictional person (a woman in her 30s at a kitchen counter, natural working shot, not resembling any real individual). Photos object-fit cover, 12px corners; cards get a 1px Line outline. Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.

## Pages & Sections
### Recipe home (`index.html`)
1. **Content file and copy rules** — All copy below is written for the defaults ([COOK] = June Halloran, [ANGLE] = weeknight cooking that survives a Tuesday). Put every string, recipe and step in src/content.ts and render from it. If any variable differs, rewrite the hero line, the about block, all six recipes (titles, stories, ingredients, steps) so they are specific and believable for that blog, keeping the same structure and counts (5 recipes, 6–9 ingredients each, 4–6 steps each, at least four steps carrying timer minutes). Recipes (slug · title · course · diets · time · difficulty · serves · image): 'tomato-butter-pasta' 'Tomato Butter Pasta for Tired People' pasta ['vegetarian'] 25 easy 4 pasta.webp; 'sheet-pan-chicken' 'Sheet-Pan Chicken, Two Lemons' mains [] 50 easy 4 chicken.webp; 'farro-salad' 'Farro Salad with Everything Green' salads ['vegetarian'] 35 medium 4 salad.webp; 'greens-eggs' 'Greens and Eggs, One Skillet' mains ['vegetarian','gluten-free'] 20 easy 2 skillet.webp; 'plum-cake' 'Brown Butter Plum Cake' baking ['vegetarian'] 65 medium 8 cake.webp. Each recipe's story: 2 short Fraunces-italic paragraphs in the cook's voice (sample: the pasta's story begins 'The title is the recipe.'). Ingredients in grams/ml/countable units so the scaler shines (e.g. 400 g rigatoni; 60 g butter; 3 cloves garlic; 1 lemon). Steps with minutes where timers belong (e.g. pasta: 'boil the pasta 11 min', 'crisp the butter 3 min'). All quantities, times and stories are invented sample content. AboutCook: the portrait, '[COOK]' (Fraunces 600 22px), the line 'Home cook. Writes about [ANGLE].' and two sentences ('I cook in a small kitchen with one good knife and strong opinions about Tuesday.' / 'Everything here is tested at least twice — once for us, once for you (sample).'), plus the SubscribeLine.
   Layout: n/a
   Motion: n/a
2. **Header** — Left: the wordmark '[COOK]' (Fraunces 600 20px) over 'RECIPES · [ANGLE]' (10px uppercase Soft Ink). Right (Inter 500 14px): 'Recipes' → #recipes, 'About' → #about. Under 720px: wordmark only.
   Layout: Sticky top, 64px, Cream at 95% with backdrop blur, Line bottom border.
3. **Hero and lead card** — Eyebrow 'COOKED THIS WEEK'; H1 'Dinner, without the drama.'; lead 'Five recipes that respect a weeknight — exact grams, honest times, and one pan where one pan will do.' The LeadCard (tomato-butter-pasta): a wide 16:9 photo left (7 cols), the recipe block right (5 cols) — course chip, title (Fraunces 600 34px), blurb, the meta row (TimeChip 25 min · DifficultyDots easy · Serves 4 · DietTag vegetarian), a primary 'Cook this one' → ./recipe.html?r=tomato-butter-pasta, and a ghost 'Jump to all recipes' → #recipes.
   Layout: Cream background; LeadCard is a Panel card with Line border, 16px radius; 96px top padding.
4. **Recipe grid with filters** — Section id='recipes'. Eyebrow 'THE RECIPE BOX'; H2 'Five keepers, filterable.' FiltersBar: CourseChips (All / Mains / Pasta / Salads / Baking) and DietChips (Vegetarian / Gluten-free), multi-select for diets, single for course; the count line 'Showing 5 of 5'. RecipeGrid: 3-column RecipeCards (5 cards) (photo 4:3, course chip, title, blurb, meta row with TimeChip and DifficultyDots and DietTags) linking recipe pages.
   Layout: Cream background; 3 columns 24px gap (2 under 1000px, 1 under 640px).
5. **About and footer** — Section id='about': the portrait (3:4, 4 cols) with the caption 'June, mid-tasting (fictional cook, real opinions)'; the bio block (7 cols, offset 1) per the roster, ending with the SubscribeLine ('One email when a new keeper lands' — input + 'Subscribe', small print 'Demo: saved in this browser only', success Good line). Footer: left wordmark + 'hello@' + emailDomain; right '© [COOK]. Recipes are invented sample content — cook them anyway.' and 'Built with a VibeFather template' linking https://vibefather.ai.
   Layout: About two-column; footer 72px, Line top border.

### Recipe (`recipe.html`)
1. **Recipe view** — Reads ?r=<slug>; with no query the first recipe (tomato-butter-pasta) renders. RecipeHero: breadcrumb '← All recipes' → ./index.html#recipes; title (H1); the meta row (TimeChip · DifficultyDots · Serves base · DietTags); the story paragraphs (Fraunces italic); PrintButton (ghost, 'Print this recipe') right-aligned. Below, a 5:7 split: IngredientList (sticky on desktop) — the ServingsScaler at its head, then CheckRows ('400 g' tabular + item), a 'Clear checks' ghost link, and a footnote 'Checks save in this browser'; MethodList — StepRows (numbered 01–06, text, StepTimer chip when minutes exist), the last row closing with the dishes joke ('Done. The dishes still exist — sorry.'). RelatedRecipes at the foot: 'Also good' — three RecipeCards from the remaining recipes. document.title set from the recipe title on load.
   Layout: Cream background; ingredients 5 cols (sticky, Panel card), steps 7 cols; stacked under 900px with ingredients first; footer as home.

## Assets
- image: Template photos made for this design (free to redistribute with the template), one kitchen-editorial style: natural daylight, linen and ceramics, no readable text, no logos, no people. Download each with curl -L -o into public/images/: https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/pasta.webp → public/images/pasta.webp (Lead + recipe hero; alt 'Tomato butter pasta in a ceramic bowl'); https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/chicken.webp → public/images/chicken.webp (Sheet-pan chicken card + hero; alt 'Roast chicken with lemons on a sheet pan'); https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/salad.webp → public/images/salad.webp (Farro salad card + hero; alt 'A grain salad with herbs and greens'); https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/skillet.webp → public/images/skillet.webp (Greens and eggs card + hero; alt 'Greens and eggs in a cast-iron skillet'); https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/cake.webp → public/images/cake.webp (Plum cake card & hero; alt 'A slice of plum cake on a ceramic plate'); https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/cook-portrait.webp → public/images/cook-portrait.webp (About block; alt 'Portrait of the cook at her kitchen counter'). Six files in total; the portrait is an AI-generated fictional person, not resembling any real individual.
- image: Write ASSETS.md at the project root with a table: path, source URL, author, license — one row per photo (source 'media.vibefather.ai, made for this template', author 'VibeFather', license 'Distributed with the template'), plus rows for @fontsource/fraunces and @fontsource-variable/inter (OFL-1.1) and lucide-react (ISC). State that the cook portrait is an AI-generated fictional person and recipes are invented originals.
- icon: lucide-react only: ArrowLeft, Check, Clock, Minus, Pause, Play, Plus, Printer, RotateCcw, Timer. Stroke width 1.75, 14–22px, color inherits. public/favicon.svg: viewBox 0 0 32 32, a 32x32 rounded square filled #C8442E, a white drawn pot glyph with a lid handle. No brand logos.
- font: Install @fontsource/fraunces and @fontsource-variable/inter and import them in src/fonts.ts as listed in Setup. Vite bundles the woff2 files into dist/.
- image: Drawn in code: check ticks, difficulty dots, timer chips, the favicon. No other bitmaps beyond the seven photos.

## Don'ts
- No backend, no form submission, no fetch to API: checks, timers state and the subscribe line persist in localStorage only, and the copy says so; printing is a stylesheet, not a service.
- Every internal link points to a file name or anchor (./index.html, ./index.html#recipes, ./recipe.html?r=plum-cake) — never to a bare directory; recipe.html without a query shows the first recipe, never an error.
- No real food bloggers, chefs, publications or their recipes; all recipes, stories, quantities and times are invented originals with ordinary techniques.
- No nutrition or health claims; no medical language; 'gluten-free' appears only as a recipe tag on recipes written without gluten ingredients.
- The cook portrait is an AI-generated fictional person, not resembling any real individual; other photos contain no people, no readable text, no logos, no brand-name packaging.
- No dates or timestamps from the real clock ('Cooked this week' is static sample copy); nothing prints today's date or years.
- Self-host everything: fonts through Fontsource, icons as npm packages or inline SVG, images downloaded into public/images/. No CDN <script> or <link> tags, no Google Fonts, no analytics.
- Production build: minified, no source maps, no src/ copied into dist/, single command npm run build, output in dist/ under 9 MB.
- Never mention VibeFather inside the site except the footer credit link; all copy is invented US English.
- Respect prefers-reduced-motion: no reveals, pops or pulses; the timer keeps counting and flipping digits (information); color/border hovers stay.
- The site must work at 1440x900 desktop and 390x844 mobile with zero console errors; scaler, checks, timers, print and filters work with keyboard only and visible focus rings.
- Keep quantities sane when scaling: never 0.87 eggs or 13 g of saffron — scaleQty rounds countables to whole and small-quantity spices cap sensibly; every string lives in src/content.ts.

---
— Prompt by VibeFather · https://vibefather.ai/t/recipe-blog-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 食谱博客网站

完全按照下面的描述构建这个网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
一个由 [COOK] 制作的双页食谱博客,[COOK] 是一位家庭厨师,写作主题是 [ANGLE]:一个可筛选的家庭食谱网格,以及食谱页面(?r=<slug>),带有实时份量缩放器、食材清单、分步计时器、打印视图、厨师简介区块和一句诚实的订阅文案。页面:index.html、recipe.html?r=<slug>(第一个食谱不带参数)。一切都在浏览器中运行;不会向任何地方提交数据。

- 受众:今晚就要做饭的人,手机靠在面粉罐上:他们点两下就能缩放份量,购物时逐项勾选食材,不用离开页面就能设置计时器。
- 目标:做出这道菜。访客在十秒内看到一道自己愿意吃的菜;在两分钟内把食谱缩放到四人份并启动一个计时器。
- 语气:餐桌旁的温暖:每个食谱配一个小故事,精确到克,不啰嗦。关于洗碗开一个玩笑。

## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:react(MIT)、react-dom(MIT)、motion(motion.dev,从 'motion/react' 导入)(MIT)、lucide-react(ISC)、tailwindcss(MIT)、postcss(MIT)、autoprefixer(MIT)、vite(MIT)、@vitejs/plugin-react(MIT)、typescript(Apache-2.0)、@fontsource/fraunces(OFL-1.1)、@fontsource-variable/inter(OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 设置:
  - 使用 npm create vite@latest 并选择 react-ts 模板进行脚手架搭建(如果最新模板面向更新的主版本,请固定版本)。项目根目录下有两个真实的 HTML 页面:index.html(入口 src/main-index.tsx)、recipe.html(入口 src/main-recipe.tsx)。
  - vite.config.ts:base './',plugins [react()],build { outDir 'dist', sourcemap false, assetsInlineLimit 0, rollupOptions { input { index: resolve(__dirname, 'index.html'), recipe: resolve(__dirname, 'recipe.html') } } }。不要将 src/ 复制到 dist/ 中。
  - 通过 PostCSS 使用 Tailwind 3.4,content ['./index.html', './recipe.html', './src/**/*.{ts,tsx}']。在 tailwind.config.ts 中,将设计(Design)下的所有颜色添加到 theme.extend.colors 中,使用 kebab-case 键名(cream、panel、line、ink、softink、tomato、tomato-deep、tomato-mist、sage、slateink、good),并设置 fontFamily display ['Fraunces', 'Georgia', 'serif']、sans ['Inter Variable', 'system-ui', 'sans-serif']。将 borderRadius DEFAULT 设置为 12px,并添加 maxWidth { container: '1200px', read: '760px' }。
  - 在 src/fonts.ts 中导入 '@fontsource/fraunces/400.css'、'@fontsource/fraunces/600.css'、'@fontsource/fraunces/400-italic.css' 和 '@fontsource-variable/inter';从两个入口文件导入 src/fonts.ts 和 src/index.css。
  - 文件布局:src/content.ts(厨师档案、食谱 — { slug, title, blurb, course: 'mains'|'pasta'|'salads'|'baking', diets: string[], time: minutes, difficulty: 'easy'|'medium', serves, heroImage, heroAlt, story: string[], ingredients: { qty?: number, unit?: string, item: string }[], steps: { text, minutes?: number }[] },每个字符串都有类型)、src/lib/brand.ts(cookSlug = [COOK] 转为小写,并将每一段非字母数字字符替换为 '-',emailDomain = cookSlug 去掉连字符 + '.com')、src/lib/storage.ts(安全的 localStorage get/set,包裹在 try/catch 中,键为 cookSlug + ':checks:<recipe>' 和 ':sub')、src/lib/scale.ts(scaleQty(qty, factor) 带有合理的舍入 — 克和毫升在接近 10 时取整数,勺取半,可计数取整数;绝不渲染 0.87 个鸡蛋)、src/lib/route.ts(读取 ?r=,解析或回退到第一个食谱 — 绝不出现未找到)。
  - 状态:src/store/checks.ts 是一个小型外部存储(useSyncExternalStore),保存每个食谱已勾选的食材索引,持久化到 localStorage;src/store/timers.ts 保存每步计时器状态 { remaining, running },由一个 1 秒间隔驱动(滴答是信息性的 — 它在减少动态效果下继续,无动画);src/store/sub.ts 保存订阅行状态。
  - 组件位于 src/components/:Header.tsx、Footer.tsx、SubscribeLine.tsx;首页:LeadCard.tsx、FiltersBar.tsx(CourseChips、DietChips)、RecipeGrid.tsx(RecipeCard.tsx 带有 TimeChip.tsx、DifficultyDots.tsx、DietTag.tsx)、AboutCook.tsx;食谱页:RecipeHero.tsx、ServingsScaler.tsx(步进器 +/-)、IngredientList.tsx(CheckRow.tsx)、MethodList.tsx(StepRow.tsx 带有 StepTimer.tsx)、PrintButton.tsx、RelatedRecipes.tsx。页面:src/pages/Home.tsx、Recipe.tsx。
  - ServingsScaler:一个步进器(− / 数量 / +,范围 1–12),带有实时标签 'Serves 4';随着步进器移动,每个食材数量通过 scaleQty 重新计算;无法取分数的项目向上取整,数量高亮一次(140ms 弹出)。
  - StepTimer:当步骤有分钟数时,旁边的标签 '12 min' 在点击时启动计时器 — 标签变为等宽倒计时(mm:ss),带有暂停/重置;归零时翻转为 Good 的 'Done — check it' 状态,并带有一次轻柔的环形动画(在减少动态效果下跳过)。
  - 打印视图:专用的打印样式表(index.css 中的 @media print),隐藏页眉、筛选器、计时器 UI、缩放步进器和页脚,并将食谱输出为一张干净的纸:标题、元信息行、两栏食材、编号步骤;页边距 15mm。PrintButton(window.print())位于食谱页眉中。
  - 在首次构建之前,使用 curl -L -o 将资源(Assets)下列出的每张图片下载到 public/images/ 中,使用给定的确切文件名。构建本身从不获取任何内容。
  - public/favicon.svg 如资源(Assets)下所述。index.html:lang en,<meta name='theme-color' content='#FBF6EC'>,<link rel='icon' href='./favicon.svg' type='image/svg+xml'>,<title>[COOK] — recipes</title>;recipe.html 在加载时设置 document.title。
  - 在项目根目录下编写 ASSETS.md,如资源(Assets)下所述。
  - dist/ 包含两个 HTML 文件、带哈希的 JS/CSS、woff2 字体、favicon.svg 和六张图片。保持在 9 MB 以下。

## 变量
- [COOK] — 厨师姓名(默认:"June Halloran")。虚构厨师的姓名。用于字标、关于区块、页脚和电子邮件(hello@ + cookSlug 去掉连字符 + '.com')。绝不是真实厨师或美食作家。
- [ANGLE] — 博客角度(默认:"weeknight cooking that survives a Tuesday")。一个小写短语,命名博客的角度。重写主视觉文案、关于区块和每个食谱的故事,使其契合。保持具体。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接指向 https://vibefather.ai/t/recipe-blog-website(默认:是;删除此行以移除)

页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。

## 设计
### 颜色
- 奶油色(Cream)`#FBF6EC` — 全站页面背景 — 温暖的厨房光线。
- 面板色(Panel)`#FFFFFF` — 卡片、食材面板、份量调节器。
- 线条色(Line)`#E7DECB` — 1px 细线:卡片边框、分隔线、已勾选行。
- 墨色(Ink)`#26221A` — 标题与正文文字、图标。
- 柔墨色(Soft Ink)`#6E6656` — 简介、元信息、说明文字、眉题。
- 番茄色(Tomato)`#C8442E` — 唯一强调色:主按钮、激活的标签片、勾选标记、计时器运行中、焦点环、链接。
- 深番茄色(Tomato Deep)`#A63623` — 主按钮的悬停与按下态。
- 番茄雾色(Tomato Mist)`#F9E8E1` — 选中标签片的填充、饮食标签、计时器完成态的底色。
- 鼠尾草色(Sage)`#7C8A5A` — 饮食标签绿色(素食)、难度圆点的填充态。
- 石板墨色(Slate Ink)`#231109` — 番茄色填充上的文字。
- 成功色(Good)`#4C8A54` — 计时器完成、订阅成功、勾选标记。

### 字体排印
- 展示字体:H1、食谱标题、字标、斜体故事行 — Fraunces,温暖的厨房衬线体:Fraunces (OFL),字重 400/600
- 文本与界面:正文、步骤、表单、计时器;数量与倒计时使用等宽数字:Inter (OFL),字重 400/500/600

### 布局与动效
- 间距:8px 基准单位。容器最大宽度 1200px,居中,侧边内边距桌面端 48px、平板端 32px、640px 以下 20px;阅读栏最大 760px。区块垂直内边距桌面端 88px、1024px 以下 64px、640px 以下 48px。字号阶梯:H1 clamp(34px, 4.8vw, 58px) Fraunces 600,行高 1.06;食谱标题 clamp(28px, 3.8vw, 44px) Fraunces 600;卡片标题 Fraunces 600 20px;导语 17px Inter 400 / 1.65,宽度 90%;正文 15.5px / 1.7;故事段落 Fraunces 斜体 18px / 1.7;眉题 12px 600 大写 字距 0.14em 柔墨色;元信息与说明文字 13px 柔墨色;数量 Inter 600 15px 等宽数字。按钮:高度 46px,Inter 600 14px;主按钮番茄色填充配白色文字,幽灵按钮为面板色上的 1px 线条色边框。输入框:高度 46px,面板色填充,1px 线条色边框,聚焦时番茄色边框 + 2px 偏移环。全局焦点:2px 番茄色轮廓,3px 偏移。
- 圆角:卡片与面板 12px;按钮、输入框、标签片 10px;胶囊与计时器标签片 999px。
- 动效:缓动:--ease-out cubic-bezier(0.22, 0.61, 0.36, 1)。厨房式平静:快速、小幅移动。
- 动效:显现:卡片与区块进入时在 500ms 内上浮 10px(Motion whileInView,仅一次);网格每张卡片错开 50ms。
- 动效:LeadCard:其照片在 1200ms 内从 scale 1.02 落定,仅一次。
- 动效:筛选:标签片以 140ms 缓动填充番茄雾色;被筛掉的卡片变暗 20% 并下沉 2px(180ms);计数行交叉淡入淡出。
- 动效:ServingsScaler:数量变化交叉淡入淡出 120ms;向上取整的条目其计数弹跳一次(140ms)。
- 动效:CheckRow:勾选标记绘制(SVG 描边,160ms),文字呈现柔和删除线;取消勾选则反向。
- 动效:StepTimer:倒计时的数字无动画切换(等宽宽度保持);“Done”将标签片翻转为番茄雾色并伴随单次环形脉冲(在减少动态效果下跳过)。
- 动效:订阅:交叉淡入淡出至成功色行(240ms)。
- 动效:链接:.link-draw 在悬停与 focus-visible 时以 240ms 生长出 1px currentColor 下划线。
- 动效:prefers-reduced-motion: reduce — 无显现、落定、弹跳或脉冲;勾选标记继续计数(信息性);颜色/边框悬停保留。在 index.css 中使用 CSS @media 以及 Motion 的 useReducedMotion。
- 图像:为本模板制作的六张编辑风格食物照片,风格统一:自然日光、亚麻与陶瓷表面、完成的家庭菜肴 — 一道炖番茄黄油意面、一盘烤鸡、一碗谷物沙拉、一锅绿叶煎蛋、一片李子蛋糕。无人物(厨师的肖像除外),无可读文字,无标识,无品牌包装。厨师肖像为 AI 生成的虚构人物(一位 30 多岁的女性在厨房台面前,自然工作照,不似任何真实个人)。照片 object-fit cover,12px 圆角;卡片加 1px 线条色轮廓。图标:仅 lucide-react,描边宽度 1.75。favicon 为绘制的 SVG。

## 页面与区块
### 食谱首页(`index.html`)
1. **内容文件与文案规则** — 以下所有文案均按默认值撰写([COOK] = June Halloran,[ANGLE] = weeknight cooking that survives a Tuesday)。将每个字符串、食谱和步骤都放入 src/content.ts 并从中渲染。若任何变量不同,请重写主视觉文案、关于区块、全部六个食谱(标题、故事、食材、步骤),使其对该博客具体且可信,同时保持相同结构和数量(5 个食谱,每个 6–9 种食材,每个 4–6 个步骤,至少四个步骤带有计时分钟数)。食谱(slug · 标题 · 类别 · 饮食 · 时间 · 难度 · 份数 · 图片):'tomato-butter-pasta' 'Tomato Butter Pasta for Tired People' pasta ['vegetarian'] 25 easy 4 pasta.webp;'sheet-pan-chicken' 'Sheet-Pan Chicken, Two Lemons' mains [] 50 easy 4 chicken.webp;'farro-salad' 'Farro Salad with Everything Green' salads ['vegetarian'] 35 medium 4 salad.webp;'greens-eggs' 'Greens and Eggs, One Skillet' mains ['vegetarian','gluten-free'] 20 easy 2 skillet.webp;'plum-cake' 'Brown Butter Plum Cake' baking ['vegetarian'] 65 medium 8 cake.webp。每个食谱的故事:2 段简短的 Fraunces 斜体段落,以厨师的语气撰写(示例:意面的故事以 'The title is the recipe.' 开头)。食材以克/毫升/可计数单位表示,以便份量缩放器发挥作用(例如 400 g rigatoni;60 g butter;3 cloves garlic;1 lemon)。步骤在需要计时器处标注分钟数(例如意面:'boil the pasta 11 min','crisp the butter 3 min')。所有数量、时间和故事均为虚构的示例内容。AboutCook:肖像、'[COOK]'(Fraunces 600 22px)、一行 'Home cook. Writes about [ANGLE].' 以及两句话('I cook in a small kitchen with one good knife and strong opinions about Tuesday.' / 'Everything here is tested at least twice — once for us, once for you (sample).'),外加 SubscribeLine。
   布局:不适用
   动效:不适用
2. **页头** — 左侧:字标 '[COOK]'(Fraunces 600 20px),其下为 'RECIPES · [ANGLE]'(10px 大写 Soft Ink)。右侧(Inter 500 14px):'Recipes' → #recipes,'About' → #about。低于 720px:仅显示字标。
   布局:吸顶,64px,Cream 95% 带背景模糊,Line 底边框。
3. **主视觉与引导卡片** — 眉题 'COOKED THIS WEEK';H1 'Dinner, without the drama.';导语 'Five recipes that respect a weeknight — exact grams, honest times, and one pan where one pan will do.' LeadCard(tomato-butter-pasta):左侧宽幅 16:9 照片(7 列),右侧食谱区块(5 列)——类别标签、标题(Fraunces 600 34px)、简介、元信息行(TimeChip 25 min · DifficultyDots easy · Serves 4 · DietTag vegetarian)、主按钮 'Cook this one' → ./recipe.html?r=tomato-butter-pasta,以及幽灵按钮 'Jump to all recipes' → #recipes。
   布局:Cream 背景;LeadCard 为 Panel 卡片,Line 边框,16px 圆角;顶部内边距 96px。
4. **带筛选的食谱网格** — 区块 id='recipes'。眉题 'THE RECIPE BOX';H2 'Five keepers, filterable.' FiltersBar:CourseChips(All / Mains / Pasta / Salads / Baking)和 DietChips(Vegetarian / Gluten-free),饮食多选,类别单选;计数行 'Showing 5 of 5'。RecipeGrid:3 列 RecipeCards(5 张卡片)(照片 4:3、类别标签、标题、简介、含 TimeChip 和 DifficultyDots 及 DietTags 的元信息行),链接到食谱页面。
   布局:Cream 背景;3 列 24px 间距(低于 1000px 为 2 列,低于 640px 为 1 列)。
5. **关于与页脚** — 区块 id='about':肖像(3:4,4 列),配文 'June, mid-tasting (fictional cook, real opinions)';简介区块(7 列,偏移 1)按名册撰写,以 SubscribeLine 结尾('One email when a new keeper lands' — 输入框 + 'Subscribe',小字 'Demo: saved in this browser only',成功 Good 行)。页脚:左侧字标 + 'hello@' + emailDomain;右侧 '© [COOK]. Recipes are invented sample content — cook them anyway.' 以及 'Built with a VibeFather template' 链接到 https://vibefather.ai。
   布局:关于为两栏;页脚 72px,Line 顶边框。

### 食谱(`recipe.html`)
1. **食谱视图** — 读取 ?r=<slug>;无查询参数时渲染第一个食谱(tomato-butter-pasta)。RecipeHero:面包屑 '← All recipes' → ./index.html#recipes;标题(H1);元信息行(TimeChip · DifficultyDots · Serves base · DietTags);故事段落(Fraunces 斜体);PrintButton(幽灵按钮,'Print this recipe')右对齐。下方为 5:7 分栏:IngredientList(桌面端吸顶)——顶部为 ServingsScaler,然后是 CheckRows('400 g' 等宽数字 + 条目)、'Clear checks' 幽灵链接,以及脚注 'Checks save in this browser';MethodList——StepRows(编号 01–06、文本、有分钟数时显示 StepTimer 标签),最后一行以洗碗玩笑收尾('Done. The dishes still exist — sorry.')。底部 RelatedRecipes:'Also good'——三张来自其余食谱的 RecipeCards。加载时根据食谱标题设置 document.title。
   布局:Cream 背景;食材 5 列(吸顶,Panel 卡片),步骤 7 列;低于 900px 时堆叠,食材在前;页脚同首页。

## 资源

- 图片:为本设计制作的模板照片(可随模板自由再分发),统一为厨房编辑风格:自然日光、亚麻与陶瓷,无可读文字、无标识、无人物。用 curl -L -o 将每张图片下载到 public/images/:https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/pasta.webp → public/images/pasta.webp(主图 + 食谱主视觉;alt 'Tomato butter pasta in a ceramic bowl');https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/chicken.webp → public/images/chicken.webp(烤盘鸡肉卡片 + 主视觉;alt 'Roast chicken with lemons on a sheet pan');https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/salad.webp → public/images/salad.webp(法罗沙拉卡片 + 主视觉;alt 'A grain salad with herbs and greens');https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/skillet.webp → public/images/skillet.webp(青菜鸡蛋卡片 + 主视觉;alt 'Greens and eggs in a cast-iron skillet');https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/cake.webp → public/images/cake.webp(李子蛋糕卡片与主视觉;alt 'A slice of plum cake on a ceramic plate');https://media.vibefather.ai/assets/d17895a8-3d7c-4ccb-aa04-bff0648842dc/cook-portrait.webp → public/images/cook-portrait.webp(关于区块;alt 'Portrait of the cook at her kitchen counter')。共六个文件;该人像为 AI 生成的虚构人物,与任何真实个人无关。
- 图片:在项目根目录写入 ASSETS.md,包含一张表格:路径、来源 URL、作者、许可证——每张照片一行(来源 'media.vibefather.ai, made for this template',作者 'VibeFather',许可证 'Distributed with the template'),另加 @fontsource/fraunces 与 @fontsource-variable/inter(OFL-1.1)以及 lucide-react(ISC)的行。注明厨师人像为 AI 生成的虚构人物,食谱为虚构的原创内容。
- 图标:仅使用 lucide-react:ArrowLeft、Check、Clock、Minus、Pause、Play、Plus、Printer、RotateCcw、Timer。描边宽度 1.75,14–22px,颜色继承。public/favicon.svg:viewBox 0 0 32 32,一个 32x32 的圆角方块填充 #C8442E,一个白色绘制的锅形图标带锅盖把手。无品牌标识。
- 字体:安装 @fontsource/fraunces 与 @fontsource-variable/inter,并按 Setup 中所列在 src/fonts.ts 中导入它们。Vite 会将 woff2 文件打包进 dist/。
- 图片:以代码绘制:对勾、难度圆点、计时器标签、favicon。除这七张照片外不使用其他位图。

## 不要做
- 不要后端、不要表单提交、不要向 API 发起 fetch 请求:勾选状态、计时器状态和订阅行仅持久化在 localStorage 中,且文案需说明这一点;打印功能通过样式表实现,而非服务。
- 每个内部链接都指向文件名或锚点(./index.html、./index.html#recipes、./recipe.html?r=plum-cake)——绝不指向裸目录;recipe.html 不带查询参数时显示第一个食谱,绝不报错。
- 不要使用真实的美食博主、厨师、出版物或其食谱;所有食谱、故事、用量和时间均为虚构原创,使用普通技法。
- 不要营养或健康声明;不要医学用语;'gluten-free' 仅作为食谱标签出现在不含麸质成分的食谱上。
- 厨师肖像为 AI 生成的虚构人物,不 resemblance 任何真实个体;其他照片不含人物、无可读文字、无标识、无品牌包装。
- 不要使用真实时钟的日期或时间戳('Cooked this week' 为静态示例文案);任何内容都不打印今天的日期或年份。
- 一切自托管:字体通过 Fontsource,图标作为 npm 包或内联 SVG,图片下载到 public/images/。不要 CDN 的 <script> 或 <link> 标签,不要 Google Fonts,不要分析工具。
- 生产构建:压缩、无 source map、不将 src/ 复制到 dist/、单条命令 npm run build、输出在 dist/ 下且小于 9 MB。
- 除页脚署名链接外,绝不在站内提及 VibeFather;所有文案均为虚构的美式英语。
- 尊重 prefers-reduced-motion:不要出现显现、弹出或脉冲动画;计时器继续计数并翻动数字(信息性);颜色/边框悬停效果保留。
- 网站必须在 1440x900 桌面端和 390x844 移动端正常工作,控制台零错误;缩放器、勾选、计时器、打印和筛选器仅用键盘即可操作,且焦点环可见。
- 缩放时保持用量合理:绝不要 0.87 个鸡蛋或 13 g 藏红花——scaleQty 将可数项四舍五入为整数,小用量香料设有合理上限;每个字符串都存放在 src/content.ts 中。

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

个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.

DESIGN.md

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

---
name: "Recipe Blog Website"
colors:
  cream: "#FBF6EC"
  panel: "#FFFFFF"
  line: "#E7DECB"
  ink: "#26221A"
  soft_ink: "#6E6656"
  tomato: "#C8442E"
  tomato_deep: "#A63623"
  tomato_mist: "#F9E8E1"
  sage: "#7C8A5A"
  slate_ink: "#231109"
  good: "#4C8A54"
typography:
  display_h1_recipe_titles_the_wordmark_italic_story_lines_fraunces_warm_kitchen_serif: { family: "Fraunces", weights: [400, 600] }
  text_and_ui_body_steps_forms_timers_tabular_numerals_for_quantities_and_countdowns: { family: "Inter", weights: [400, 500, 600] }
spacing: "8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; reading column max 760px. Section vertical padding 88px desktop, 64px under 1024px, 48px under 640px. Type scale: H1 clamp(34px, 4.8vw, 58px) Fraunces 600, line-height 1.06; recipe titles clamp(28px, 3.8vw, 44px) Fraunces 600; card titles Fraunces 600 20px; lead 17px Inter 400 / 1.65 at 90%; body 15.5px / 1.7; story paragraphs Fraunces italic 18px / 1.7; eyebrow 12px 600 uppercase letter-spacing 0.14em Soft Ink; meta and captions 13px Soft Ink; quantities Inter 600 15px tabular. Buttons: height 46px, Inter 600 14px; primary Tomato fill with white text, ghost 1px Line border on Panel. Inputs: height 46px, Panel fill, 1px Line border, focus Tomato border + 2px offset ring. Focus everywhere: 2px Tomato outline, 3px offset."
radius: "12px on cards and panels; 10px on buttons, inputs, chips; 999px for pills and timer chips."
---

# Recipe Blog Website — 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
- **Cream** `#FBF6EC` — Page background throughout — warm kitchen light.
- **Panel** `#FFFFFF` — Cards, ingredient panel, scaler.
- **Line** `#E7DECB` — 1px hairlines: card borders, dividers, checked rows.
- **Ink** `#26221A` — Headlines and body ink, icons.
- **Soft Ink** `#6E6656` — Blurbs, meta, captions, eyebrows.
- **Tomato** `#C8442E` — The one accent: primary buttons, active chips, checked ticks, timer running, focus ring, links.
- **Tomato Deep** `#A63623` — Hover and pressed primary.
- **Tomato Mist** `#F9E8E1` — Selected chip fills, diet tags, timer done tint.
- **Sage** `#7C8A5A` — Diet tag green (vegetarian), difficulty dots' filled state.
- **Slate Ink** `#231109` — Text on tomato fills.
- **Good** `#4C8A54` — Timer done, subscribe success, check ticks.

## Typography
- **Display: H1, recipe titles, the wordmark, italic story lines — Fraunces, warm kitchen serif** — Fraunces (OFL), weights 400/600. Self-host the font files.
- **Text and UI: body, steps, forms, timers; tabular numerals for quantities and countdowns** — Inter (OFL), weights 400/500/600. Self-host the font files.

## Spacing & shape
- Spacing: 8px base unit. Container max-width 1200px, centered, side padding 48px desktop, 32px tablet, 20px under 640px; reading column max 760px. Section vertical padding 88px desktop, 64px under 1024px, 48px under 640px. Type scale: H1 clamp(34px, 4.8vw, 58px) Fraunces 600, line-height 1.06; recipe titles clamp(28px, 3.8vw, 44px) Fraunces 600; card titles Fraunces 600 20px; lead 17px Inter 400 / 1.65 at 90%; body 15.5px / 1.7; story paragraphs Fraunces italic 18px / 1.7; eyebrow 12px 600 uppercase letter-spacing 0.14em Soft Ink; meta and captions 13px Soft Ink; quantities Inter 600 15px tabular. Buttons: height 46px, Inter 600 14px; primary Tomato fill with white text, ghost 1px Line border on Panel. Inputs: height 46px, Panel fill, 1px Line border, focus Tomato border + 2px offset ring. Focus everywhere: 2px Tomato outline, 3px offset.
- Radius: 12px on cards and panels; 10px on buttons, inputs, chips; 999px for pills and timer chips.

## Motion
- Easing: --ease-out cubic-bezier(0.22, 0.61, 0.36, 1). Kitchen-calm: quick, small moves.
- Reveal: cards and blocks rise 10px over 500ms as they enter (Motion whileInView, once); grid staggers 50ms per card.
- LeadCard: its photo settles from scale 1.02 over 1200ms once.
- Filtering: chips fill Tomato Mist with a 140ms ease; cards dim 20% and sink 2px when filtered out (180ms); the count line crossfades.
- ServingsScaler: quantity changes crossfade 120ms; an item rounding up pops its count once (140ms).
- CheckRow: the tick draws (SVG stroke, 160ms) and the text takes a soft strike; unchecking reverses.
- StepTimer: the countdown's digits swap without animation (tabular width holds); 'Done' flips the chip to Tomato Mist with a single ring pulse (skipped under reduced motion).
- Subscribe: crossfades to the Good line (240ms).
- Links: .link-draw grows a 1px currentColor underline over 240ms on hover and focus-visible.
- prefers-reduced-motion: reduce — no reveals, settles, pops or pulses; the tick keeps counting (information); color/border hovers stay. Use CSS @media in index.css plus Motion's useReducedMotion.

## Imagery
Six editorial food photographs made for this template in one consistent style: natural daylight, linen and ceramic surfaces, finished home-cooked dishes — a braised tomato butter pasta, a roast chicken platter, a grain salad bowl, a greens-and-egg skillet, and a plum cake slice. No people (except the cook's portrait), no readable text, no logos, no brand-name packaging. The cook portrait is an AI-generated fictional person (a woman in her 30s at a kitchen counter, natural working shot, not resembling any real individual). Photos object-fit cover, 12px corners; cards get a 1px Line outline. Icons: lucide-react only, stroke width 1.75. The favicon is drawn SVG.

## Tone
Kitchen-table warm: one small story per recipe, exact grams, no fuss. One joke about doing the dishes.

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

改成你自己的

  • 酸面包烘焙博客:把 COOK 设为烘焙师,ANGLE 设为慢发酵,然后把五个食谱改写成面包,并配上长时间的分步计时器。
  • 备餐创作者:保留菜系和饮食筛选,把食谱换成每周备餐计划,把食材清单当作购物清单使用。
  • 小型烹饪学校:在 COOK 中填讲师名字,把订阅行指向课程公告,让每个食谱页同时充当可打印的讲义。
  • 家庭食谱档案:用祖辈作为 COOK,主题定为传家菜,把虚构头像换成真实照片。

食谱博客网站:常见问题

食谱博客网站模板的份量缩放器是怎么工作的?

食谱博客网站模板在每个食谱页都放了一个步进器,份量范围 1 到 12。上下调整会实时重算每种食材的用量,采用合理的取整方式,让你得到整克、半勺和整颗鸡蛋,而不是 0.87 个鸡蛋这样的分数。可计数的食材向上取整,取整时数字会短暂高亮。

怎么用 AI 做一个食谱博客网站?

复制本页的提示词,或者运行 npx vibefather add recipe-blog-website,把 [COOK]、[ANGLE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。