Build a Responsive Pricing Comparison Infographic with Monthly/Yearly Toggle

A prompt that produces one self-contained HTML pricing page with three plans, a highlighted recommended tier, a monthly/yearly toggle that recalculates savings, swipeable cards on phones and a full comparison table.

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

The prompt

Prompt
Act as a senior product designer who writes clean, accessible front-end code. Build a pricing comparison infographic called "Fieldnote Pricing" for a fictional research-notes app, as one self-contained HTML file. Show three plans priced per seat per month: Starter ($9), Team ($24, the recommended tier) and Business ($49). Below them, add a bar chart of what yearly billing saves and a full feature comparison table.

Rules:
1. A Monthly/Yearly segmented toggle, also switchable with the M and Y keys, recalculates every price. Yearly billing is 20% off. Show it as the monthly equivalent, with the billed total and the dollar savings per seat on each card.
2. At 760px and wider, show the three cards side by side, with the recommended tier raised, dark and labeled. Below 760px, turn them into horizontally swipeable scroll-snap cards with dot buttons and arrow-key support, and center the recommended card on load.
3. Add a seat stepper (1-50) that updates the savings bars. For each plan, the bars compare 12 monthly payments with one yearly payment.
4. The table highlights the recommended column and uses check and dash symbols with screen-reader text. On phones it scrolls sideways with a sticky first column.
5. Palette: warm off-white, deep navy ink, a green accent, and gold for the recommended button. Use system fonts, a clear type scale and generous spacing.
6. Animate price changes with a short count-up, disabled under prefers-reduced-motion. No external resources, storage or forms.

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: Fieldnote Pricing, a three-tier plan comparison with live yearly savings.

Switch between Monthly and Yearly (or press M / Y) and watch each card's price count to its new value while the savings lines update. On a phone-width screen, swipe the cards or use the dots and arrow keys; the dark Team card starts centered. Use − / + to change team size and see the savings bars rescale. Click a plan button to select it, then scroll down to the comparison table.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Fixed prices and a fixed 20% discount give the model exact numbers, so the savings math comes out the same every time.
  • Naming the 760px breakpoint and scroll-snap pins down the phone card behavior instead of leaving the layout to chance.
  • Spelling out keyboard, screen-reader and reduced-motion rules makes accessibility part of the first build, not a later fix.

Paste into ChatGPT, Claude or Gemini. Save the reply's code as pricing.html and open it in any browser, or view it in the chat's preview or canvas. Narrow the window to see the swipeable phone layout.

Common edits

  • Change the product name, plan prices and feature rows to match your own SaaS. Set the discount by editing the 20% figure.
  • Swap the navy/green/gold palette for your brand colors, or make a different tier the recommended one.

Prompt details

By
Prompts-GPT editors
Published

Did this prompt work?

Keep exploring

More in Infographics