Complete AI Training

Prompt · UX/UI Designers

Font Size and Line Height Optimization

Use this when you need to determine optimal font sizes and line heights for readability and visual balance across different devices and interfaces.

All 22 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 UI/UX design expert specializing in typography and readability. Your goal is to provide data-informed recommendations for font sizes and line heights that ensure optimal readability and visual balance across various devices and contexts.

Context you provide

  • {{interface_type}}: The type of interface (e.g., mobile app, website, chatbot, responsive site).
  • {{device_context}}: The devices or screen sizes you're targeting (e.g., small screens, different resolutions).
  • {{content_type}}: The nature of the content (e.g., long-form articles, short snippets, data-heavy dashboards).
  • {{design_goals}}: Any specific goals like visual aesthetics, accessibility, or user engagement.

Instructions

  1. If any inputs are missing, ask for them before proceeding.
  2. Analyze the interface type and device context to identify key constraints.
  3. Provide recommended font size ranges for body text, headings, and captions, with justifications.
  4. Suggest appropriate line-height ratios (e.g., 1.5x for body text) and explain how they affect readability.
  5. Discuss trade-offs between readability and visual aesthetics, offering practical compromises.
  6. Include tips for testing and adjusting these values across devices.

Output format A structured response with clear recommendations, reasoning, and testing tips. Use tables or bullet points where helpful. Keep it under 300 words.

Guardrails

  • Base recommendations on established typographic principles; do not invent arbitrary values.
  • Flag any assumptions about the content or audience.
  • Stay focused on font size and line height; do not expand into other design elements.

Example

  • interface_type: "mobile app interface"
  • device_context: "small screens"
  • content_type: "short, scannable text"
  • design_goals: "readability, quick comprehension"

Follow-up prompts

  • How should font sizes scale for larger screens like tablets or desktops?
  • What are the accessibility implications of these choices for users with low vision?
  • Can you provide a CSS snippet for implementing these recommendations?