type-scale-generator
БесплатноБез исполняемых скриптовНе проверенUse when generating a full typographic scale (H1-H6, body, caption) from a base font size and a mathematical ratio or historical scale — each step gets a…
от monikazapisek1 038 установок в других каталогахОб этом скилле
Type Scale Generator
Purpose
Generate a mathematically coherent set of text styles from a base size and a ratio (or a historical fixed-step scale): sizes rounded to avoid subpixel rendering, each with a line-height and tracking taken from the same typographic rules the rest of this skillset uses. Output is design tokens for code, or variables and text styles in Figma.
When To Use
- Building a font-size system for a new design system or page.
- User names a musical/geometric ratio ("minor third", "1.25", "golden ratio") or asks for a scale without specifying one.
- In Figma: the user has selected a piece of text and wants a system built from it.
- Not for a single text style's line-height/tracking (
text-typesetting) or spacing between elements (vertical-spacing). - Not for restyling existing text. This skill produces a scale; it changes nothing that is already on the canvas.
Inputs
base-size: default16px. In Figma, taken from the selected text (Step 0).font-family-category: sans-serif / serif — needed for tracking, and for line-height when x-height isn't measured (Step 4). In Figma, read from the selection.x-height: ratio of x-height to font size, measured or read from the font (Step 4). Optional, but without it line-height is a fallback, not a computed value.scale-ratio: one of the named/numeric ratios below, orfibonacci/classic-garamond.steps: how many sizes up (headings) and down (caption/small) from base — default 4 up, 1 down (covers body, small, h4, h3, h2, h1).responsiveness: static or fluid (clamp()). Fluid applies to code output only.
Outputs
- A table of the scale, shown before anything is written: token, raw computed size, rounded size, line-height, tracking.
- For code: a named token map (CSS custom properties or Tailwind
fontSizeconfig, matching whichever convention the project already uses). - For Figma, each only on request: number variables for size and line-height, text styles bound to them, and a specimen frame.
Questions
This skill reads first, shows the proposed scale, and asks only when a missing value would change the result.
- Ask one question at a time and do not repeat information already present in the request or selection.
- If an answer is unavailable, state the assumption and continue with a labelled fallback.
- Always ask before writing variables, text styles, or a specimen to Figma.
- In Figma, ask separately for permission to measure x-height because the measurement creates, flattens, and removes a temporary text layer.
Workflow
Ask one question at a time and wait for the answer. If the user already gave a value in their request (a ratio, a base, a step count), take it and say which one you took — don't ask again.
Step 0 — Settle the base
Outside Figma: use the stated base-size, or 16px.
In Figma, resolve the selection first:
| Selection | Do this |
|---|---|
| Nothing selected | Ask the user to select some text. Stop. |
| No text node in the selection | Say what is selected instead and ask for text. Stop. |
| One text node | Use it. |
| Several text nodes | List them by name and size and ask which one is the body text. Stop. |
Read the font and size from the node, never assume a typeface (getStyledTextSegments(["fontName", "fontSize"])). If the node holds more than one style, use the first segment and say so. Confirm the base with the user before computing: state family, style and size, and offer to use a different size.
Step 1 — Pick the ratio
Musical/geometric ratios (size = base × ratio^step):
| Ratio | Name | Character |
|---|---|---|
1.067 |
Minor Second | Very compact — dense dashboards, data-heavy mobile UI. Pair with a small base (12–14px) so headings don't dominate. |
1.125 |
Major Second | Standard for SaaS apps and complex dashboards — subtle, clean hierarchy. |
1.200 |
Minor Third | Safe, universal default — works for both product UI and marketing pages. |
1.250 |
Major Third | Blogs and marketing pages where headings need to clearly separate from body. |
1.333 |
Perfect Fourth | Latin's recommended starting point for responsive web — very readable on desktop. |
1.414 |
Augmented Fourth | Bold, dynamic, poster-like character. |
1.500 |
Perfect Fifth | Aggressive — H1 becomes very large. Portfolio / product-launch pages. |
1.618 |
Golden Ratio | Bringhurst's classic proportion. Grows extremely fast at higher steps — usually needs a smaller ratio on mobile breakpoints. |
Non-linear / historical scales (fixed steps, not a single multiplier):
fibonacci:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...— map directly to px or rem (e.g. body 13/21px, H1 55/89px). Use when the layout grid itself is Fibonacci-proportioned, so type and grid share the same logic.classic-garamond:6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 21, 24, 36, 48, 60, 72— the historical printer's type-size series (pre-digital, renaissance-era steps). Use w
Установить type-scale-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл type-scale-generator?
Use when generating a full typographic scale (H1-H6, body, caption) from a base font size and a mathematical ratio or historical scale — each step gets a rounded size, a line-height and a tracking value. Outputs CSS custom properties or Tailwind config, or, with Figma access, variables and text styles built from the selected text.
Как установить скилл type-scale-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл type-scale-generator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic