Build an Editable Monthly Budget Snapshot One-Pager in a Single HTML File

A one-page personal budget snapshot with editable income and spending figures that instantly update a donut chart, savings-rate meter and over-budget flags, and that prints cleanly.

You getone complete HTML file in a single code block, then 3 short ideas to extend it.

The prompt

Prompt
Act as a senior front-end developer and information designer. Build "Month at a Glance", a personal monthly budget snapshot one-pager for a fictional person, Maya Ortiz, for October. Show two income lines and eight spending categories: housing, groceries, transport, utilities, dining out, health, subscriptions, and fun and travel. Give each category a budget and an actual amount, using realistic sample figures. Every number is editable inline through contenteditable spans, with no form elements, and everything recalculates as you type.
Rules:
- Put a top row of KPI cards: income, spent, saved, savings rate and the number of over-budget categories.
- Add an SVG donut that shows each category's share of spending, with the total in the center and a legend with percentages.
- Add a horizontal savings-rate meter with an editable goal marker. Color it green at or above the goal, amber below it, and red at zero or less. Add a one-line plain-English verdict.
- In the category table, flag each row as On track, Near limit (90% or more) or Over by a dollar amount. Tint over-budget rows.
- Enter or Escape commits an edit, letters are ignored, and values reformat with thousands separators on blur. Include Reset sample and Print buttons.
- Use a warm off-white background, white cards, one blue accent, system fonts and tabular numerals. Make it responsive from 360 to 1280px. Turn off transitions under prefers-reduced-motion. Add a print stylesheet that hides the buttons and keeps cards unbroken.
Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Month at a Glance, an editable personal budget one-pager.

Click or tap any underlined number to edit it: salary, a category budget, an amount spent, or the savings goal. The KPI cards, donut chart, savings-rate meter and status badges update as you type.

  • Raise Fun and travel spending to watch its badge and the savings verdict change.
  • Lower the goal to 25% and the meter turns green.
  • Press Enter to commit an edit.
  • Use Print one-pager for a clean paper copy.
Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Contenteditable spans give inline editing without form elements, and values reformat only on blur so the caret never jumps while typing.
  • A single recalculation function drives the KPIs, donut, meter and badges, so every view always agrees.
  • Stroke-dasharray donut segments and a print stylesheet keep it dependency-free and paper-ready.

Paste the prompt into ChatGPT, Claude or Gemini. Save the returned code as budget.html and open it in any browser, or view it in the chat's preview or canvas. Then replace the sample figures with your own.

Common edits

  • Swap the categories, colors and sample figures for your own household, or add a third income line.
  • Change the meter scale, the Near-limit threshold (90%) or the currency symbol to suit your budget.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics