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
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
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 like this
Build an Animated Two-Option Comparison Infographic With Weighted Scores
A ready-to-paste prompt that produces a single HTML file comparing two options with animated split bars, adjustable weights, weighted totals and a winner badge.
Build a 100-Person Icon Array Demographic Infographic in One HTML File
You get a single HTML file that shows a fictional town as 100 SVG person icons, with tabs for commute, age and housing and an interactive legend that highlights each group.
Build a 12-Week Fitness Progress Tracker Infographic in a Single HTML File
Generates a one-page fitness report with bodyweight and lift line charts, personal-record badges, a streak calendar and an instant kg/lb toggle, all from built-in sample data.
Build a Before-and-After Statistics Infographic With Color-Coded Change Arrows
A single HTML infographic comparing two years across nine metrics, showing old and new values, absolute and percent change, and arrows colored by whether up is good.
Build a Budget Allocation Treemap Infographic in a Single HTML File
You get one HTML file that draws a squarified treemap of a city budget, hides labels on small blocks, and shows a details panel when you tap or click any block.
Build a Classroom Grade Distribution Infographic with Histogram and Quartiles
A single HTML file that turns an inline array of class scores into a histogram with mean and median markers, a box plot, stat cards and a plain-language summary.