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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- If any of the context is missing, ask for it before proceeding.
- Explain the concept of fluid typography using CSS
clamp()and viewport units. - Provide code examples for scaling headings and body text proportionally.
- Discuss best practices for maintaining readability, such as line-height and font-size ratios.
- Address cross-browser compatibility and testing methods.
- 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?