StealThis .dev

Coach — Meal Log

An energetic dark-themed calorie and macro tracker where clients log foods into breakfast, lunch, dinner and snack sections. A glowing electric-lime progress bar tracks the running daily total against the goal, animated macro rings break down protein, carbs and fat, and every entry can be removed with instant recalculation. Add foods through a compact form with quick-pick chips, watch the ring pulse toward the target, and get a motivational toast when the plan is on point.

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

Code

The Coach Meal Log is a focused nutrition-tracking panel for fitness coaching apps. A bold uppercase header sits above a live daily summary: a big remaining-calorie readout, a glowing lime goal bar that fills as food is logged, and three macro pills for protein, carbs and fat. Clients pick a meal section, type a food name and calories, optionally set macros, and hit add — the totals recalculate instantly with a smooth count-up animation.

Each meal section (Breakfast, Lunch, Dinner, Snack) shows its own subtotal badge and a stack of entry rows with calorie and macro chips. Rows have hover and focus states and a remove button that pulls the item back out of the running total. Quick-pick chips seed common foods so logging feels fast, and the progress bar shifts to an orange warning glow when the goal is exceeded.

Everything is vanilla JS with no dependencies: state lives in a single array, the UI re-renders from it, and a small toast helper surfaces motivational feedback. The layout is fully responsive down to 360px, keyboard-operable, and uses accessible labels and live regions so screen readers hear the updated totals.