StealThis .dev

Cookbook — Ingredient list + check-off

A warm, editorial ingredient checklist for recipe pages. Items are grouped under sub-headings like for the rye crust, each row pairing a checkbox with quantity, unit, name and an optional prep note. Ticking an item strikes it through, updates a live X of Y gathered progress bar and per-group counts, while check-all and clear controls plus localStorage keep your mise en place exactly where you left it between visits.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Ingredient list + check-off

A print-friendly mise en place panel for any recipe page. Ingredients are organised into labelled groups (for the rye crust, for the saffron filling, to finish), and each line is a single accessible label wrapping a checkbox, a serif quantity, its unit, the ingredient name and an optional italic prep note. Tick anything and it strikes through with a soft sage highlight.

A live progress bar at the top reports X of Y gathered and fills from saffron to tomato as you work, while every group shows its own done/total tally. Check all gathers the whole list at once, Clear resets it, and an aria-live region announces each change for screen readers. Focus-visible rings, tabular numerals and a 720px single-column breakpoint keep it usable from phone to desktop, and @media print drops the controls for a clean shopping list.

State is persisted to localStorage keyed per recipe, so a half-gathered list survives a reload or a return trip from the pantry — no backend, no build step, just one HTML file, one stylesheet and a small vanilla-JS module.

Illustrative UI only — recipes & nutrition data are fictional, not dietary advice.