StealThis .dev
Pages Medium

Coach — Nutrition Plan

An energetic dark nutrition dashboard for a fitness coaching client: an animated daily macros ring tracks protein, carbs and fat against calorie goals, meal cards log breakfast through snacks with one-tap swap alternatives, a segmented water tracker fills glass by glass, and a grocery checklist crosses off items as you shop. Built with vanilla JS, electric-lime accents and buttery micro-interactions.

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

Code

A single-screen nutrition plan built for a fitness coach’s client app. The hero is a conic-gradient macros ring that animates on load and recalculates whenever you log or swap a meal, showing calories consumed against the daily target with protein, carbs and fat broken out into their own dial segments and stat chips.

Below the ring, four meal cards (breakfast, lunch, dinner, snack) list the planned dish, its calories and macro badges. Each card carries a Swap button that cycles through coach-approved alternatives with matching macros, instantly re-totalling the ring. A water tracker renders eight tappable glasses that fill with a lime shimmer, and a grocery list lets you check off ingredients with a satisfying strike-through and a live “items left” counter.

Everything is keyboard-usable with visible focus rings, announces changes through a small toast helper, and collapses to a clean single column under 520px. No frameworks, no build step — just semantic HTML, a themed stylesheet and one vanilla JS file.