AI 膳食卡路里扫描 App 是一款清爽、日光色调、移动优先的健康与营养记录渐进式 Web 应用,面向健康创业公司、消费级 AI 开发者和产品团队。设计采用清新叶色白、深林墨色、牛油果绿和柑橘橙,原生全出血适配所有设备,不使用假手机外框:移动端用户通过简洁的 4 标签底部栏(今日、扫描、日记、趋势)导航,桌面端用户则看到干净的分栏健康仪表盘。六张统一的俯拍健康餐盘照片同时支撑每日膳食日记和互动式模拟“扫描一餐”工作台——用户可选择任意示例餐盘(或输入自定义餐食),观看动态扫描扫掠揭示 SVG 食材标注钉、即时卡路里/蛋白质/碳水/脂肪遥测数据,以及一个实时分量倍数滑块(0.5× 到 2.0×),可直接记录到今日日记。动态每日卡路里和营养素 SVG 进度圆环、触感式 +250ml 饮水追踪器、已保存的收藏餐食和 7 天 SVG 摄入趋势图均无缝持久化在 localStorage 中(明确标注为示意性健康追踪器,不作任何医疗声明)。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# AI Meal Calorie Scanner App
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A true full-bleed responsive mobile-first AI nutrition and calorie logging PWA called [BRAND] for [USER_NAME] (daily target '[DAILY_GOAL_KCAL]', spotlighting '[FEATURED_SCAN]'). Mobile uses a clean 4-tab bottom bar (Today, Scan, Diary, Trends); desktop uses a clean left rail + balanced split wellness workspace (zero fake phone frame!). Anchored by 6 cohesive overhead healthy meal photographs downloaded locally into public/assets/ (each used uniquely across meals/sample scans!). Features animated SVG Daily Calorie & Macro Rings (Protein / Carbs / Fat), an interactive simulated 'Scan a Meal' studio with animated scan line + SVG ingredient callout tags + live portion multiplier logging directly into Today's Diary, tactile Water Intake (+250ml) tracker, 7-day SVG intake trend chart and saved favorites persisted in localStorage. Clearly labeled illustrative wellness tracker (no medical claims).
- Audience: Consumer AI founders, wellness app builders, indie developers and UI designers shipping nutrition & habit tracking PWAs.
- Goal: Deliver a fresh, appetizing, genuinely interactive AI meal-scanner and macro logging PWA starter ready out of the box.
- Tone: Fresh daylight organic clarity, encouraging wellness craft, zero clinical jargon.
## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: lucide-react (ISC), @fontsource/plus-jakarta-sans (OFL-1.1), @fontsource/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Configure Vite with base: './' and build: { sourcemap: false }.
- Import @fontsource/plus-jakarta-sans (600, 700, 800), @fontsource/inter (400, 500, 600) and @fontsource/jetbrains-mono (400, 500) in src/main.tsx.
- Download all 6 overhead healthy meal webp photographs from Assets into public/assets/ and load strictly via relative ./assets/<file> paths.
- Store 6 realistic sample scannable meals (each paired with its unique local photo, ingredient bounding coordinates, calorie/macro breakdowns), 3 seeded meals logged for Today, water glasses count and 7-day historical macro arrays in src/content.ts; persist all logged meals, portion adjustments, favorites and water taps in localStorage.
## Variables
- [BRAND] — Wellness app name (default: "NutriLens"). Invented AI nutrition PWA name
- [USER_NAME] — Member first name (default: "Maya Lin"). Fictional app user
- [DAILY_GOAL_KCAL] — Daily calorie target (default: "2,100 kcal"). Formatted daily intake goal
- [FEATURED_SCAN] — Default active scanned meal (default: "Seared Salmon & Avocado Grain Bowl"). Spotlight meal in Scan Studio
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/ai-meal-calorie-scanner-app 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
- Daylight Leaf Canvas `#F8FAF7` — Primary crisp organic daylight background
- Pure Porcelain Card `#FFFFFF` — Ring dashboard, scan viewfinder card, diary rows and trend charts
- Deep Forest Ink `#14261C` — Primary headings, calorie numerals and active navigation
- Avocado Green `#22C55E` — Calorie completion ring, Scan Meal primary CTA, protein/healthy tags and water bar
- Citrus Orange `#F97316` — Carbs macro ring, scan ingredient callout pins and streak flame badge
- Sky Hydration `#0EA5E9` — Water intake tracker glasses and fat/hydration accents
- Sage Hairline `#E3EBE2` — Crisp 1px structural dividers
### Typography
- Brand mark, calorie remaining display and section titles: Plus Jakarta Sans (OFL), weights 600/700/800
- Meal descriptions, ingredient breakdowns and diary labels: Inter (OFL), weights 400/500/600
- Calories (620 kcal), macro grams (42g P), portion multipliers (1.25×) and dates: JetBrains Mono (OFL), weights 400/500
### Layout & motion
- Spacing: True full-bleed responsive PWA (zero fake phone frame!). Desktop 1440x900: 224px left navigation rail (Brand, 4 views, Quick Scan CTA, Illustrative Wellness note, [USER_NAME] card) + balanced 2-column Today & Live Scan Workspace (Left: Calorie & Macro SVG Rings + Today's Logged Meals with real overhead food photos + Water Tracker; Right: Interactive 'Scan a Meal' Preview Studio already displaying '[FEATURED_SCAN]' with glowing ingredient callout tags so the desktop first screen looks unmistakably like an AI Meal Scanner!). Mobile 390x844: crisp compact opaque 56px top bar, stacked Rings + Scan CTA + Meals + native 64px 4-tab bottom bar (Today, Scan, Diary, Trends) aligned on one baseline.
- Radius: Fresh tactile consumer curves: 20px on macro summary and scan viewfinder cards, 14px on meal photo cards, 999px on macro pills, scan pins and water droplets.
- Motion: Animated SVG stroke-dashoffset macro rings and crisp horizontal laser scan sweep when selecting a new meal in Scan Studio (clean instant readout under prefers-reduced-motion).
- Motion: Smooth hydration glass fill animation and live portion-slider calorie recalculation.
- Imagery: 6 cohesive overhead sunlit healthy meal photographs (salmon-avocado-bowl, matcha-chia-parfait, chicken-quinoa-salad, avocado-egg-toast, tofu-soba-noodles, berry-protein-smoothie)—each used cleanly on its dedicated meal card & interactive AI scanner specimen with overlaid SVG ingredient callout chips, plus a warm custom SVG portrait avatar for [USER_NAME].
## Pages & Sections
### [BRAND] — AI Meal Scanner & Daily Macro Tracker (`index.html`)
1. **Adaptive Shell — Desktop Left Rail & Mobile 4-Tab Bottom Navigation** — Desktop 224px solid white rail with [BRAND] leaf-lens SVG mark, avocado-green '+ Scan a Meal' button, 4 views ('Today', 'Scan Studio', 'Meal Diary', '7-Day Trends'), subtle 'Illustrative wellness UI · Not medical advice' footer note and [USER_NAME] custom SVG portrait card. Mobile (<768px): compact opaque 56px top bar + native fixed 4-tab bottom bar ('Today', 'Scan', 'Diary', 'Trends') aligned cleanly on one baseline.
Layout: Full-bleed responsive PWA chrome; strictly zero fake phone bezel.
Motion: Smooth view switches.
2. **Today Overview — Calorie & Macro SVG Rings, Water Counter & Today's Meals** — Hero nutrition summary card featuring a commanding SVG Daily Calorie Ring ('1,465 / [DAILY_GOAL_KCAL] · 635 left') alongside 3 crisp color-coded Macro Progress Bars/Rings (Protein 108g/145g in Avocado Green, Carbs 142g/210g in Citrus Orange, Fat 48g/65g in Forest Slate). Directly beside/below: tactile Hydration Tracker ('6 / 8 glasses · 1.5L' with clickable glass icons & '+250ml' button updating live) and Today's Logged Meals feed displaying 3 distinct meals with their crisp square overhead food thumbnails ('./assets/avocado-egg-toast.webp', './assets/chicken-quinoa-salad.webp', './assets/matcha-chia-parfait.webp'), macro pills, heart-favorite toggle and delete option.
Layout: Balanced left column on desktop alongside the live Scan Studio panel; clean vertical first-screen stack on mobile.
Motion: Live SVG ring arc animation when new meals are logged.
3. **Interactive 'Scan a Meal' Studio (Simulated AI Dish Detection & Portion Slider)** — Pre-loaded on '[FEATURED_SCAN]' ('./assets/salmon-avocado-bowl.webp') so the first desktop viewport showcases the signature AI visual callout interface right away! Users click across 6 sample dish thumbnails (all 6 unique photos: Salmon Bowl, Avocado Egg Toast, Chicken Quinoa, Chia Parfait, Tofu Soba, Berry Smoothie) OR type a custom dish description and click 'Analyze Meal' to trigger a crisp 900ms visual scan sweep. Displays overlaid crisp ingredient pin badges directly over the dish photo (e.g. 'Wild Salmon · 280 kcal', 'Avocado · 120 kcal', 'Quinoa · 160 kcal', 'Edamame · 60 kcal'), editable Portion Multiplier slider ('0.5×', '1.0×', '1.5×', '2.0×') recalculating total kcal and macros live, meal-slot selector ('Breakfast / Lunch / Dinner / Snack') and primary Avocado Green 'Log to Today' button that genuinely adds the meal and updates the Daily Calorie Ring!
Layout: Right focal studio panel on desktop Today view + dedicated full-focus 'Scan' view on mobile.
Motion: Animated scan beam sweep and staggered ingredient pill badges.
4. **Meal Diary, Saved Favorites & 7-Day Intake Trends Views** — Diary view lets users filter logged meals by slot (Breakfast/Lunch/Dinner/Snack), browse Saved Favorites with 1-tap '+ Quick Log', and review complete daily macro totals. Trends view renders a clean interactive SVG 7-Day Calorie Intake Bar Chart with dashed '[DAILY_GOAL_KCAL]' target line, daily hover tooltips, weekly Protein/Carbs/Fat ratio donut chart, and 7-day hydration streak stats.
Layout: Clean full-width tabbed views matching desktop and mobile shells.
Motion: Smooth hover tooltips on 7-day SVG chart bars.
## Assets
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/salmon-avocado-bowl.webp to public/assets/salmon-avocado-bowl.webp (alt: Overhead view of seared salmon, avocado, edamame and quinoa grain bowl). Used in Scan Studio default.
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/matcha-chia-parfait.webp to public/assets/matcha-chia-parfait.webp (alt: Overhead Greek yogurt chia bowl with figs, blueberries and pistachios). Used in Breakfast/Snack.
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/chicken-quinoa-salad.webp to public/assets/chicken-quinoa-salad.webp (alt: Overhead herb chicken bowl with sweet potato, spinach and chickpeas). Used in Lunch.
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/avocado-egg-toast.webp to public/assets/avocado-egg-toast.webp (alt: Overhead sourdough avocado toast topped with soft-boiled eggs and pea shoots). Used in Breakfast.
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/tofu-soba-noodles.webp to public/assets/tofu-soba-noodles.webp (alt: Overhead cold buckwheat soba noodles with seared sesame tofu and broccolini). Used in Dinner sample scan.
- image: Download https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/berry-protein-smoothie.webp to public/assets/berry-protein-smoothie.webp (alt: Overhead berry cacao smoothie bowl with banana, strawberries and pumpkin seeds). Used in Snack sample scan.
- icon: Lucide React icons (lucide-react, ISC license) for camera scan, flame, water droplet, book diary, bar chart, heart and plus.
- font: Self-hosted via @fontsource/plus-jakarta-sans, @fontsource/inter and @fontsource/jetbrains-mono (all OFL-1.1).
## Don'ts
- Do not wrap the app inside a fake phone bezel or mock iOS status bar; build a real responsive full-bleed PWA.
- Do not render any 'Template by VibeFather' or third-party watermark text inside navigation, cards, or footers.
- Do not make medical, weight-loss cure, or diagnostic claims; clearly frame it as an illustrative personal wellness tracker.
- Do not hotlink images, use CDN fonts, or emit source maps; configure Vite with base: './' and sourcemap: false.
---
— Prompt by VibeFather · https://vibefather.ai/t/ai-meal-calorie-scanner-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
# AI 膳食卡路里扫描应用
完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。
## 简介
一个真正的全出血响应式移动优先 AI 营养与卡路里记录 PWA,名为 [BRAND],面向 [USER_NAME](每日目标 '[DAILY_GOAL_KCAL]',重点展示 '[FEATURED_SCAN]')。移动端使用简洁的 4 标签底部栏(Today、Scan、Diary、Trends);桌面端使用简洁的左侧栏 + 均衡分栏的健康工作区(零虚假手机边框!)。以 6 张风格统一的俯拍健康餐食照片为锚点,照片已本地下载到 public/assets/(每张都在餐食/示例扫描中唯一使用!)。功能包括动画 SVG 每日卡路里与宏量营养环(Protein / Carbs / Fat)、一个交互式模拟“Scan a Meal”工作室,带有动画扫描线 + SVG 食材标注标签 + 实时份量倍数记录,可直接记入 Today's Diary、触感式饮水摄入(+250ml)追踪器、7 天 SVG 摄入趋势图,以及持久化在 localStorage 中的已保存收藏。清晰标注为示意性健康追踪器(无医疗声明)。
- 受众:消费级 AI 创始人、健康应用构建者、独立开发者和 UI 设计师,正在发布营养与习惯追踪 PWA。
- 目标:交付一个清新、诱人、真正可交互的 AI 餐食扫描器与宏量营养记录 PWA 起步项目,开箱即用。
- 语气:清新日光的有机澄澈感,鼓励性的健康工艺,零临床术语。
## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:lucide-react (ISC)、@fontsource/plus-jakarta-sans (OFL-1.1)、@fontsource/inter (OFL-1.1)、@fontsource/jetbrains-mono (OFL-1.1)
- 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。
- 设置:
- 配置 Vite,设置 base: './' 和 build: { sourcemap: false }。
- 在 src/main.tsx 中导入 @fontsource/plus-jakarta-sans (600, 700, 800)、@fontsource/inter (400, 500, 600) 和 @fontsource/jetbrains-mono (400, 500)。
- 从 Assets 下载全部 6 张俯拍健康餐食 webp 照片到 public/assets/,并严格通过相对路径 ./assets/<file> 加载。
- 在 src/content.ts 中存储 6 份逼真的可扫描餐食示例(每份配有其唯一的本地照片、食材边界坐标、卡路里/宏量营养素分解)、3 份为 Today 记录的种子餐食、水杯计数和 7 天历史宏量营养素数组;将所有已记录的餐食、份量调整、收藏和水杯点击持久化到 localStorage。
## 变量
- [BRAND] — 健康应用名称(默认:“NutriLens”)。虚构的 AI 营养 PWA 名称
- [USER_NAME] — 会员名字(默认:“Maya Lin”)。虚构的应用用户
- [DAILY_GOAL_KCAL] — 每日卡路里目标(默认:“2,100 kcal”)。格式化后的每日摄入目标
- [FEATURED_SCAN] — 默认激活的扫描餐食(默认:“Seared Salmon & Avocado Grain Bowl”)。Scan Studio 中的聚焦餐食
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/ai-meal-calorie-scanner-app(默认:是;删除此行即可移除)
Pages & Sections 下的文案是按默认值编写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。
## 设计
### 颜色(Colors)
- 日光叶色画布(Daylight Leaf Canvas)`#F8FAF7` — 主清爽有机日光背景
- 纯瓷卡片(Pure Porcelain Card)`#FFFFFF` — 环形仪表盘、扫描取景卡片、日记行和趋势图表
- 深林墨色(Deep Forest Ink)`#14261C` — 主标题、卡路里数字和活动导航
- 牛油果绿(Avocado Green)`#22C55E` — 卡路里完成环、Scan Meal 主 CTA、蛋白质/健康标签和水条
- 柑橘橙(Citrus Orange)`#F97316` — 碳水宏量环、扫描食材标注引脚和连续火焰徽章
- 天空补水色(Sky Hydration)`#0EA5E9` — 饮水追踪杯和脂肪/补水强调色
- 鼠尾草细线(Sage Hairline)`#E3EBE2` — 清爽 1px 结构分隔线
### 排版
- 品牌标识、剩余卡路里显示和区块标题:Plus Jakarta Sans(OFL),字重 600/700/800
- 餐食描述、食材分解和日记标签:Inter(OFL),字重 400/500/600
- 卡路里(620 kcal)、宏量克数(42g P)、份量倍数(1.25×)和日期:JetBrains Mono(OFL),字重 400/500
### 布局与动效
- 间距:真正的全出血响应式 PWA(零假手机边框!)。桌面 1440x900:224px 左侧导航栏(品牌、4 个视图、Quick Scan CTA、Illustrative Wellness 注释、[USER_NAME] 卡片)+ 平衡的 2 列 Today & Live Scan Workspace(左侧:卡路里与宏量 SVG 环 + 今日记录餐食,配真实俯拍食物照片 + 饮水追踪器;右侧:交互式“Scan a Meal”预览工作室,已显示“[FEATURED_SCAN]”,带有发光的食材标注标签,让桌面首屏看起来毫无疑问就是 AI Meal Scanner!)。移动端 390x844:清爽紧凑的不透明 56px 顶栏,堆叠的环形 + Scan CTA + 餐食 + 原生 64px 4 标签底部栏(Today、Scan、Diary、Trends)对齐在同一基线上。
- 圆角:清新触感消费级曲线:宏量摘要和扫描取景卡片 20px,餐食照片卡片 14px,宏量胶囊、扫描引脚和水滴 999px。
- 动效:动画 SVG stroke-dashoffset 宏量环,以及在 Scan Studio 中选择新餐食时的清爽水平激光扫描扫过(在 prefers-reduced-motion 下为干净的即时读数)。
- 动效:平滑的补水杯填充动画和实时份量滑块卡路里重算。
- 图像:6 张风格统一的俯拍阳光健康餐食照片(salmon-avocado-bowl、matcha-chia-parfait、chicken-quinoa-salad、avocado-egg-toast、tofu-soba-noodles、berry-protein-smoothie)——每张都干净地用于其专属餐食卡片和交互式 AI 扫描仪样本,并叠加 SVG 食材标注芯片,另为 [USER_NAME] 提供一张温暖的自定义 SVG 肖像头像。
## 页面与区块
### [BRAND] — AI 餐食扫描器与每日宏量营养素追踪器(`index.html`)
1. **自适应外壳 — 桌面左侧栏与移动端 4 标签底部导航** — 桌面端 224px 纯白侧栏,带 [BRAND] 叶片透镜 SVG 标志、牛油果绿“+ Scan a Meal”按钮、4 个视图(“Today”、“Scan Studio”、“Meal Diary”、“7-Day Trends”)、低调的“Illustrative wellness UI · Not medical advice”页脚注释和 [USER_NAME] 自定义 SVG 头像卡片。移动端(<768px):紧凑不透明 56px 顶栏 + 原生固定 4 标签底部栏(“Today”、“Scan”、“Diary”、“Trends”),整齐对齐于同一基线。
布局:全出血响应式 PWA 外壳;严格零虚假手机边框。
动效:平滑视图切换。
2. **今日概览 — 卡路里与宏量营养素 SVG 圆环、饮水计数器与今日餐食** — 主视觉营养摘要卡片,包含醒目的 SVG 每日卡路里圆环(“1,465 / [DAILY_GOAL_KCAL] · 635 left”)以及 3 条清晰的颜色编码宏量营养素进度条/圆环(蛋白质 108g/145g,牛油果绿;碳水 142g/210g,柑橘橙;脂肪 48g/65g,森林石板灰)。紧邻其旁/下方:触感饮水追踪器(“6 / 8 glasses · 1.5L”,带可点击水杯图标和实时更新的“+250ml”按钮)以及今日记录餐食信息流,展示 3 份不同餐食及其清晰的方形俯拍食物缩略图('./assets/avocado-egg-toast.webp'、'./assets/chicken-quinoa-salad.webp'、'./assets/matcha-chia-parfait.webp')、宏量营养素胶囊标签、爱心收藏切换和删除选项。
布局:桌面端左栏与实时 Scan Studio 面板并排平衡;移动端首屏干净垂直堆叠。
动效:记录新餐食时实时 SVG 圆环弧线动画。
3. **交互式“Scan a Meal”工作室(模拟 AI 菜品识别与份量滑块)** — 预加载“[FEATURED_SCAN]”('./assets/salmon-avocado-bowl.webp'),使首个桌面视口立即展示标志性 AI 视觉标注界面!用户可点击 6 个示例菜品缩略图(全部 6 张独特照片:Salmon Bowl、Avocado Egg Toast、Chicken Quinoa、Chia Parfait、Tofu Soba、Berry Smoothie),或输入自定义菜品描述并点击“Analyze Meal”触发清晰的 900ms 视觉扫描扫掠。直接在菜品照片上叠加显示清晰的食材图钉徽章(例如“Wild Salmon · 280 kcal”、“Avocado · 120 kcal”、“Quinoa · 160 kcal”、“Edamame · 60 kcal”)、可编辑份量倍数滑块(“0.5×”、“1.0×”、“1.5×”、“2.0×”)实时重新计算总 kcal 和宏量营养素、餐段选择器(“Breakfast / Lunch / Dinner / Snack”)以及主牛油果绿“Log to Today”按钮,真正添加餐食并更新每日卡路里圆环!
布局:桌面端 Today 视图右侧焦点工作室面板 + 移动端专用全焦点“Scan”视图。
动效:动画扫描光束扫掠和交错食材胶囊徽章。
4. **餐食日记、收藏夹与 7 天摄入趋势视图** — 日记视图允许用户按餐段(Breakfast/Lunch/Dinner/Snack)筛选已记录餐食、浏览收藏夹并一键“+ Quick Log”、查看完整每日宏量营养素总计。趋势视图渲染干净的交互式 SVG 7 天卡路里摄入柱状图,带虚线“[DAILY_GOAL_KCAL]”目标线、每日悬停提示、每周蛋白质/碳水/脂肪比例环形图和 7 天饮水连续统计。
布局:干净的全宽标签视图,匹配桌面和移动外壳。
动效:7 天 SVG 图表柱上的平滑悬停提示。
## 资源
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/salmon-avocado-bowl.webp 到 public/assets/salmon-avocado-bowl.webp(alt:烤三文鱼、牛油果、毛豆和藜麦谷物碗的俯视图)。用于 Scan Studio 默认项。
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/matcha-chia-parfait.webp 到 public/assets/matcha-chia-parfait.webp(alt:配有无花果、蓝莓和开心果的希腊酸奶奇亚籽碗俯视图)。用于 Breakfast/Snack。
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/chicken-quinoa-salad.webp 到 public/assets/chicken-quinoa-salad.webp(alt:配有红薯、菠菜和鹰嘴豆的香草鸡肉碗俯视图)。用于 Lunch。
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/avocado-egg-toast.webp 到 public/assets/avocado-egg-toast.webp(alt:顶部配有半熟蛋和豌豆苗的酸面包牛油果吐司俯视图)。用于 Breakfast。
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/tofu-soba-noodles.webp 到 public/assets/tofu-soba-noodles.webp(alt:配有煎芝麻豆腐和西兰苔的冷荞麦面俯视图)。用于 Dinner 示例扫描。
- 图片:下载 https://media.vibefather.ai/assets/4b9a7bc5-2bd9-4b02-8daf-1eab88db155e/berry-protein-smoothie.webp 到 public/assets/berry-protein-smoothie.webp(alt:配有香蕉、草莓和南瓜籽的浆果可可冰沙碗俯视图)。用于 Snack 示例扫描。
- 图标:Lucide React 图标(lucide-react,ISC 许可证),用于相机扫描、火焰、水滴、日记本、柱状图、心形和加号。
- 字体:通过 @fontsource/plus-jakarta-sans、@fontsource/inter 和 @fontsource/jetbrains-mono 自托管(均为 OFL-1.1)。
## 不要做的事
- 不要将应用包裹在伪造的手机边框或模拟的 iOS 状态栏中;要构建一个真正的响应式全出血 PWA。
- 不要在导航、卡片或页脚内渲染任何“Template by VibeFather”或第三方水印文字。
- 不要做出医疗、减肥治愈或诊断方面的声明;要明确将其定位为说明性的个人健康追踪器。
- 不要热链接图片、使用 CDN 字体或生成 source map;将 Vite 配置为 base: './' 和 sourcemap: false。
---
— Prompt by VibeFather · https://vibefather.ai/t/ai-meal-calorie-scanner-app · 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。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "AI Meal Calorie Scanner App"
colors:
daylight_leaf_canvas: "#F8FAF7"
pure_porcelain_card: "#FFFFFF"
deep_forest_ink: "#14261C"
avocado_green: "#22C55E"
citrus_orange: "#F97316"
sky_hydration: "#0EA5E9"
sage_hairline: "#E3EBE2"
typography:
brand_mark_calorie_remaining_display_and_section_titles: { family: "Plus Jakarta Sans", weights: [600, 700, 800] }
meal_descriptions_ingredient_breakdowns_and_diary_labels: { family: "Inter", weights: [400, 500, 600] }
calories_620_kcal_macro_grams_42g_p_portion_multipliers_1_25_and_dates: { family: "JetBrains Mono", weights: [400, 500] }
spacing: "True full-bleed responsive PWA (zero fake phone frame!). Desktop 1440x900: 224px left navigation rail (Brand, 4 views, Quick Scan CTA, Illustrative Wellness note, [USER_NAME] card) + balanced 2-column Today & Live Scan Workspace (Left: Calorie & Macro SVG Rings + Today's Logged Meals with real overhead food photos + Water Tracker; Right: Interactive 'Scan a Meal' Preview Studio already displaying '[FEATURED_SCAN]' with glowing ingredient callout tags so the desktop first screen looks unmistakably like an AI Meal Scanner!). Mobile 390x844: crisp compact opaque 56px top bar, stacked Rings + Scan CTA + Meals + native 64px 4-tab bottom bar (Today, Scan, Diary, Trends) aligned on one baseline."
radius: "Fresh tactile consumer curves: 20px on macro summary and scan viewfinder cards, 14px on meal photo cards, 999px on macro pills, scan pins and water droplets."
---
# AI Meal Calorie Scanner App — 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
- **Daylight Leaf Canvas** `#F8FAF7` — Primary crisp organic daylight background
- **Pure Porcelain Card** `#FFFFFF` — Ring dashboard, scan viewfinder card, diary rows and trend charts
- **Deep Forest Ink** `#14261C` — Primary headings, calorie numerals and active navigation
- **Avocado Green** `#22C55E` — Calorie completion ring, Scan Meal primary CTA, protein/healthy tags and water bar
- **Citrus Orange** `#F97316` — Carbs macro ring, scan ingredient callout pins and streak flame badge
- **Sky Hydration** `#0EA5E9` — Water intake tracker glasses and fat/hydration accents
- **Sage Hairline** `#E3EBE2` — Crisp 1px structural dividers
## Typography
- **Brand mark, calorie remaining display and section titles** — Plus Jakarta Sans (OFL), weights 600/700/800. Self-host the font files.
- **Meal descriptions, ingredient breakdowns and diary labels** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Calories (620 kcal), macro grams (42g P), portion multipliers (1.25×) and dates** — JetBrains Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: True full-bleed responsive PWA (zero fake phone frame!). Desktop 1440x900: 224px left navigation rail (Brand, 4 views, Quick Scan CTA, Illustrative Wellness note, [USER_NAME] card) + balanced 2-column Today & Live Scan Workspace (Left: Calorie & Macro SVG Rings + Today's Logged Meals with real overhead food photos + Water Tracker; Right: Interactive 'Scan a Meal' Preview Studio already displaying '[FEATURED_SCAN]' with glowing ingredient callout tags so the desktop first screen looks unmistakably like an AI Meal Scanner!). Mobile 390x844: crisp compact opaque 56px top bar, stacked Rings + Scan CTA + Meals + native 64px 4-tab bottom bar (Today, Scan, Diary, Trends) aligned on one baseline.
- Radius: Fresh tactile consumer curves: 20px on macro summary and scan viewfinder cards, 14px on meal photo cards, 999px on macro pills, scan pins and water droplets.
## Motion
- Animated SVG stroke-dashoffset macro rings and crisp horizontal laser scan sweep when selecting a new meal in Scan Studio (clean instant readout under prefers-reduced-motion).
- Smooth hydration glass fill animation and live portion-slider calorie recalculation.
## Imagery
6 cohesive overhead sunlit healthy meal photographs (salmon-avocado-bowl, matcha-chia-parfait, chicken-quinoa-salad, avocado-egg-toast, tofu-soba-noodles, berry-protein-smoothie)—each used cleanly on its dedicated meal card & interactive AI scanner specimen with overlaid SVG ingredient callout chips, plus a warm custom SVG portrait avatar for [USER_NAME].
## Tone
Fresh daylight organic clarity, encouraging wellness craft, zero clinical jargon.
---
— Prompt by VibeFather · https://vibefather.ai/t/ai-meal-calorie-scanner-app · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
VibeFather 上的 AI 膳食卡路里扫描 App 模板是免费的。其提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途,页面包含由 Kimi K3.1 Pro 在 Kimi Code 中构建的在线演示。商业或客户项目需要 Pro,Pro 还提供演示的源代码。
AI 膳食卡路里扫描 App 模板中的“扫描一餐”工作台预加载一道精选餐盘,让你从六份示例餐食中选择或输入自定义描述,然后运行一段简短的动态扫描扫掠。它会显示带卡路里数值的食材标注钉,以及一个 0.5x 到 2.0x 的分量倍数滑块,在你将餐食记录到今日日记之前实时重新计算卡路里和营养素。
先从模板变量开始:将 [BRAND] 设为你的应用名称,[USER_NAME] 设为侧栏和肖像卡中显示的成员,[DAILY_GOAL_KCAL] 设为你的每日目标,[FEATURED_SCAN] 设为应在扫描工作台中打开的餐盘。然后替换内容文件中的六张俯拍餐食照片及其食材数据,以匹配你自己的食物库。
是的。AI 膳食卡路里扫描 App 模板将记录的餐食、分量调整、收藏和饮水点击保存在 localStorage 中,因此访客返回时,卡路里和营养素圆环、饮水计数和 7 天摄入趋势图会反映他们输入的内容。没有后端或外部 API,所有数据都留在浏览器中。
AI 膳食卡路里扫描 App 模板的商业和客户用途需要 Pro。对于教练业务,将 [BRAND] 和 [DAILY_GOAL_KCAL] 设为该业务,围绕你自己的计划重写示例餐食和食材标注钉,并保持示意性健康说明可见,因为该模板不作任何医疗声明,是追踪器界面而非临床工具。
复制本页的提示词,或者运行 npx vibefather add ai-meal-calorie-scanner-app,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 Kimi K3.1 Pro 在 Kimi Code 里完成。每次都用公开的提示词原样生成,没有额外补充。
AI 膳食卡路里扫描 App是一个单页网站,用 React、Tailwind CSS 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
AI 膳食卡路里扫描 App的提示词和 DESIGN.md 按 CC BY-NC 4.0 授权,个人、非商业项目免费使用。客户项目和商业用途需要 VibeFather Pro,Pro 还包含在线演示的源码。
能。每个AI 膳食卡路里扫描 App的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。