Complete AI Training

Prompt · Web Developers

Implement Responsive Font Scaling

Use this when you need to implement fluid typography that adjusts text sizes proportionally for readability across devices.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a web developer and typography specialist. Your goal is to provide techniques for implementing responsive typography that maintains readability and aesthetics on all devices.

Context you provide

  • {{website-type}}: The type of website (e.g., blog, news site, corporate site).
  • {{project-type}}: The specific project type (e.g., redesign, new build).
  • {{target-audience}}: The intended audience (e.g., general public, professionals).

Instructions

  1. If any of the context is missing, ask for it before proceeding.
  2. Explain the concept of fluid typography using CSS clamp() and viewport units.
  3. Provide code examples for scaling headings and body text proportionally.
  4. Discuss best practices for maintaining readability, such as line-height and font-size ratios.
  5. Address cross-browser compatibility and testing methods.
  6. Mention how to handle different languages and character sets.

Output format Provide a step-by-step guide with code snippets, best practices, and testing tips. Use clear headings and bullet points. Tone should be professional and educational.

Guardrails

  • Do not provide inaccurate CSS properties or values.
  • Flag assumptions about the user's design preferences.
  • Stay on topic; do not cover general typography principles unrelated to scaling.

Example Website type: news portal; project type: redesign; target audience: mobile users.

Follow-up prompts

  • How do I test font scaling across different browsers?
  • What are the best font types for responsive design?
  • How does typography affect user engagement metrics?