typography
2
总安装量
2
周安装量
#63091
全站排名
安装命令
npx skills add https://github.com/rhino-labs/skills --skill typography
Agent 安装分布
amp
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
gemini-cli
2
Skill 文档
Typography
Professional typography guidelines based on Butterick’s Practical Typography. Apply these rules when generating any formatted output.
Core Principle
Body text is the most important element â it comprises the majority of any document. Get body text right first, then style everything else relative to it.
The Four Pillars of Body Text
1. Point Size
- Print: 10â12 pt
- Web: 15â25 px
- Different fonts render differently at the same size â adjust visually
2. Line Spacing
- 120â145% of point size (e.g., 12 pt text â 14.4â17.4 pt leading)
- CSS: use unitless
line-height(e.g.,1.3â1.45) - Never rely on “Single” or “1.5 lines” presets in word processors
3. Line Length
- 45â90 characters per line (including spaces)
- Quick test: 2â3 lowercase alphabets should fit on one line
- Control via margins, not paragraph indents
- Web: prevent text from spanning full browser width
4. Font Choice
- Use professional fonts over system defaults
- Avoid Times New Roman and Arial for final documents
- See references/fonts.md for font guidance
Type Composition Rules
Quotation Marks
- Always use curly quotes (” ” ‘ ‘), never straight quotes (” ‘)
- Exception: foot/inch marks remain straight
Dashes
- Hyphen (
-): compound words, line breaks - En dash (
â): ranges (1990â2000, pp. 10â15), connections (liberalâconservative) - Em dash (
â): parenthetical breaks â stronger than commas, lighter than parentheses - Never approximate with double hyphens (
--)
Spacing
- One space between sentences â never two
- No consecutive whitespace characters
- Use nonbreaking spaces after paragraph/section marks (§, ¶)
Special Characters
- Use proper ellipsis (â¦), not three periods
- Use proper trademark (â¢), copyright (©), registered (®) symbols
- Apostrophes curve downward (it’s, not it’s with a straight mark)
- Limit exclamation points to one per document over three pages
Text Formatting
Emphasis
- Bold and italic are mutually exclusive â never combine
- Use both sparingly; when everything is emphasized, nothing is
- With serif fonts: italic for gentle emphasis, bold for strong
- With sans serif: prefer bold (italic is barely noticeable)
- Adjacent punctuation stays unformatted
Headings
- Limit to 2â3 levels maximum
- Prefer bold over italic; avoid all-caps and underlining
- Use subtle size increases (0.5â1 pt over body text, not dramatic jumps)
- Emphasize via space above/below rather than large size changes
- Suppress hyphenation in headings
ALL CAPS and Small Caps
- All caps: acceptable for less than one line of text
- Add 5â12% letterspacing to all-caps and small-caps text
- Always enable kerning
- Only use real small caps (OpenType
smcpfeature), never faked
Underlining
- Avoid entirely except for web hyperlinks
Color
- Print body text: always black
- Web body text: consider dark gray over pure black
- Use color idiomatically for links; don’t color non-clickable text
- Restraint is key â color for emphasis fails at body-text sizes
Page Layout
For detailed layout rules, see references/layout.md.
Key Layout Rules
- First-line indents OR space between paragraphs â never both
- First-line indent size: 1â4Ã the point size
- Print margins: typically 1.5â2.0″ at 12 pt for proper line length
- Justified text requires hyphenation; prefer left-aligned in word processors and web
- Mixing fonts: maximum 2 (rarely 3); assign each a consistent role
- Keep fonts in separate paragraphs; avoid multiple fonts in one paragraph
Maxims
- Design body text first
- Divide page into foreground and background
- Adjust in smallest visible increments
- When in doubt, try it both ways
- Same things look the same; different things look different
- Embrace simplicity â fewer fonts, fewer colors
- Respect white space
Web-Specific Guidelines
- Body text: 15â25 px
- Use
line-heightwith unitless values - Control line length with
max-width(e.g.,max-width: 33em) - Use
text-indentfor first-line indents, not margins - Use
letter-spacing: 0.05emâ0.12emfor caps/small-caps - Use CSS
font-variant: small-capsfor real small caps - Table cell padding: start at ~3px, increase incrementally
- Use
<ul>/<ol>for lists, never manual bullets
Document-Specific Notes
For tables, lists, block quotations, and sample document guidance, see references/elements.md.