Best for
- Choosing heading/body fonts for a new product or rebrand.
- Building or overhauling a typographic scale (sizes, line-height, weights).
- Any request to "set the typography" or "pick fonts" for a design system.
event4u-app/agent-config/src/skills/typography-system/SKILL.md
Derive a type system from a style constraint — font pairings, scale/line-height/weights, DTCG tokens via design-tokens. Use to choose fonts or build a typographic scale.
Decision brief
Turn a style constraint into a full typographic system: pick a verified font pairing, derive a modular scale, and emit DTCG $type: "typography" tokens through the design-tokens toolchain.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/typography-system"Inspect the Agent Skill "typography-system" from https://github.com/event4u-app/agent-config/blob/6a5670b7881a676c0da90d2afb950298087c4ccb/src/skills/typography-system/SKILL.md at commit 6a5670b7881a676c0da90d2afb950298087c4ccb. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Take a style/idiom constraint from the design-intelligence idiom corpus — a mood keyword (e.g. elegant, modern, playful) or a named idiom that carries typographic intent. 2. Query font-pairings-reference.csv (Reference layer) — filter by the Mood/Style Keywords column; surfac…
When a brand archetype is known (a confirmed brand-strategy / brand-identity constraint set, or a consumer brand profile), filter the pairing by the archetype before the mood match — the brand constrains the style, not the other way around.
Choosing heading/body fonts for a new product or rebrand.
The delivery policy is owned by design-fidelity-mechanics § Asset & imagery discipline (ADR-205); this skill is a consumer and emits the route, never a competing policy. A font CDN link transmits the visitor's IP to that third party on every page view — a German court (LG Münche…
1. Chosen pairing + rationale — heading font, body font, the CSV row's Best For field, and the one-line mood match that drove the selection. 2. DTCG type-token block — the typography section ready to paste into tokens.json (DTCG $type: "typography", $value with fontFamily, fontS…
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 9 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Turn a style constraint into a full typographic system: pick a verified font
pairing, derive a modular scale, and emit DTCG $type: "typography" tokens
through the design-tokens toolchain.
A two-stage Method: stage 1 (below) is the style path — a mood/idiom constraint drives the pairing. Stage 2 is the brand-aware path — when a brand layer exists, the brand archetype filters the pairing first. The skill degrades gracefully: with no brand layer, only stage 1 runs.
design-tokens for a new project — typography tokens belong
in tokens.json alongside color tokens, not hand-coded in CSS.design-intelligence idiom
corpus — a mood keyword (e.g. elegant, modern, playful) or a
named idiom that carries typographic intent.font-pairings-reference.csv (Reference layer) — filter by the
Mood/Style Keywords column; surface the top 1–2 matching pairings with
their Heading Font, Body Font, Best For, and Google Fonts URL.xs / sm / base / lg / xl / 2xl / 3xl; set line-height (1.5 for body, 1.2 for display);
assign weights (400 body, 600–700 heading).$type: "typography" tokens through design-tokens
(scripts/tokens.ts) — add a typography section to tokens.json with
$type: "typography" and $value objects carrying fontFamily,
fontSize, fontWeight, lineHeight.Google Fonts URL column in the CSV — this is an availability check,
"does this font exist?", and is deliberately separate from the delivery
decision, "how does it get onto the page?" — see § Delivery below; conflating
the two is what produced a single hard-wired hotlink); run
./scripts-run <skills-root>/design-tokens/scripts/tokens validate --dir src/
to confirm no hardcoded font-size or font-family values remain outside the
token file; exit code 0 is the evidence.When a brand archetype is known (a confirmed brand-strategy /
brand-identity constraint set, or a consumer brand profile), filter the
pairing by the archetype before the mood match — the brand constrains the
style, not the other way around.
Resolve the archetype from the active brand layer (e.g. Ruler,
Lover, Magician).
Query the brand typography Grounding domain for the archetype →
pairing-filter (Heading Class, Body Class, Mood, plus confidence +
evidence gap):
./scripts-run <skills-root>/corpus-grounding/scripts/ground search \
--manifest <skills-root>/brand/data/manifest.json \
"<archetype + sector>" --domain typography --json
Filter font-pairings-reference.csv by that pairing-filter — keep only
pairings whose Heading/Body classes satisfy the archetype filter (e.g. a
Ruler / law-firm brief keeps serif-containing pairings; a Magician /
SaaS brief keeps geometric-sans pairings). Then apply the stage-1 mood match
within the filtered set.
Surface the corpus confidence + evidence_gap for the archetype row,
then emit DTCG type tokens exactly as stage 1 (steps 4–5 above).
Trigger-eval invariant: a "law-firm redesign" brief MUST route to a
serif-containing pairing (the archetype filter is Ruler → serif). This is
the recorded brand-aware regression test (recorded in Phase D).
Consumer brand tokens outrank the corpus filter
(brand-source-of-truth) — if the
brand already registers fonts, use them and skip the filter.
The delivery policy is owned by
design-fidelity-mechanics
§ Asset & imagery discipline (ADR-205);
this skill is a consumer and emits the route, never a competing policy. A font
CDN link transmits the visitor's IP to that third party on every page view —
a German court (LG München I) ruled on exactly that for hotlinked Google Fonts.
Default: self-hosted. Take the row's Self-Hosted Route column and resolve
it against the detected target stack:
| Detected target | Route to emit | Where that answer comes from |
|---|---|---|
| Next.js | next/font/google (self-hosts at build) or next/font/local | data/stacks/nextjs.csv rows 22–24 — already prescribes this and lists the CDN <link> in its Don't column |
| Any bundler stack (Vite / webpack — React, Vue, Svelte, Nuxt, Astro) | the font's @fontsource/* package + a CSS import of the package | the package registry; verify it exists before suggesting it (supply-chain-intake) |
| Server-rendered asset pipeline (Laravel/Vite, Rails, Django) | copy the woff2 into the project's asset directory, serve it, declare @font-face | the project's own pipeline (design-fidelity-mechanics § owned-asset path) |
| No build step / plain HTML | @font-face over a locally-served woff2, plus <link rel="preload" as="font"> | data/stacks/astro.csv row 23 (preload of a local woff2) |
| Stack unknown | the plain @font-face floor, and say the route is unresolved — never fall back to the hotlink to avoid the question | — |
Hotlink: opt-in only. Emit the row's CSS Import value only when the
consumer explicitly asked for the CDN route, and state in the same breath that
it transmits the visitor's IP to the third party. Never pick it because it is
the shorter line.
Best For field, and the one-line mood match that drove the selection.typography section ready to paste into
tokens.json (DTCG $type: "typography", $value with fontFamily,
fontSize, fontWeight, lineHeight per level).Self-Hosted Route column), and the Tailwind
fontFamily config snippet from Tailwind Config. The row's
CSS Import hotlink appears here only under an explicit consumer opt-in,
with its IP-transmission note.font-pairings-reference.csv is Reference data on a freshness contract — never
substitute a live Google Fonts API call. If a font was retired or renamed, the
@import URL 404s at build time and the browser silently falls back to the
system font, shipping broken visual design with no obvious error. This caveat
still applies verbatim to the opt-in hotlink route: verify the URL resolves
(Step 5) before emitting the import line; if it 404s, surface the error and ask
the user to pick an alternative pairing from the CSV.next/font, @fontsource/*) resolution moves to
install time, where a wrong name fails loudly instead of 404-ing at build.
What remains is a family-name mismatch: the emitted CSS asks for
font-family: 'Inter' while the installed package provides a differently-named
family (Inter Tight), which renders the system font at runtime with no error
at all — the same silence, one layer later. Assert the family name in the
emitted CSS matches the one the installed package declares; the row's
Google Fonts URL stays useful as the reference spelling to compare against.font-size: 18px
inline) — every size belongs in tokens.json under the typography layer.design-tokens and write raw CSS custom properties for fonts
— tokens.json is the single source; hand-crafted --font-* vars drift.@import / <link> as the default deliverable — the
self-hosted route is the default and the hotlink is an explicit opt-in
(§ Delivery). Reaching for the CDN line because the stack was not detected is
the exact substitution this skill used to hard-wire.font-pairings-reference.csv as decision logic — it is
Reference data; the agent picks based on the style constraint, not by
iterating the CSV as a rules engine.design-canon.md — named-systems + typography-craft (foundry/theory) grounding index; pull to escape the AI-default fonts.design-tokens — toolchain that generates CSS
vars and the Tailwind snippet from tokens.json.design-intelligence — idiom corpus that
supplies the style constraint consumed in Step 1.iconography — companion visual-identity skill
(icon set selection, sizing scale).fe-design — broader frontend design skill that
consumes the token system produced here.brand — supplies the archetype → pairing-filter
Grounding (typography domain) consumed by stage 2.Typography is one of the highest-leverage design decisions and one of the most commonly mis-applied by AI agents (defaulting to Inter + arbitrary sizes). The skill carries 73 curated font pairings (heading + body + mono combinations with Google Fonts URLs and Tailwind config), 6 worked-through modular-scale examples across different use-cases (marketing, dashboard, docs, e-commerce, SaaS, editorial), and per-pairing line-height + weight guidance. Condensing to "use a 1.25 modular scale" loses the worked examples that teach agents the difference between a 14/17.5/21.8/27.2 rounded scale and an invented arbitrary scale. Without the worked examples, agents produce: 16, 20, 24, 28 (arbitrary) instead of a properly grounded typographic system.
Frequently asked questions
Turn a style constraint into a full typographic system: pick a verified font pairing, derive a modular scale, and emit DTCG $type: "typography" tokens through the design-tokens toolchain.
The source record exposes this install command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/typography-system". Inspect the command and pinned source before running it.
Alternatives
wshobson/agents
Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens —
lovstudio/skills
Use it for deployment and engineering tasks; the detail page covers purpose, installation, and practical steps.
rampstackco/claude-skills
Run QA testing on a page, feature, or full site at one of three depth tiers (smoke, standard, full). Use this skill whenever the user asks to QA a page or site, run a smoke test after a deploy, verify a page before launch, or run a regression sweep. Triggers on QA, QA sweep, smoke test, regression test, post-deploy check, pre-launch check, verify the deploy, test this page, does the page render, broken link, 404, image not loading. Also triggers proactively after a deploy or a new page launch wh
terrylica/cc-skills
Create GitHub fine-grained personal access tokens from a declarative JSON spec by browser automation. Use when you need to mint, verify, or revoke a fine-grained PAT (release tokens, read-only auditors, CI status reporters, account-scoped tokens) — there is NO GitHub API for this, the web UI is the only path. Handles the no-expiration modal, repo picker, and permission grids that break naive automation.