modular-scale-typography

modular-scale-typography is a skill for Claude Code, Codex from dembrandt/dembrandt-skills. It costs 59 tokens per session (7,005 once invoked), scanned A, original, MIT.

A design skill for choosing font sizes with a modular scale, a sequence in which each size is calculated from a base size and a fixed ratio.

In plain words
What is it for?
Use it when defining typography tokens, selecting font sizes, or reviewing whether text sizes form a coherent visual hierarchy.
Why use it?
It replaces arbitrary font-size choices with a consistent relationship between headings, body text, captions, and labels. This makes the hierarchy easier to review and maintain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Recover an existing scale, don't reverse-engineer it by hand (dembrandt engine, optional).** If a brand already has type on the web, `get_typography` returns .

Good fit Use it when defining typography tokens, selecting font sizes, or reviewing whether text sizes form a coherent visual hierarchy.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dembrandt/dembrandt-skills
agentmods
npx agentmods add skills/dembrandt/dembrandt-skills/modular-scale-typography

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for modular-scale-typography

README.md
[![agentmods](https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/modular-scale-typography/github.svg)](https://agentmods.dev/skills/dembrandt/dembrandt-skills/modular-scale-typography)
Your own site
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/modular-scale-typography"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/modular-scale-typography/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modular-scale-typography

Your own site · 80×15
<a href="https://agentmods.dev/skills/dembrandt/dembrandt-skills/modular-scale-typography"><img src="https://agentmods.dev/badge/skills/dembrandt/dembrandt-skills/modular-scale-typography.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,005 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 20 Apr 2026
  • Snyk pass 20 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.07005
Opus 5 $0.00030 $0.03503
Sonnet 5 $0.00012 $0.01401
Haiku 4.5 $0.00006 $0.00700

Measured 5d ago against content hash b6c5c67dfced, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

modular-scale-typography scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/modular-scale-typography/SKILL.md · 452 lines

How it starts

The opening of the file, as written. The whole thing — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modular Scale Typography

Typography feels cohesive when all font sizes are related to each other through a single mathematical ratio. Without a scale, sizes get picked arbitrarily and the result feels visually noisy — headings that don't contrast enough, body text too close in size to captions, labels that blend into content.

What Is a Modular Scale

A modular scale starts from a base size and multiplies or divides by a ratio to generate every size in the system.

size(n) = base × ratio^n

Every size is thus a deliberate step away from the base — not a guess.

Choosing a Ratio

Ratio Name Feel Good for
1.067 Minor Second Very tight Dense data UIs, dashboards
1.125 Major Second Subtle Long-form reading, editorial
1.200 Minor Third Balanced Most UI applications
1.250 Major Third Clear hierarchy Marketing, landing pages
1.333 Perfect Fourth Strong contrast Display, hero sections
1.414 Augmented Fourth Dramatic Portfolios, branding
1.500 Perfect Fifth Very dramatic Use sparingly

Default recommendation: 1.25 (Major Third) — enough contrast between steps to feel intentional without being theatrical.

Generating a Scale

Recover an existing scale, don't reverse-engineer it by hand (dembrandt engine, optional). If a brand already has type on the web, get_typography returns the real font sizes, weights, and line-heights computed off the live DOM — infer the underlying ratio from those, then regularise it with the method below, instead of guessing which sizes were intended. See extract-design.

Starting from base = 16px, ratio 1.25:

Step Formula Value Rounded Role
-2 16 ÷ 1.25² 10.24px 10px Caption, label-xs
-1 16 ÷ 1.25 12.80px 13px Label, small
0 16 16px 16px Body (base)
+1 16 × 1.25 20px 20px Body-lg, lead
+2 16 × 1.25² 25px 25px H4
+3 16 × 1.25³ 31.25px 31px H3
+4 16 × 1.25⁴ 39.06px 39px H2
+5 16 × 1.25⁵ 48.83px 49px H1
+6 16 × 1.25⁶ 61.04px 61px Display

Read the full file on GitHub · 452 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +13 lines b6c5c67dfced
  2. 7d ago Changed · +97 lines e11d99eb9520
  3. 13d ago First seen · 342 lines · 59 tokens per session scan A 6b656a0cc674

Subscribe to this mod's changes

modular-scale-typography is a skill published in the GitHub repository dembrandt/dembrandt-skills (54 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 7,005 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

design-dna

Extract, define, and apply design DNA across three dimensions: design system (tokens), design style (qualitative feel), and visual effects (Canvas, WebGL, 3D, particles, shaders, scroll effects, etc.). Use this skill when: (1) a user wants to see the full 3-dimension design structure/schema, (2) a user provides…

zanwei/design-dna · 192 tokens

dbim-brand-identity

Use when applying the Government of India's Digital Brand Identity Manual (DBIM) v3 to a website, portal, form, mobile app or social media asset — colours, Noto Sans typography, State Emblem logo lockups, header/footer anatomy, imagery specs, content lifecycle and the compliance checklist. Triggers include "DBIM"…

Yashraj00700/indian-gov-ui-skills · 117 tokens

indian-gov-web-ui

A set of design and accessibility rules for Indian government websites, portals, and administrative panels, including required standards such as GIGW and WCAG.

Yashraj00700/indian-gov-ui-skills · 95 tokens

ux4g-design-system

Use when building or reviewing UI with UX4G — India's official government design system (ux4g.gov.in, cdn.ux4g.gov.in, ux4g-web-components). Covers the v3.0.18 token API, the 52 components, install paths for HTML/React/Angular/Flutter, and the interop hazards. Triggers include "UX4G", "ux4g-web-components"…

Yashraj00700/indian-gov-ui-skills · 147 tokens

gov-service-patterns

Use when designing or building a citizen-facing government service flow — sign-in/OTP/Aadhaar authentication, consent and declaration, multi-step application submission, application/grievance status tracking, fee payment, service search and slot booking, citizen or officer dashboards, notifications, or feedback and…

Yashraj00700/indian-gov-ui-skills · 115 tokens

ui-ux-laws

Priority-ordered rulebook of core UX/UI laws, cognitive-psychology principles, Nielsen's usability heuristics, and accessibility requirements that Claude must actively apply (not just cite) whenever it designs, builds, redesigns, reviews, or critiques any user interface — websites, web/mobile apps, dashboards, forms…

AmirGhl/ui-ux-laws · 203 tokens