Token导航 LogoToken导航TokenDH.com
前端设计external-servicegithub未标认证来源可访问许可证需确认审计通过

typography-expert版式专家

Agent Skill

typography-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

404

周安装

17

GitHub Stars

98

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typography-expert(版式专家)
来源仓库:https://github.com/curiositech/some_claude_skills
仓库路径:skills/typography-expert
安装命令:
npx skills add https://github.com/curiositech/some_claude_skills --skill typography-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/curiositech/some_claude_skills --skill typography-expert

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理。
  • 使用时需要明确具体需求和目标,区分不同类型的设计任务。
  • 安装前建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 注意该技能侧重视觉设计指导,不适合代码实现层面的具体工作。

SKILL.md

Typography Expert

Master typographer specializing in font pairing, typographic hierarchy, OpenType features, variable fonts, and performance-optimized web typography.

When to Use This Skill

Use for:

  • Font pairing recommendations for brand identity
  • Typographic hierarchy for design systems
  • Performance-optimized web font implementation
  • Variable font integration with CSS custom properties
  • Type scale calculations (modular, fluid, responsive)
  • Font loading strategies (FOUT/FOIT/FOFT prevention)
  • OpenType feature implementation (ligatures, small caps, numerals)
  • Accessibility compliance for typography (WCAG contrast, sizing)
  • Dark mode typography compensation
  • Multilingual typography support (RTL, CJK, diacritics)

Do NOT use for:

  • Logo design or wordmark creation → use design-system-creator
  • Icon font implementation → use web-design-expert
  • General CSS styling unrelated to type → not a typography issue
  • Image-based or rasterized typography → different domain
  • Brand strategy or naming → this is visual implementation only
  • Motion graphics with text → use native-app-designer

Core Expertise

Font Selection Psychology

Serif vs Sans-Serif Decision Tree:

IF formal/traditional/authoritative needed → Serif (Garamond, Minion, Crimson)
IF modern/clean/technical needed → Sans-Serif (Inter, Helvetica, Roboto)
IF humanist/friendly/approachable → Humanist Sans (Gill Sans, Fira Sans, Source Sans)
IF geometric/structured/tech-forward → Geometric Sans (Futura, Avenir, Poppins)
IF editorial/long-form reading → Transitional Serif (Georgia, Charter, Lora)

Pairing Rules (Expert Knowledge):

  1. Contrast, not conflict - Pair fonts with distinct personalities but compatible x-heights
  2. Same designer rule - Fonts from same designer/foundry often pair well (Baskerville + Franklin Gothic)
  3. Historical compatibility - Fonts from same era share design DNA (Didot + Bodoni: both Didone)
  4. Superfamily shortcut - Use superfamily (Alegreya + Alegreya Sans) for guaranteed harmony

Type Scale Systems

Modular Scale Ratios:

RatioNameUse Case
1.067Minor SecondDense UIs, small screens
1.125Major SecondGeneral web content
1.200Minor ThirdMost common, balanced hierarchy
1.250Major ThirdMarketing, headlines
1.333Perfect FourthBold statements, hero sections
1.414Augmented FourthEditorial, dramatic hierarchy
1.618Golden RatioClassical, use sparingly (too large for most UI)

Fluid Typography Formula (2024 Best Practice):

/* Base: 16px at 320px viewport, 20px at 1200px viewport */
font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);

/* Heading: 32px at 320px, 64px at 1200px */
font-size: clamp(2rem, 1rem + 3.6vw, 4rem);

Variable Fonts

Axis Control (Expert Knowledge):

AxisTagRangeUse Case
Weightwght100-900Adjust weight without loading multiple files
Widthwdth75-125Responsive text that adapts to container
Slantslnt-12-0Oblique without separate italic file
Optical Sizeopsz8-144Auto-adjust stroke contrast for size
GradeGRAD-200-150Adjust weight without reflowing (dark mode)

Critical: Dark Mode Compensation

/* Text appears lighter on dark backgrounds - compensate with grade or weight */
@media (prefers-color-scheme: dark) {
  body {
    /* If variable font supports grade: */
    font-variation-settings: "GRAD" 50;
    /* Or bump weight slightly: */
    font-weight: 450; /* Instead of 400 */
  }
}

Performance Optimization

Font Loading Priority:

  1. Critical CSS first - Inline @font-face for above-fold fonts
  2. Preload primary - <link rel="preload" as="font" crossorigin>
  3. font-display: swap - Show fallback immediately, swap when loaded
  4. Subset aggressively - Latin Extended covers most Western languages at ~30KB vs ~150KB full

Budget Guidelines:

Performance TierTotal Font BudgetFiles
Fast (Core Web Vitals)Under 100KB2-3 WOFF2
Balanced100-200KB4-5 WOFF2
Rich Typography200-400KB6-8 WOFF2

System Font Stack (Zero Budget):

font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
             "Segoe UI Emoji";

Common Anti-Patterns

Anti-Pattern: Too Many Typefaces

What it looks like: 4+ different font families on one page Why it's wrong: Creates visual chaos, destroys hierarchy, massive performance hit What to do instead: Maximum 2 families (heading + body), use weight/style variations

Anti-Pattern: Ignoring x-Height Matching

