Task prompt · Design
Build a type scale and spacing system in CSS
by Agent Yard TeamGet a consistent set of font sizes, line heights and spacing steps as CSS variables, with usage notes.
Use cases
- Get a consistent set of font sizes, line heights and spacing steps as CSS variables, with usage notes.
- Reuse it as often as you like: fill in the blanks (website or app; e.g. 16px; font name) with new details and copy again.
- With ChatGPT, Claude, Gemini and more, the AIs that support what this prompt needs.
Featured in: Best AI prompts for UX and app design.
How to use it
- Open chatgpt.com or claude.ai (or another AI listed here).
- Fill in the highlighted blanks ([WEBSITE OR APP], [E.G. 16PX], [FONT NAME]…) below, or edit them after pasting.
- Copy the prompt, paste it into the chat and send.
- Paste the CSS into your stylesheet and replace hard-coded sizes one section at a time.
Fill in the blanks (optional)
Prompt
Create a type scale and spacing system for my [WEBSITE OR APP]. Body text size: [E.G. 16PX] Heading font: [FONT NAME] Body font: [FONT NAME] Style: [CALM AND ROOMY / DENSE AND COMPACT] Give me: 1. A type scale from small print to the biggest heading, with size, line height and weight for each step, using a ratio you name and explain. 2. A spacing scale (for padding, margins and gaps) that matches it. 3. All of it as CSS custom properties, plus responsive sizes using clamp() for the headings. 4. A short guide: which step to use for page titles, section titles, cards, buttons and captions.
One email a week
The Weekly is presented byyour brandSponsored · openThe best new prompts and personas, nothing else.