Recipe card

One recipe at a glance: the dish and its photo, time and servings, the ingredients and the numbered method, with the step being cooked highlighted.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Food and drink. Tags: Restaurants and cafes, Stores.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
pageSecondsinteger10minimum: 4; maximum: 60When the lists do not fit, the seconds each page stays up.

Dynamic properties

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 120The dish.
subtitlestring""maxLength: 80A byline: the kitchen, the cook, the course.
imagestring""maxLength: 200A project media reference for the dish's photo.
prepinteger0minimum: 0; maximum: 1440Preparation minutes.
cookinteger0minimum: 0; maximum: 1440Cooking minutes.
servesinteger0minimum: 0; maximum: 1000How many it serves.
tagsarray[]minItems: 0; maxItems: 6Short marks: Vegetarian, Gluten-free, Quick.
ingredientsarray[]minItems: 0; maxItems: 60
ingredients[].headingstring""maxLength: 40A section heading such as For the sauce; it replaces name.
ingredients[].amountstring""maxLength: 16The quantity: 2 tbsp, 400 g.
ingredients[].namestring""maxLength: 80The ingredient.
ingredients[].notestring""maxLength: 40Prepared how: chopped, divided.
stepsarray[]minItems: 0; maxItems: 40
stepinteger0minimum: 0; maximum: 40The step being cooked, counting from 1. Earlier steps dim and this one is highlighted. 0 highlights none.
tipstring""maxLength: 200A closing tip.
stepAtstring, nullnullISO 8601 instant the cook moved to step; Primetime plays the next-step moment from it. Send it with step.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type recipe --major 1 --file params.json --context-file context.md

Example data

{
  "title": "",
  "subtitle": "",
  "image": "",
  "prep": 0,
  "cook": 0,
  "serves": 0,
  "tags": [],
  "ingredients": [],
  "steps": [],
  "step": 0,
  "tip": "",
  "stepAt": null
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.