What it looks like: Body text and fallback system font have visibly different sizes at same px Why it's wrong: CLS (Cumulative Layout Shift) when web font loads What to do instead: Use size-adjust in @font-face to match fallback x-height

@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  size-adjust: 107%; /* Matches Arial x-height */
}

Anti-Pattern: Weight Jumps Too Large

What it looks like: Using 400 for body and 700 for headings (300-point jump) Why it's wrong: Creates harsh hierarchy, especially at large sizes What to do instead: Use closer weights: 400/600 or 350/500 for subtle hierarchy

Anti-Pattern: Line Height as Unitless Number Everywhere

What it looks like: line-height: 1.5 applied globally Why it's wrong: Headings need tighter line-height (1.1-1.2), body needs looser (1.5-1.7) What to do instead: Set line-height per type level

Anti-Pattern: Fixed Font Sizes

What it looks like: font-size: 16px hardcoded Why it's wrong: Breaks user preferences, accessibility issues, no responsive scaling What to do instead: Use rem units with clamp() for fluid sizing

Anti-Pattern: Loading Full Character Sets

What it looks like: Loading 800KB font file with Cyrillic, Greek, Vietnamese Why it's wrong: 90%+ of file unused for English-only sites What to do instead: Subset to Latin or Latin Extended (~30KB)

OpenType Features

Features Worth Enabling:

/* Proper numerals for tabular data */
font-feature-settings: "tnum" 1; /* Tabular numerals */

/* Proper fractions */
font-feature-settings: "frac" 1; /* 1/2 → ½ */

/* Small caps for abbreviations */
font-feature-settings: "smcp" 1, "c2sc" 1;

/* Stylistic alternates for brand */
font-feature-settings: "ss01" 1; /* Check font for available sets */

Modern CSS Alternative:

font-variant-numeric: tabular-nums;
font-variant-numeric: diagonal-fractions;
font-variant-caps: small-caps;

Vertical Rhythm & Baseline Grid

Expert Approach:

  1. Set base line-height (e.g., 1.5 × 16px = 24px)
  2. All spacing (margin, padding) as multiples of 24px
  3. Headings snap to baseline (line-height: 48px for h1 at 36px)
:root {
  --baseline: 1.5rem; /* 24px */
}

h1 {
  font-size: 2.25rem;
  line-height: calc(var(--baseline) * 2); /* 48px */
  margin-bottom: var(--baseline);
}

p {
  line-height: var(--baseline);
  margin-bottom: var(--baseline);
}

Responsive Typography Breakpoints

Decision Tree:

Mobile (< 640px):
  - Base: 16px
  - Scale: 1.125 (Major Second)
  - Tighter hierarchy

Tablet (640-1024px):
  - Base: 17px
  - Scale: 1.2 (Minor Third)
  - Standard hierarchy

Desktop (> 1024px):
  - Base: 18-20px
  - Scale: 1.25 (Major Third)
  - Expanded hierarchy

Large Display (> 1440px):
  - Consider max-width on prose (65-75ch)
  - Don't keep scaling indefinitely

Accessibility Requirements

WCAG 2.1 AA Compliance:

  • Minimum contrast: 4.5:1 for body text, 3:1 for large text (24px+ or 18.5px+ bold)
  • Resizing: Text must be resizable to 200% without loss of content
  • Line spacing: At least 1.5× font size
  • Paragraph spacing: At least 2× font size
  • Letter spacing: User must be able to override to 0.12× font size
  • Word spacing: User must be able to override to 0.16× font size

Integration with Other Skills

Works well with:

  • design-system-creator - Typography tokens for design systems
  • vibe-matcher - Font selection based on brand vibe
  • web-design-expert - Implement typography in layouts
  • vaporwave-glassomorphic-ui-designer - Retro-futuristic type treatments

Evolution Timeline

Pre-2015: Web-Safe Fonts Era

Limited to Arial, Georgia, Times New Roman. "Modern" meant using Helvetica.

2015-2019: Google Fonts Explosion

Everyone used Open Sans, Roboto, Montserrat. Performance secondary to variety.

2020-2022: Variable Fonts Adoption

Single file, multiple weights/widths. Inter became the new default.

2023-Present: Performance-First Typography

Core Web Vitals pressure. Subsetting, font-display, CLS prevention mandatory. System font stacks gaining popularity for zero-load-time.

Watch For

LLMs may suggest deprecated approaches:

  • @import for fonts (blocks rendering)
  • Non-variable font families with 8+ weights
  • Font Awesome for icons (use SVG sprites instead)

Quick Reference

Ideal Line Length: 45-75 characters (65ch is sweet spot)

Heading Sizes (Minor Third Scale):

  • h1: 2.986rem
  • h2: 2.488rem
  • h3: 2.074rem
  • h4: 1.728rem
  • h5: 1.44rem
  • h6: 1.2rem
  • body: 1rem

Safe Google Font Pairings:

  • Inter + Merriweather (Modern + Traditional)
  • Poppins + Lora (Friendly + Elegant)
  • Space Grotesk + Source Serif (Tech + Editorial)
  • DM Sans + DM Serif Display (Same designer harmony)

*Typography is invisible when it works, but unforgettable when it doesn't.*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.49%
按下载量换算47

Claude

29.21%
按下载量换算41

Cursor

19.52%
按下载量换算28

Gemini CLI

10.14%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills