Token导航 LogoToken导航

Agent Skill · 前端设计

typography-system(排版系统)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

typography-system 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,517。

总安装 2,184周安装 91GitHub Stars 21下载 728核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sanky369/vibe-building-skills --skill typography-system

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

通过 npx skills add 命令从指定仓库安装,需结合原始 README 核验具体用法。当前无原始 SKILL.md 内容可参考,功能描述基于通用前端场景推断。

来源仓库内路径:skills/typography-system

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sanky369/vibe-building-skills --skill typograp…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

typography-system 怎么安装?

在终端执行 npx skills add https://github.com/sanky369/vibe-building-skills --skill typography-system。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

typography-system 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

typography-system 需要什么权限?

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

typography-system 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

typography-system 用的人多吗?

公开数据是累计安装 2,184 次,近一周安装 91 次,下载 728 次,GitHub 21 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

typography-system 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
typography-system

排版系统 · 本页

2,18421调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Typography System

Overview

Typography is the voice of your interface. It communicates hierarchy, establishes tone, and guides users through your content. Great typography is invisible—users don't notice it because it works so well.

This skill teaches you to think about typography systematically: choosing fonts with intention, creating scales that feel natural, establishing clear hierarchy, and ensuring readability and accessibility across all contexts.

Core Methodology: Type Scales and Hierarchy

Rather than choosing font sizes arbitrarily, use a modular scale—a mathematical progression of sizes that feels harmonious and intentional.

Modular Scales

A modular scale is a sequence of sizes derived from a base size and a ratio. Common ratios:

RatioNameUse CaseExample (16px base)
1.125Major SecondSubtle, minimal16, 18, 20, 23, 26, 29, 33, 37, 42, 47
1.25Major ThirdBalanced, harmonious16, 20, 25, 31, 39, 49, 61, 76, 95
1.5Perfect FifthBold, dramatic16, 24, 36, 54, 81, 122
1.618Golden RatioNatural, elegant16, 26, 42, 68, 110

Choosing a Scale:

  • 1.125 (Major Second) — For subtle, minimal designs
  • 1.25 (Major Third) — For balanced, harmonious designs (most common)
  • 1.5 (Perfect Fifth) — For bold, dramatic designs
  • 1.618 (Golden Ratio) — For natural, elegant designs

Example: Major Third Scale (1.25 ratio)

Base: 16px
Scale: 16, 20, 25, 31, 39, 49, 61, 76, 95

Practical sizes:
- Caption: 12px (smaller than base)
- Body: 16px (base)
- Body Large: 18px (between base and next)
- Heading 6: 20px
- Heading 5: 25px
- Heading 4: 31px
- Heading 3: 39px
- Heading 2: 49px
- Heading 1: 61px
- Display: 76px (for hero sections)

Implementing Type Scales in Tailwind

module.exports = {
  theme: {
    fontSize: {
      // Captions and small text
      'xs': ['12px', { lineHeight: '1.5' }],
      'sm': ['14px', { lineHeight: '1.5' }],

      // Body text
      'base': ['16px', { lineHeight: '1.6' }],
      'lg': ['18px', { lineHeight: '1.6' }],

      // Headings (modular scale 1.25)
      'h6': ['20px', { lineHeight: '1.3', fontWeight: '600' }],
      'h5': ['25px', { lineHeight: '1.3', fontWeight: '600' }],
      'h4': ['31px', { lineHeight: '1.2', fontWeight: '700' }],
      'h3': ['39px', { lineHeight: '1.2', fontWeight: '700' }],
      'h2': ['49px', { lineHeight: '1.1', fontWeight: '700' }],
      'h1': ['61px', { lineHeight: '1.1', fontWeight: '700' }],

      // Display (for hero sections)
      'display': ['76px', { lineHeight: '1', fontWeight: '800' }],
    },
  },
};

Font Selection

Choosing Fonts

Font Pairing Principles:

  1. Contrast — Pair fonts with different characteristics (serif + sans-serif, or geometric + humanist)
  2. Personality Match — Fonts should match your brand personality
  3. Readability — Prioritize readability over style
  4. Versatility — Fonts should work across sizes and weights

Common Font Pairings

Heading FontBody FontPersonalityUse Case
Playfair DisplayInterElegant, sophisticatedLuxury, editorial
MontserratOpen SansModern, geometricTech, SaaS
MerriweatherLatoWarm, friendlyPublishing, lifestyle
Space MonoSpace GroteskFuturistic, technicalDeveloper tools, tech
PoppinsPoppinsContemporary, friendlyStartups, consumer apps

Font Loading Strategy

Use system fonts first, then web fonts as fallback:

/* System fonts (fast, no network request) */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

/* Or use web fonts (Google Fonts, Typekit, etc.) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, sans-serif;
}

Font Loading Best Practices:

  • Use font-display: swap to avoid invisible text while fonts load
  • Preload critical fonts: <link rel="preload" as="font" href="font.woff2" crossorigin>
  • Limit to 2-3 font families and 3-4 weights
  • Use variable fonts to reduce file size

Hierarchy and Emphasis

Creating Visual Hierarchy

Use these properties to create hierarchy:

  1. Size — Larger text is more prominent
  2. Weight — Bolder text is more prominent
  3. Color — Brighter or more saturated colors are more prominent
  4. Spacing — More space around text makes it more prominent
  5. Position — Top-left is more prominent than bottom-right

Example: Hierarchy in a Card

<div class="card">
  <h2 class="card-title">Card Title</h2>
  <p class="card-description">This is a description of the card content.</p>
  <p class="card-meta">Published on January 16, 2026</p>
</div>
.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

Emphasis Techniques

  • Bold — Use for emphasis, not entire paragraphs
  • Italic — Use for citations, asides, or emphasis
  • Color — Use to highlight important information
  • ALL CAPS — Use sparingly for labels or buttons
  • Underline — Use only for links (to avoid confusion)

Readability and Accessibility

Line Height

Line height affects readability. Tighter line heights for headings, looser for body text:

h1, h2, h3 {
  line-height: 1.2; /* Tight for headings */
}

p, li {
  line-height: 1.6; /* Loose for body text */
}

.caption {
  line-height: 1.4; /* Medium for captions */
}

Line Length

Optimal line length is 50-75 characters. Too long and reading becomes difficult:

main {
  max-width: 65ch; /* ~65 characters */
}

Letter Spacing

Adjust letter spacing for different contexts:

h1 {
  letter-spacing: -0.02em; /* Tighter for large headings */
}

.label {
  letter-spacing: 0.05em; /* Looser for labels */
}

.caption {
  letter-spacing: 0; /* Normal for body text */
}

Text Contrast

Ensure sufficient contrast for readability (WCAG AA: 4.5:1 for normal text, 3:1 for large text):

/* Good contrast */
color: #030712; /* dark text */
background-color: #F9FAFB; /* light background */
/* Contrast ratio: 19:1 ✓ */

/* Poor contrast */
color: #9CA3AF; /* medium gray text */
background-color: #F9FAFB; /* light background */
/* Contrast ratio: 2.5:1 ✗ */

Responsive Typography

Use fluid typography to scale smoothly across devices:

/* Fixed sizes (old approach) */
h1 {
  font-size: 24px; /* mobile */
}

@media (min-width: 768px) {
  h1 {
    font-size: 32px; /* tablet */
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 40px; /* desktop */
  }
}

/* Fluid typography (modern approach) */
h1 {
  font-size: clamp(24px, 5vw, 40px);
  /* min: 24px, preferred: 5% of viewport width, max: 40px */
}

Advanced Typography Techniques

Variable Fonts

Variable fonts allow multiple weights and styles in a single file:

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

strong {
  font-weight: 600;
}

.light {
  font-weight: 300;
}

Font Features

Use OpenType features for advanced typography:

/* Ligatures (fi, fl, etc.) */
body {
  font-feature-settings: 'liga' 1;
}

