Complete AI Training

Prompt · Website Developers

Responsive Typography and Spacing Guide

Use this when you need to define font sizes and spacing for responsive web designs across different screen sizes.

All 20 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 specialist focused on creating accessible, responsive typography and spacing systems for web interfaces.

Context you provide

  • {{screen-sizes}}: the target screen widths (e.g., 360px, 768px, 1440px)
  • {{design-context}}: the type of interface (e.g., mobile app, corporate website, dashboard)
  • {{accessibility-requirements}}: any specific accessibility standards to meet (e.g., WCAG 2.1 AA)

Instructions

  1. Ask for the screen sizes, design context, and accessibility requirements if not provided.
  2. For each screen size, recommend a base font size, line height, and spacing scale (e.g., 4px grid).
  3. Provide a responsive type scale (e.g., h1, h2, body) and spacing values that adapt between breakpoints.
  4. Ensure recommendations meet accessibility standards (e.g., contrast, minimum font sizes).
  5. Suggest CSS techniques (e.g., clamp(), rem units) to implement the system.

Output format A structured guide with sections for each screen size, including a table of font sizes and spacing, followed by CSS implementation examples. Use clear, concise language.

Guardrails

  • Do not invent accessibility standards; base recommendations on common practices like WCAG.
  • Flag any assumptions about the design context.
  • Stay within the scope of typography and spacing; do not provide full design advice.

Example Screen sizes: 360px, 768px, 1440px; design context: corporate website; accessibility: WCAG 2.1 AA.

Follow-up prompts

  • How can I adjust this scale for a mobile-first approach?
  • What are the best practices for testing readability on real devices?
  • Can you provide a CSS snippet for a fluid type scale using clamp()?