← 返回 Skills 市场
ivangdavila

Fonts

作者 Iván · GitHub ↗ · v1.0.0
linuxdarwinwin32 ✓ 安全检测通过
1103
总下载
2
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install fonts
功能描述
Choose and implement web typography avoiding common rendering, pairing, and hierarchy mistakes.
使用说明 (SKILL.md)

Display vs Text Fonts

  • Display fonts (Abril Fatface, Bebas Neue, Lobster) are for headings 24px+ only—using them for body text destroys readability
  • If a font looks decorative or has extreme thick/thin contrast, it's display—not for paragraphs
  • Text fonts (Inter, Roboto, Georgia) are designed for 12-18px—use these for body copy

Pairing Traps

  • Two fonts too similar look like a mistake—if you can't tell them apart instantly, use one font
  • Contrast in category works: serif heading + sans-serif body, or different weights of same family
  • Two decorative fonts clash—never pair Lobster with Pacifico
  • Safe pairs: same superfamily (Roboto + Roboto Slab) or proven combos (Playfair Display + Source Sans Pro)

Weight and Rendering

  • Thin weights (100-300) render poorly on Windows—avoid for body text, use 400+ for cross-platform
  • Light fonts on dark backgrounds look thinner—bump weight up one level for dark mode
  • Faux bold (browser-generated) looks wrong—only use weights the font actually includes
  • Check font has italic—faux italic (slanted roman) is noticeably worse than true italic

Line Height and Length

  • Body text needs 1.4-1.6 line-height—1.0 or 1.2 makes paragraphs unreadable walls
  • Headings need tighter line-height (1.1-1.3)—large text with 1.5 line-height has awkward gaps
  • Line length 45-75 characters max—wider than 75 chars causes readers to lose their place
  • Set max-width on text containers in ch units: max-width: 65ch

All Caps

  • ALL CAPS needs increased letter-spacing—without it, letters collide and look cramped
  • text-transform: uppercase + letter-spacing: 0.05em minimum
  • Never use all caps for more than a few words—extended caps text is significantly harder to read
  • Small caps (font-variant: small-caps) only if font supports it—faux small caps look amateurish

Widows and Orphans

  • Single word alone on last line of paragraph looks broken—adjust text or container width
  • text-wrap: balance (CSS) distributes lines more evenly in headings
  • text-wrap: pretty for body text—prevents orphans in browsers that support it
  • Manual fix: non-breaking space ( ) between last two words

Loading and Performance

  • font-display: swap prevents invisible text—without it, text is blank until font loads
  • Subset fonts to characters you need—Latin-only saves 60%+ over full Unicode
  • WOFF2 is the only format you need—universal support, best compression
  • Preload critical fonts: \x3Clink rel="preload" href="font.woff2" as="font" crossorigin>

System Font Stack

font-family: system-ui, -apple-system, BlinkMacSystemFont, 
  'Segoe UI', Roboto, sans-serif;
  • Zero load time, native look per platform—use for UI-heavy apps
  • system-ui is now widely supported—simpler than listing all fallbacks
  • Always end with generic fallback (sans-serif, serif, monospace)

Hierarchy Mistakes

  • Using too many font sizes—stick to a type scale (1.25 or 1.333 ratio), not random sizes
  • Headings not distinct enough from body—skip at least one scale step between h1 and body
  • Overusing bold—if everything is emphasized, nothing is emphasized
  • Color as only differentiator—size and weight should establish hierarchy before color
安全使用建议
This skill is low-risk: it only contains typography advice and CSS snippets and asks for nothing from your system. You can install it without granting credentials or allowing downloads. As a general precaution, prefer skills from known sources; if a future version adds install steps or environment requirements, review those changes before granting permissions.
功能分析
Type: OpenClaw Skill Name: fonts Version: 1.0.0 The skill bundle contains only metadata and a comprehensive guide on web typography best practices in `SKILL.md`. There are no executable files, no instructions for the AI agent that could be interpreted as prompt injection attempts, and no code snippets that suggest malicious activity, data exfiltration, or system compromise. The content is purely informational and aligns with the stated purpose of providing advice on fonts.
能力评估
Purpose & Capability
The name and description promise web typography guidance and the SKILL.md contains only styling, pairing, rendering, and performance guidance—nothing beyond that. There are no unrelated requirements (no binaries, env vars, or config paths).
Instruction Scope
Runtime instructions are purely design/CSS guidance and code snippets. The file does not instruct the agent to read files, access environment variables, call external endpoints, or transmit data.
Install Mechanism
There is no install specification and no code files. As an instruction-only skill, it does not write to disk or pull external packages—this is the lowest-risk model.
Credentials
The skill declares no required environment variables, credentials, or config paths. Nothing here would justify requesting secrets or system credentials.
Persistence & Privilege
always is false and the skill does not request persistent system changes or cross-skill configuration. Autonomous invocation is allowed by platform default but the skill's instructions are benign and self-contained.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fonts
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fonts 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug fonts
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Fonts 是什么?

Choose and implement web typography avoiding common rendering, pairing, and hierarchy mistakes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1103 次。

如何安装 Fonts?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fonts」即可一键安装,无需额外配置。

Fonts 是免费的吗?

是的,Fonts 完全免费(开源免费),可自由下载、安装和使用。

Fonts 支持哪些平台?

Fonts 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Fonts?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论