Build a System Font Pairing Explorer With Real Layouts in One HTML File

A single offline HTML page that compares seven heading and body font pairings built from system font stacks, previewed in article, card and button layouts with a rationale for each.

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 and front-end developer. Build "Pairbook", a font pairing explorer that compares seven heading and body pairings made only from offline system font stacks, with no web fonts. Each pairing has a name, a category label (for example Transitional serif / Neo-grotesque sans), a full CSS font stack for heading and body, and a two-sentence rationale. Show the selected pair in three realistic layouts with real copy: a magazine article about a neighborhood bakery with kicker, headline, deck, byline, subhead and pull quote; an event card with tag, title, details, price and button; and a button row with primary, secondary and ghost buttons plus a status message.
Rules:
1. A left sidebar lists the pairings, each name drawn in its own heading stack. Click, tap, Arrow Up/Down or J/K switches pairs. Under 860px the sidebar becomes a horizontal scroller.
2. Show both stacks as CSS custom properties next to large Aa specimens. Use canvas text measurement to detect which font in each stack actually renders on this device.
3. Include a light/dark preview toggle and a base-size slider from 14 to 20px.
4. Palette: warm paper, near-black ink and one terracotta accent. Use a clear type scale, generous spacing and AA contrast.
5. Use only a short fade on switch, disabled under prefers-reduced-motion. No external resources, storage or alerts.
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: Pairbook, a system font pairing explorer.

Pick one of seven pairings from the sidebar, such as Editorial Classic or Workshop Slab. You can also press ↑/↓ or J/K to step through them. Each pair restyles a bakery article, a workshop card and a row of buttons. The panel above shows the rationale, the CSS stacks and which font your device actually renders. Try dark preview, then drag the size slider to 14px to see which body faces hold up at small sizes.

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

Tips and common edits

Why this works

  • Pairings use only system font stacks with several fallbacks, so every pair renders offline on Mac, Windows and Linux.
  • Real article, card and button copy shows how a pair behaves at headline, body and UI sizes, not only as specimens.
  • Canvas measurement reports which font in each stack renders, which turns a guess into a fact on each device.

Paste into ChatGPT, Claude or Gemini. Save the returned code as pairbook.html and open it in any browser, or run it in the chat's preview or canvas. Detected fonts vary by operating system, which is the point.

Common edits

  • Swap the bakery copy for your own brand's headlines and product names so the preview matches your real content.
  • Add or remove entries in the pairs list, or change the terracotta accent to your brand color in the CSS variables.

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

Keep exploring

More in Design