better-typography
できること
このスキルは、インターフェースの文字がどう見え、どう読まれるかを確認します。読みやすく一貫した書体にしたいデザイナーや開発者向けです。
使う場面
- ✓文字が詰まって見える、幅が広すぎる、読みにくいとき。
- ✓製品全体で、フォントのサイズや太さが不揃いに感じられるとき。
- ✓スマートフォンで文字が予想外に拡大される、または切れ方が悪いとき。
スキルのリンク
https://github.com/jakubkrehel/skills/blob/main/skills/better-typography/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“製品ページの文字が不揃いで、スマートフォンでは読みにくいです。書体を確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは文字の大きさの体系、行の高さ、行の長さ、太さ、折り返しを確認し、最小サイズやiOSの入力時の拡大などのルールを確かめます。プロジェクトの値を優先して、スタイルの仕組みの中で修正を書きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Typography
This skill sets and reviews how text renders, from the type scale and spacing to font loading, wrapping and punctuation. It writes every fix in the project's styling system, and the cheat sheet maps each declaration to its Tailwind utility.
The words belong to better-writing, semantic heading structure to better-accessibility and spatial RTL layout to better-layout. Measure contrast with better-colors; whether it passes is better-accessibility's.
Measured, not preferred
Some values here are exact. Unitless line-height, weight 400 or heavier below 18px, a 60–75 character measure, 16px inputs on iOS and tabular-nums on changing values are findings when missed.
Letter-spacing, pairing and scale ratios are heuristics. Report them only where they break the project's own scale. Never propose a new typeface, paid or free, unless the task asks for a type change.
Fewer fonts, sizes and weights
Rarely use more than three fonts; marketing pages can carry more than apps. Weight and size carry hierarchy, so each extra one dilutes it. Pair for contrast. A serif headline over a sans body reads as deliberate, two near-identical sans-serifs read as a mistake.
Below 18px, use weight 400 or heavier. Weights 100–300 belong at 28px and up, checked against the background even there. Categories, Display and Text cuts, formats and fallback stacks are in choosing-fonts.md.
Load the faces the design uses
Browsers synthesize a weight or style the family doesn't ship, distorting the face. Load every face the design uses. Disable synthesis only after verifying the fallback stack, and only the unwanted mode. The synthesis longhands show how.
Properties over raw tags
When a CSS property exists, use it. font-weight: 650, not font-variation-settings: "wght" 650. font-variant-numeric: tabular-nums, not font-feature-settings: "tnum" 1. Properties keep working when a non-variable fallback renders.
Leave font-optical-sizing at its default auto. Hard-code "opsz" only when the design deliberately decouples optical size from font size. Reserve raw tags for custom axes like "GRAD" 80 and features with no property, like "ss01" 1. Axes, features and variable versus static files are in variable-fonts-and-opentype.md.
Use a type scale with semantic names
Define a small set of sizes and deviate from it as little as possible. Pair each size with its line-height and weight, so a role is one decision instead of three.
Solo, default names like text-sm are fine when the usage rules are clear. On a team, name sizes by use (text-body-sm) so the rules survive other people. A role-based starting scale is in the reference.
Heading sizes descend with level
Map heading levels to descending steps of the scale, so a subordinate heading never overpowers its parent. Deep levels may share a size where the scale runs out of steps, as long as weight or letter-spacing keeps them distinct. A heading is never smaller than body text unless it is a deliberate overline. See the level mapping.
Line-height by role
Display text 1.1, headings 1.2–1.3, body copy 1.5–1.6. Use unitless values so line-height scales with the font size; a fixed 24px does not.
Tight line-height is for short text. Anything that wraps to three or more lines needs at least 1.4, even in a height-constrained row. See the card description example.
Letter-spacing by size
Headings at 24px and up take -0.01em to -0.02em. Uppercase labels at 14px or smaller take 0.05em. Body copy stays at 0. Use em so tracking scales with the size.
Kerning is built into the font and on by default. font-kerning: none is never a fix.
Cap the measure
Cap long-form text at 60–75 characters per line. Any unit works, as long as a cap exists and the line length lands in range. See unit choices and the pixel equivalents.
Wrap deliberately
text-wrap: balanceevens out headings and short descriptions. Never on paragraphs, and Chromium ignores it past six lines.text-wrap: prettykeeps a lone word off the last line. Safe on any paragraph, long-form included.- `overflow-wrap
よくある質問
新しいフォントを提案しますか?
いいえ。書体の変更を求められない限り提案しません。
よい行の長さとは何ですか?
このスキルは、およそ60〜75文字を基準の目安にしています。
テキストのコントラストも扱いますか?
いいえ。コントラストは、色とアクセシビリティのスキルの担当です。
詳細
作者による元の説明
Sets and reviews how text renders, from the type scale and spacing to font features, wrapping, truncation and punctuation.
repo: jakubkrehel/skills
人気
- GitHubのスター
- 10k
- ランキング
- #11888
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
better-accessibility
10kインターフェースのキーボード、フォーカス、スクリーンリーダー、フォーム、動きの問題を、WCAG 2.2の基準に照らして確認し、修正します。
better-colors
10kカラーパレットを生成し、トークンに名前を付け、形式を変換し、コントラストを測定して、配色システムを作成・確認します。
better-interface
10k画面やフロー全体を、アクセシビリティ、レイアウト、文章、書体、色、仕上がりの観点から見直し、問題を優先順位付きで並べます。
better-layout
10kグループ分け、整列、読み順、レスポンシブな構造を整え、サイズ変更や翻訳をしても、レイアウトが崩れないことを確かめます。
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。