Create a font pairing tool that helps designers find the perfect heading and body font combinations. Browse Google Fonts with live preview, adjust size, weight, and letter spacing, explore curated pair suggestions, and export ready-to-use CSS with @import statements. Features a popular pairs gallery for quick inspiration.
Build Prompt
Copy this prompt into Claude Code
Build a single-page font pairing tool as a static HTML/CSS/JS site. Use a dark theme with background #0f0f17, card surfaces #12121a, and accent color #ec4899 (pink). The layout should have a control panel on the left (300px sidebar on desktop) and a live preview area on the right.
The control panel has two sections: "Heading Font" and "Body Font." Each section contains: a searchable dropdown of 80+ popular Google Fonts (load fonts dynamically by injecting link tags into the document head when selected — use the Google Fonts CSS API: https://fonts.googleapis.com/css2?family=Font+Name:wght@400;700&display=swap). Include at least these fonts: Inter, Roboto, Open Sans, Lato, Montserrat, Poppins, Raleway, Nunito, Playfair Display, Merriweather, Source Serif Pro, Lora, PT Serif, Oswald, Bebas Neue, Anton, Archivo Black, Work Sans, DM Sans, Space Grotesk, Sora, Outfit, Plus Jakarta Sans, Figtree, Geist, IBM Plex Sans, IBM Plex Serif, IBM Plex Mono, Fira Sans, Source Sans Pro, Noto Sans, Noto Serif, Crimson Text, Libre Baskerville, EB Garamond, Cormorant Garamond, Bitter, Cabin, Karla, Rubik, Manrope, Lexend, Quicksand, Comfortaa, Josefin Sans, Josefin Slab, Archivo, Barlow, Barlow Condensed, Exo 2, Mulish, Urbanist, Red Hat Display, Spectral, Vollkorn, Alegreya, Alegreya Sans, Zilla Slab, Cardo, Old Standard TT, Unna, Fraunces, Instrument Serif, Corben, Abril Fatface, Lobster, Pacifico, Dancing Script, Caveat, Permanent Marker, Satisfy, Great Vibes, Sacramento, Righteous, Bungee, Press Start 2P, Silkscreen, VT323.
Below each font dropdown, add controls: font size slider (heading: 24-72px, default 36px; body: 12-24px, default 16px), font weight dropdown (100-900 in increments of 100, only showing weights available for the selected font — for simplicity default to 400 and 700 options), letter spacing slider (-0.05em to 0.15em), and line height slider (1.0 to 2.0, default 1.2 for headings, 1.6 for body).
Below the controls, add an editable text area where users can type custom sample text (default: a meaningful paragraph about design, not Lorem Ipsum). This text updates the preview in real time.
The preview area on the right shows a mock content layout: a large heading using the heading font and settings, followed by a subheading (using heading font at smaller size), then 2-3 paragraphs using the body font. Include a blockquote styled with the heading font italic, and a bullet list using the body font. The preview should feel like reading a real blog post or landing page. Add a toggle to switch the preview background between dark (#0f0f17) and light (#ffffff with dark text) modes so users can see how fonts look in both contexts.
Below the font controls, add a "Popular Pairs" gallery section. Include 15 curated font pairings, each shown as a small card with the heading font name, body font name, a mini preview (heading text + body text at small size), and a category label (e.g., "Modern," "Classic," "Editorial," "Playful," "Technical"). The pairs should include well-known combinations like: Playfair Display + Source Sans Pro, Montserrat + Merriweather, Oswald + Lato, Raleway + Roboto, Space Grotesk + Inter, Fraunces + DM Sans, Bebas Neue + Open Sans, Cormorant Garamond + Fira Sans, Archivo Black + Work Sans, Lora + Poppins, Abril Fatface + Nunito, Sora + IBM Plex Serif, Plus Jakarta Sans + Spectral, Outfit + Libre Baskerville, Lexend + Crimson Text. Clicking a pair card loads both fonts into the selector and updates the preview instantly.
Add a "Copy CSS" button at the bottom of the control panel that generates and copies to clipboard: the @import URL for both fonts, the CSS rules for heading and body with all current settings (font-family, font-size, font-weight, letter-spacing, line-height). Also add a "Copy HTML Link" button that copies the link tag version instead of @import.
Save the last-used font pair and settings in localStorage. Make it responsive: on mobile (under 768px), the sidebar becomes a collapsible top panel, and the preview takes full width below it. The popular pairs gallery becomes a horizontally scrollable strip.
Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].
Make It Yours
Type Scale Calculator
Add a type scale tool that generates a complete size hierarchy (h1-h6, body, small, caption) based on a base size and scale ratio (1.25, 1.333, 1.5).
Font Classification Filter
Add filter buttons (Serif, Sans-Serif, Mono, Display, Handwriting) to narrow the font dropdown by category for faster browsing.
A/B Comparison Mode
Show two font pairings side by side in a split view so designers can compare options before committing to a choice.
Variable Font Controls
For variable fonts like Inter and Roboto Flex, expose continuous weight and width sliders using CSS font-variation-settings.
SEO Tips
Target "font pairing tool" and "Google Fonts pairing" — these have 15K+ monthly searches from designers looking for typography inspiration.
Create dedicated pages for popular pair combinations like "Playfair Display + Source Sans Pro pairing" to capture specific font-pair searches.
Add FAQ schema answering "What fonts go well together?" and "How to choose heading and body fonts" for featured snippet potential.
Write a guide "Font Pairing Rules: A Designer's Complete Guide" with examples from your curated pairs, driving organic backlinks.
Include OpenGraph images that show the current font pair visually — shareable previews drive social media traffic from design communities.
Monetization Ideas
Offer a premium collection ($6.99) of 100+ curated font pairings organized by industry (SaaS, editorial, luxury, ecommerce, portfolio) with full CSS.
Create a Figma plugin ($9.99 one-time) that syncs font pairings directly into Figma projects with one-click text style application.
Add a "Custom Pairing Report" ($2.99) that generates a PDF typography guide for a project with the chosen fonts, scale, and usage guidelines.
Affiliate link to premium font marketplaces (Creative Market, MyFonts) with "Looking for premium alternatives?" suggestions below the Google Fonts list.
Offer a brand typography kit ($14.99) that generates a complete brand font system with usage rules, responsive sizes, and code snippets.