本文へ移動
cccskills
無料GitHub で公開

apply-typography-scale

Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskillsスター 3(GitHub 3 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Skill: Apply Typography Scale

Purpose

Create clear typographic hierarchy using a hand-crafted set of font sizes, weights, and colors.

Core Rules

  1. Hand-crafted, not mathematical — Avoid modular scales with fractional pixels
  2. Use px or rem, never em — Prevents compounding issues
  3. Minimum 25% jumps — 16px → 20px (25%), not 16px → 18px (12.5%)
  4. Two weights only — 400/500 normal, 600/700 bold
  5. Never < 400 for UI — Too hard to read at small sizes

Recommended Scales

Marketing Page

Hero:     48-60px,  weight 700,  line-height 1.1
H1:       36-40px,  weight 700,  line-height 1.2
H2:       28-32px,  weight 600,  line-height 1.3
Body:     16-18px,  weight 400,  line-height 1.6
Small:    14px,     weight 400,  line-height 1.6
Caption:  12px,     weight 400,  line-height 1.5

Application/Dense UI

H1:     30-36px,  weight 700
H2:     24px,     weight 600
H3:     20px,     weight 600
H4:     16px,     weight 600
Body:   14-16px,  weight 400
Small:  12-13px,  weight 400

Line-Height Rules

Inverse proportion to size:

  • Small text (12-14px): 1.6-1.7 (needs help finding next line)
  • Body text (16px): 1.5-1.6
  • Large headlines (30px+): 1-1.2 (needs less help)

Line Length

  • Optimal: 45-75 characters per line
  • Max-width: 20-35em for paragraphs
  • Wide paragraphs: Increase line-height to 1.8-2.0

Decision Criteria

PASS

  • Scale uses a small set of intentional sizes with clear jumps between roles
  • Type hierarchy combines size, weight, line-height, and color
  • Body text remains readable across marketing, app, and content contexts
  • Line length and line-height fit the reading context

FAIL

  • Scale relies on tiny increments that do not create hierarchy
  • Font weights are too light for UI text
  • Long-form text lines are too wide or cramped
  • em sizing compounds unpredictably in nested elements

Common Failure Modes

FailureExampleFix
Em units1.25em parent, 0.875em child = 17.5pxUse px or rem
Micro-steps16px, 18px, 20px16px, 20px, 28px
Weight 300Light body textMinimum 400
Long lines100+ charactersConstrain to 35em
Uniform line-height1.5 for allVary by size

Examples

See examples/typography-scale/ for scale implementations.

References

  • references/hand-crafted-scales.md
  • references/avoid-em-units.md
  • references/line-height-proportion.md

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

1password

無料

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Build integrated IS/BS/CF financial workbooks in Excel.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

9router

無料

Entry point for 9Router — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions 9Router, NINEROUTER_URL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Chat / code generation via 9Router using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos. Use when the user wants to ask an LLM, generate code, summarize text, or run prompts through 9Router.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

karanmrn のスキルをすべて見る

このスキルの問題を報告する