/* Tabular numbers (for tables) */
.table {
  font-feature-settings: 'tnum' 1;
}

/* Small caps */
.label {
  font-feature-settings: 'smcp' 1;
}

Common Typography Patterns

Pattern 1: Article Typography

article {
  font-size: 18px;
  line-height: 1.7;
  max-width: 65ch;
  margin: 0 auto;
  padding: 2rem 1rem;
}

article h1 {
  font-size: 49px;
  line-height: 1.1;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

article h2 {
  font-size: 39px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

article p {
  margin-bottom: 1.5rem;
}

article a {
  color: var(--interactive-primary);
  text-decoration: underline;
}

Pattern 2: UI Typography

/* Buttons */
button {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Labels */
label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* Captions */
.caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}

Pattern 3: Responsive Headings

h1 {
  font-size: clamp(24px, 5vw, 61px);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(20px, 4vw, 49px);
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  font-size: clamp(18px, 3vw, 39px);
  line-height: 1.2;
  font-weight: 600;
}

How to Use This Skill with Claude Code

Create a Type Scale

"I'm using the typography-system skill. Can you create a type scale for me?
- Base font size: 16px
- Ratio: 1.25 (Major Third)
- Font family: Inter for body, Playfair Display for headings
- Include sizes for: captions, body, headings, display
- Ensure accessibility (contrast, line height, line length)"

Audit Your Typography

"Can you audit my current typography?
- Are my font sizes following a modular scale?
- Is my line height appropriate?
- Is my line length too long?
- Are my color contrasts sufficient?
- Are my fonts accessible?
- What improvements would you suggest?"

Implement Responsive Typography

"Can you help me implement responsive typography?
- Create fluid typography using clamp()
- Ensure readability at all breakpoints
- Test at mobile (320px), tablet (768px), desktop (1024px)
- Provide CSS code I can use"

Create Typography Documentation

"Can you create comprehensive typography documentation?
- Type scale with all sizes
- Font pairings and usage
- Hierarchy guidelines
- Accessibility guidelines
- Code examples for each style
- Responsive behavior"

Design Critique: Evaluating Your Typography

Claude Code can critique your typography:

"Can you evaluate my typography?
- Is my type scale harmonious?
- Is my hierarchy clear?
- Is my readability good?
- Are my color contrasts sufficient?
- Are my fonts accessible?
- What's one thing I could improve immediately?"

Integration with Other Skills

  • design-foundation — Typography tokens and scales
  • layout-system — Responsive typography scales
  • color-system — Text color and contrast
  • component-architecture — Typography in components
  • accessibility-excellence — Font sizes, contrast, line height
  • interaction-design — Typography in animations

Key Principles

1. Type Scale Brings Harmony A modular scale feels natural and intentional. It's the foundation of great typography.

2. Hierarchy Guides Users Clear hierarchy helps users understand what's important and what to read next.

3. Readability is Non-Negotiable Beautiful typography that's hard to read is not beautiful. Readability comes first.

4. Accessibility is Foundational Font sizes, contrast, and line height must meet accessibility standards.

5. Consistency Builds Trust Consistent typography across your product builds trust and reduces cognitive load.

Checklist: Is Your Typography System Ready?

  • Type scale is defined and modular
  • Font families are chosen with intention
  • Font sizes are consistent across components
  • Line heights are appropriate for context
  • Line length is 50-75 characters for body text
  • Color contrast meets WCAG AA standards
  • Hierarchy is clear and intentional
  • Responsive typography uses fluid scaling
  • Fonts are loaded efficiently
  • Typography works well on all devices
  • Typography is documented and shared with the team

Great typography is the voice of your interface. Make it count.

平台分布

Claude Code

25.15%
按下载量换算183

Gemini CLI

23.79%
按下载量换算173

OpenCode

16.34%
按下载量换算119

Codex

12.96%
按下载量换算94

Antigravity

8.27%
按下载量换算60

windsurf

3.01%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills