Skip to content

Build Simmer: a recipe app

Simmer is a recipe app built entirely from fixed content: no database, no models, no operations. It shows how far pictures, a theme and a few layout blocks go on their own. Download the Simmer project (zip) to follow along or start from it; its README says how to make it your own.

The Cook screen: a featured recipe card, category badges and a grid of recipes.
Cook
A recipe: a big picture with its name, time and calories, then ingredients.
A recipe
Another recipe screen.
Another recipe
Groceries: a progress card and the list of things to buy.
Groceries

Finish the quick start first so you have a .ynch folder. You can type each file yourself, or give the steps to your coding agent.

Simmer is light, with a tomato red, an herb green and a serif display font. Name extra colors for the soft tints behind badges, and one gradient for buttons.

{
"colors": {
"background": "#FFFFFF",
"surface": "#F4F4F2",
"primary": "#E4572E",
"secondary": "#2F855A",
"text": "#16181D",
"muted": "#6B6F76",
"tomato-soft": "#FDE8E1",
"herb-soft": "#E2F1E8",
"butter": "#FACC15",
"ink": "#16181D"
},
"gradients": {"warm": {"colors": ["#F97316", "#E11D48"], "direction": "right"}},
"typography": {
"display": {
"fontFamily": "system",
"fontSize": 32,
"fontWeight": 700,
"lineHeight": 38,
"fontDesign": "serif"
},
"headline": {
"fontFamily": "system",
"fontSize": 23,
"fontWeight": 700,
"lineHeight": 29,
"fontDesign": "serif"
},
"overline": {
"fontFamily": "system",
"fontSize": 12,
"fontWeight": 600,
"lineHeight": 16,
"uppercase": true
}
}
}

Then name the looks you will repeat:

{
"tile": {"radius": "$radius.lg", "backgroundColor": "$color.surface", "gap": "$spacing.none"},
"tile-body": {"padding": "$spacing.md", "gap": "$spacing.xs"},
"hero": {
"radius": "$radius.xl",
"shadow": "large",
"padding": "$spacing.lg",
"gap": "$spacing.xs",
"backgroundColor": "$color.ink"
},
"on-photo-title": {"typography": "$typography.display", "color": "$color.on-accent"}
}

See Theme and colors.

Put one picture per recipe in .ynch/assets/: ramen.webp, salad.webp, pasta.webp, pancakes.webp, tacos.webp. PNG, JPEG or WebP, up to 4096 pixels a side. Simmer’s are illustrations at 960 by 720, about 20 KB each. Images are bundled with the app; they never come from a URL.

The top of the Cook screen is a Card: a picture, then badges, a title and a gradient button. The action on the Card makes the whole card open the recipe.

{
"id": "hero",
"type": "Card",
"props": {},
"style": {
"radius": "$radius.xl",
"backgroundColor": "$color.surface",
"shadow": "medium",
"gap": "$spacing.none"
},
"children": [
{
"id": "hero-photo",
"type": "Image",
"props": {
"asset": "assets/ramen.webp",
"alt": "A bowl of ramen with soft eggs, pork and spring onion.",
"fit": "cover",
"height": "lg"
}
},
{
"id": "hero-body",
"type": "Stack",
"props": {},
"style": {"padding": "$spacing.md", "gap": "$spacing.sm"},
"children": [
{
"id": "hero-tags",
"type": "Row",
"props": {},
"style": {"gap": "$spacing.sm"},
"children": [
{
"id": "hero-time",
"type": "Badge",
"props": {"text": "25 min", "icon": "clock"},
"style": {"color": "$color.ink", "backgroundColor": "$color.butter"}
},
{
"id": "hero-tag",
"type": "Badge",
"props": {"text": "Tonight's pick", "icon": "star"},
"style": {"color": "$color.primary", "backgroundColor": "$color.tomato-soft"}
}
]
},
{
"id": "hero-title",
"type": "Text",
"props": {"text": "Weeknight miso ramen"},
"preset": "headline"
},
{
"id": "hero-note",
"type": "Text",
"props": {
"text": "Soft eggs, crispy pork and a broth that tastes like it took all day.",
"maxLines": 2
},
"preset": "note"
},
{
"id": "hero-go",
"type": "Button",
"props": {"label": "Start cooking", "icon": "play"},
"style": {"gradient": "$gradient.warm", "radius": "$radius.full", "margin": "$spacing.xs"},
"action": {"type": "navigate", "routeId": "ramen", "parameters": {}}
}
]
}
],
"action": {"type": "navigate", "routeId": "ramen", "parameters": {}}
}

A Row of Badges, each with an icon and its own pair of colors:

{
"id": "filters",
"type": "Row",
"props": {},
"style": {"gap": "$spacing.sm"},
"children": [
{
"id": "filter-quick",
"type": "Badge",
"props": {"text": "Quick", "icon": "bolt"},
"style": {"color": "$color.amber", "backgroundColor": "$color.butter-soft"}
},
{
"id": "filter-veg",
"type": "Badge",
"props": {"text": "Vegetarian", "icon": "heart"},
"style": {"color": "$color.secondary", "backgroundColor": "$color.herb-soft"}
},
{
"id": "filter-comfort",
"type": "Badge",
"props": {"text": "Comfort", "icon": "flame"},
"style": {"color": "$color.primary", "backgroundColor": "$color.tomato-soft"}
},
{
"id": "filter-brunch",
"type": "Badge",
"props": {"text": "Brunch", "icon": "sun"},
"style": {"color": "$color.plum", "backgroundColor": "$color.plum-soft"}
}
]
}

A two-column Grid of Cards. Each card is a picture with height: "sm", a name limited to two lines, and the time. Each one opens its own recipe screen.

{
"id": "popular-grid",
"type": "Grid",
"props": {"columns": 2},
"style": {"gap": "$spacing.md"},
"children": [
{
"id": "card-salad",
"type": "Card",
"props": {},
"preset": "tile",
"children": [
{
"id": "card-salad-photo",
"type": "Image",
"props": {
"asset": "assets/salad.webp",
"alt": "A green salad with tomatoes, cucumber and feta.",
"fit": "cover",
"height": "sm"
}
},
{
"id": "card-salad-body",
"type": "Stack",
"props": {},
"preset": "tile-body",
"children": ["..."]
}
],
"action": {"type": "navigate", "routeId": "salad", "parameters": {}}
},
{
"id": "card-pasta",
"type": "Card",
"props": {},
"preset": "tile",
"children": [
{
"id": "card-pasta-photo",
"type": "Image",
"props": {
"asset": "assets/pasta.webp",
"alt": "Spaghetti with burst cherry tomatoes and basil.",
"fit": "cover",
"height": "sm"
}
},
{
"id": "card-pasta-body",
"type": "Stack",
"props": {},
"preset": "tile-body",
"children": ["..."]
}
],
"action": {"type": "navigate", "routeId": "pasta", "parameters": {}}
},
{
"id": "card-pancakes",
"type": "Card",
"props": {},
"preset": "tile",
"children": [
{
"id": "card-pancakes-photo",
"type": "Image",
"props": {
"asset": "assets/pancakes.webp",
"alt": "A stack of pancakes with blueberries and butter.",
"fit": "cover",
"height": "sm"
}
},
{
"id": "card-pancakes-body",
"type": "Stack",
"props": {},
"preset": "tile-body",
"children": ["..."]
}
],
"action": {"type": "navigate", "routeId": "pancakes", "parameters": {}}
},
{
"id": "card-tacos",
"type": "Card",
"props": {},
"preset": "tile",
"children": [
{
"id": "card-tacos-photo",
"type": "Image",
"props": {
"asset": "assets/tacos.webp",
"alt": "Three tacos with charred corn and a lime.",
"fit": "cover",
"height": "sm"
}
},
{
"id": "card-tacos-body",
"type": "Stack",
"props": {},
"preset": "tile-body",
"children": ["..."]
}
],
"action": {"type": "navigate", "routeId": "tacos", "parameters": {}}
}
]
}

One card in full:

{
"id": "card-salad",
"type": "Card",
"props": {},
"preset": "tile",
"children": [
{
"id": "card-salad-photo",
"type": "Image",
"props": {
"asset": "assets/salad.webp",
"alt": "A green salad with tomatoes, cucumber and feta.",
"fit": "cover",
"height": "sm"
}
},
{
"id": "card-salad-body",
"type": "Stack",
"props": {},
"preset": "tile-body",
"children": [
{
"id": "card-salad-name",
"type": "Text",
"props": {"text": "Market greens with feta", "maxLines": 2},
"preset": "label"
},
{
"id": "card-salad-time",
"type": "Row",
"props": {},
"preset": "tight",
"children": [
{
"id": "card-salad-clock",
"type": "Icon",
"props": {"name": "clock", "label": "Time", "size": "sm"},
"style": {"color": "$color.muted"}
},
{
"id": "card-salad-minutes",
"type": "Text",
"props": {"text": "10 min"},
"preset": "note"
}
]
}
]
}
],
"action": {"type": "navigate", "routeId": "salad", "parameters": {}}
}

Each recipe has its own screen. It opens with a Cover: the picture fills it, scrim: "bottom" darkens the lower half, and the name sits on top in white.

{
"id": "ramen-cover",
"type": "Cover",
"props": {
"height": "xl",
"asset": "assets/ramen.webp",
"alt": "A bowl of ramen with soft eggs, pork and spring onion.",
"scrim": "bottom",
"contentAlign": "bottom"
},
"preset": "hero",
"children": [
{
"id": "ramen-tag",
"type": "Badge",
"props": {"text": "Comfort"},
"style": {"color": "$color.ink", "backgroundColor": "$color.on-accent"}
},
{
"id": "ramen-name",
"type": "Text",
"props": {"text": "Weeknight miso ramen"},
"preset": "on-photo-title"
}
]
}

Three stat tiles in a three-column Grid, each an Icon on a circle tile, a value and a label:

{
"id": "ramen-stat-time",
"type": "Stack",
"props": {},
"preset": "stat",
"children": [
{
"id": "ramen-stat-time-icon",
"type": "Icon",
"props": {"name": "clock", "label": "Time", "size": "sm", "tile": "circle"},
"style": {"backgroundColor": "$color.tomato-soft", "color": "$color.primary"}
},
{
"id": "ramen-stat-time-value",
"type": "Text",
"props": {"text": "25 min"},
"preset": "label"
},
{
"id": "ramen-stat-time-label",
"type": "Text",
"props": {"text": "Time"},
"preset": "note"
}
]
}

Ingredients are Rows inside one Card, each with a check on a tinted circle:

{
"id": "ramen-ing-0",
"type": "Row",
"props": {},
"preset": "line",
"children": [
{
"id": "ramen-ing-0-mark",
"type": "Icon",
"props": {"name": "check", "label": "Ingredient", "size": "sm", "tile": "circle"},
"style": {"backgroundColor": "$color.herb-soft", "color": "$color.secondary"}
},
{
"id": "ramen-ing-0-text",
"type": "Text",
"props": {"text": "2 nests of ramen noodles"},
"preset": "body",
"style": {"flex": 1}
}
]
}

Method steps are Cards with an overline label. Steps are numbered because they are a real sequence.

{
"id": "ramen-step-0",
"type": "Card",
"props": {},
"preset": "panel",
"style": {"gap": "$spacing.xs"},
"children": [
{
"id": "ramen-step-0-n",
"type": "Text",
"props": {"text": "Step 1"},
"preset": "eyebrow"
},
{
"id": "ramen-step-0-text",
"type": "Text",
"props": {"text": "Crisp the pork belly in a hot pan, 6 minutes a side."},
"preset": "body"
}
]
}

The grocery screen opens with a gradient Card holding a ProgressBar:

{
"id": "g-progress",
"type": "Card",
"props": {},
"style": {
"gradient": "$gradient.warm",
"radius": "$radius.xl",
"padding": "$spacing.lg",
"gap": "$spacing.md"
},
"children": [
{
"id": "g-progress-line",
"type": "Row",
"props": {},
"preset": "line",
"children": [
{
"id": "g-progress-title",
"type": "Text",
"props": {"text": "6 of 11 picked up"},
"preset": "label",
"style": {"color": "$color.on-accent", "flex": 1}
},
{
"id": "g-cart",
"type": "Icon",
"props": {"name": "cart", "label": "Cart", "size": "md"},
"style": {"color": "$color.on-accent"}
}
]
},
{
"id": "g-bar",
"type": "ProgressBar",
"props": {"value": 55, "label": "Picked up", "size": "md"},
"style": {"color": "$color.on-accent", "backgroundColor": "$color.peach"}
},
{
"id": "g-progress-note",
"type": "Text",
"props": {"text": "Four recipes planned. Basil and limes are the last fresh things to get."},
"preset": "note",
"style": {"color": "$color.on-accent"}
}
]
}

Two tabs, Cook and Groceries, in a floating bar:

{
"items": [
{"routeId": "cook", "label": "Cook", "icon": "home"},
{"routeId": "groceries", "label": "Groceries", "icon": "cart"}
],
"style": "floating",
"material": "solid"
}

Every screen needs its own route. Recipe screens are routes too; they just are not tabs.

Terminal window
npx ynch check
npx ynch upload

Then approve the draft in Studio and open it on your iPhone. The whole app is about 150 KB.

Build a recipe app called Simmer in .ynch. Light theme: white background, tomato red primary, herb green secondary, serif display font. A Cook tab with a featured recipe card, category badges and a two-column grid of recipes with pictures from .ynch/assets. Each recipe opens its own screen with a picture Cover, time, servings and calories tiles, ingredients and method steps. A Groceries tab with a progress card and a checklist. Run npx ynch check until it passes.