Meal Builder

Food app · built by the Vibecode team

Meal Builder is a dark-mode kitchen studio for styling and saving home-cooked meals, starting with wood-fired Margherita pizza on an oak peel. Pick from eight realistic serving surfaces—wood peel, dark slate, cast-iron skillet, butcher paper, white marble, copper tray, trattoria check, and cedar plank—and switch between four framing styles. Toggle toppings like Hot Honey, Pepperoni, and Roasted Garlic to watch the live calorie badge update, edit your prep notes, and save creations into My Meals, a two-column cookbook grid with category filters.

  • iPhone · Swift
  • Built in 1 prompt
  • Free to remix
Meal Builder, food app built with Vibecode
Remix this template

Remix copies the working app into your account for free, exactly as we built it. It runs in Vibecode's cloud iOS simulator, in your browser.

The prompt that builds it

We built Meal Builder in one prompt. Paste it into a new app to build your own copy, or change it first.

Prompt · 1,083 words

Build a native SwiftUI iOS app named Meal Builder. Meal Builder is a dark-mode wood-fired pizza and comfort-food meal studio where home cooks style overhead photos of dishes on kitchen serving surfaces, customize toppings with live calorie updates, and save creations to a personal cookbook.

Do NOT put a fake handset frame inside the actual app; the simulator provides that. Use deterministic in-memory fixture data so every screen is rich and usable immediately with no backend, login, or permissions required. Keep every file you create inside /home/user/workspace (/tmp is denied).

Visual design (Warm Dark Kitchen Studio):
- Background canvas: #141210 (deep warm espresso-charcoal) everywhere.
- Elevated cards and input fields: #1E1B18 with a subtle 1 pt #2E2924 border.
- Unselected chips: #27221E fill, 1 pt #3A332C border, #B7ACA1 text.
- Selected accent: #E85D2A (wood-fired terracotta) for primary buttons and active borders; selected topping chips use #3C2217 fill, 1 pt #E85D2A border, #FFA07A text.
- Primary text: #F6EFE6 (warm cream); secondary labels: #9B8F84 (warm stone).
- Typography: system .serif Bold for screen titles ("Meal Builder", "My Meals") and hero meal titles; standard SF Pro for section labels (11.5 pt Semibold uppercase, tracking 0.8), chips, badges, and notes.

App structure (2 screens, launching straight into the Build a Meal composer):
1. Build a Meal screen (vertically scrollable):
- Top bar: left capsule button "My Meals" with count badge (switches to the My Meals cookbook); center serif title "Meal Builder"; right terracotta (#E85D2A) capsule button "Save" (saves the current meal to the top of My Meals with a soft spring and opens My Meals with a brief confirmation toast).
- Hero Meal Stage (#1E1B18 rounded 24 pt card, 256 pt height, 1 pt #2E2924 border, subtle radial warm glow behind the food):
  - Displays the selected serving surface (206 pt across) with the meal photo layered on top (164 pt across), masked to the selected Presentation frame, with a soft realistic drop shadow.
  - Top-left floating dark pill badge showing live prep time and calories (e.g. "20 min · 640 kcal"), updating live with numericText contentTransition as toppings are toggled.
  - Bottom-right 38 pt circular button (#2A2420 fill, #F6EFE6 "photo.on.rectangle.angled" glyph) that cycles through the 6 bundled overhead meal photos smoothly.
  - Switching serving surfaces swaps immediately with a crisp spring pop (scale 0.96 -> 1.0) and light haptic.
- "SERVING SURFACE" horizontal ScrollView with ScrollViewReader: 8 kitchen surface thumbnails (68 pt square inside 76 pt rounded-14 cards, concise label underneath in 11 pt Medium). Tapping a surface selects it, gives it a 2 pt #E85D2A border, and smoothly glides the carousel (`withAnimation(.easeOut(duration: 0.28))`) to center it:
  1. Wood Peel (warm oak pizza peel, round paddle with subtle grain)
  2. Dark Slate (matte charcoal stone slab with natural chiseled edge)
  3. Cast Iron (seasoned matte-black cast-iron skillet with small side handles)
  4. Butcher Paper (warm kraft butcher parchment sheet with soft creases)
  5. White Marble (Carrara white marble round serving board with subtle grey veins)
  6. Copper Tray (warm brushed copper round baking tray with rolled rim)
  7. Trattoria (terracotta-and-cream woven checkered bistro mat)
  8. Cedar Plank (toasted amber cedar board with light char grain)
- "PRESENTATION" horizontal row of 4 clean framing cards (64 pt tiles with minimalist outline icons and labels):
  1. Full Pie (circle, default selected)
  2. Artisan (rounded square, corner 24)
  3. Detroit (wide rounded rectangle)
  4. Arch (tall editorial arch)
- "MEAL NAME" section: full-width editable TextField (#1E1B18, corner 14, 1 pt #2E2924 border, #F6EFE6 serif Bold 18 pt) prefilled with "Margherita Pizza".
- "CATEGORY" horizontal capsule chips: "Pizza" (selected default), "Flatbread", "Bowl", "Main", "Side", "Dessert".
- "TOPPINGS & INGREDIENTS" wrapping interactive flow layout of capsule chips showing each ingredient name and live calorie impact:
  - Active by default (base crust 395 kcal + selected toppings = 640 kcal): "San Marzano Sauce" (+40), "Fresh Mozzarella" (+140), "Sweet Basil" (+5), "Olive Oil" (+60), "Sea Salt" (+0).
  - Unselected optional toppings ready to tap: "Hot Honey" (+55), "Pepperoni" (+130), "Roasted Garlic" (+25), "Chili Flakes" (+5).
  - Tapping any chip toggles it on/off with a spring animation and updates the Hero Stage calorie badge live. Include a "+ Add" chip that reveals a compact inline field to add a custom topping (+30 kcal default).
- "PREP NOTES" editable multi-line card (#1E1B18, corner 14) prefilled with:
  "1. Preheat baking steel to 500°F for 45 minutes.\n2. Stretch sourdough ball to 12 inches with an airy crust.\n3. Spoon crushed San Marzano tomatoes and add torn fior di latte.\n4. Bake 7–8 minutes until blistered, then finish with sweet basil and olive oil."

2. My Meals Cookbook screen:
- Top bar: serif Bold title "My Meals" with count subtitle ("6 saved meals"), and a terracotta "+ New" capsule button on the right that opens a fresh Build a Meal screen.
- Category filter pills: "All", "Pizza", "Flatbread", "Bowl", "Main", "Side".
- 2-column grid of dark editorial meal cards (#1E1B18, corner 20, 1 pt #2E2924 border): each card shows the meal photo plated on its chosen serving surface (128 pt), serif meal title, category badge, and prep time + calories ("20 min · 640 kcal").
- Tapping any card loads that meal into Build a Meal for editing.
- 6 rich fixture meals preloaded in memory:
  1. "Margherita Pizza" (Pizza, Wood Peel, Full Pie, 20 min, 640 kcal)
  2. "Pepperoni Hot Honey" (Pizza, Cast Iron, Full Pie, 22 min, 780 kcal)
  3. "Truffle Mushroom Flatbread" (Flatbread, Dark Slate, Detroit, 18 min, 590 kcal)
  4. "Pesto Burrata Bowl" (Bowl, White Marble, Full Pie, 15 min, 520 kcal)
  5. "Crispy Chicken Parm" (Main, Copper Tray, Artisan, 30 min, 740 kcal)
  6. "Garlic Herb Focaccia" (Side, Butcher Paper, Artisan, 25 min, 430 kcal)

Image generation:
- Generate all 8 serving surface images (top-down studio product photography, centered, filling the square, transparent background) and all 6 meal photos (appetizing top-down close-up food photography filling the full square frame edge-to-edge with no plate or table visible so any presentation frame masks cleanly, opaque square) using OpenAI `gpt-image-2.5-flare` via the project's proxied `OPENAI_API_KEY` at `https://api.openai.com/v1/images/generations` (run `env` to find the key; size 1024x1024; quality high; background transparent for surfaces). Save them as PNGs in `Assets.xcassets`. If any image call fails, include a crisp SwiftUI Canvas fallback so every surface and meal always renders cleanly.

Build in clean, modular Swift files under 250 lines each (Theme, Models, Fixtures, Components, Views). Run compile/build validation, fix all errors, and verify the running app in the simulator. Deliver the complete working implementation rather than a plan. Do not publish externally.
All templates