StealThis .dev

Wedding — Budget Tracker

An editorial blush-and-gold wedding budget tracker with category rows comparing estimated versus actual spend, an add-expense form, a live total-spent progress bar, and a gentle over-budget warning that softly alerts couples when a category or the grand total drifts past plan.

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

Code

A romantic, print-inspired budget tracker for couples planning their wedding. A header sets the total budget beside a live progress bar that fills toward the ceiling and blushes into a warm alert when spending overshoots. Beneath it, a table of category rows — venue, catering, florals, photography and more — lays each estimated figure against the actual amount recorded, with a per-row remaining balance and a small badge that flips to a gold warning when a category runs over.

The add-expense form lets you pick a category, name the line item and log an amount; the matching row’s actual total, remaining balance and the master progress bar all update instantly, with a toast confirming the entry. Summary tiles at the foot keep the estimated total, spent total and remaining balance in view at a glance.

Everything is vanilla HTML, CSS and JavaScript — no build step, no dependencies. State lives in a small in-memory model, currency is formatted for readability, and the layout collapses gracefully to a single airy column on narrow screens while keeping controls keyboard-friendly with visible focus rings.