better-typography
Skill này làm gì
Skill này kiểm tra cách chữ hiển thị và dễ đọc trong giao diện. Nó dành cho nhà thiết kế và lập trình viên muốn kiểu chữ dễ đọc và nhất quán.
Khi nào nên dùng
- ✓Khi chữ trông chật, quá rộng hoặc khó đọc.
- ✓Khi cỡ chữ hoặc độ đậm không nhất quán trong sản phẩm.
- ✓Khi chữ trên điện thoại phóng to bất ngờ hoặc bị cắt xấu.
Liên kết skill
https://github.com/jakubkrehel/skills/blob/main/skills/better-typography/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chữ trên các trang sản phẩm của tôi trông không nhất quán và khó đọc trên điện thoại. Hãy rà soát kiểu chữ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI rà soát thang cỡ chữ, chiều cao dòng, độ dài dòng, độ đậm và cách ngắt dòng, đồng thời kiểm tra các quy tắc như cỡ chữ tối thiểu và việc phóng to khi nhập liệu trên iOS. Nó viết bản sửa trong hệ thống định kiểu của bạn, ưu tiên các giá trị có sẵn của dự án.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có gợi ý phông chữ mới không?
Không, trừ khi bạn yêu cầu đổi kiểu chữ.
Độ dài dòng tốt là bao nhiêu?
Skill dùng khoảng 60 đến 75 ký tự làm điểm tham chiếu.
Nó có xử lý độ tương phản chữ không?
Không. Độ tương phản thuộc về các skill về màu sắc và khả năng tiếp cận.
Chi tiết
Mô tả gốc của tác giả
Sets and reviews how text renders, from the type scale and spacing to font features, wrapping, truncation and punctuation.
repo: jakubkrehel/skills
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11888
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
better-accessibility
10kRà soát và sửa các vấn đề về bàn phím, tiêu điểm, trình đọc màn hình, biểu mẫu và chuyển động trong giao diện, theo tiêu chuẩn WCAG 2.2.
better-colors
10kXây dựng và kiểm tra hệ thống màu bằng cách tạo bảng màu, đặt tên token, chuyển đổi định dạng và đo độ tương phản.
better-interface
10kRà soát toàn bộ màn hình hoặc luồng theo khả năng tiếp cận, bố cục, cách viết, kiểu chữ, màu sắc và độ hoàn thiện, rồi xếp hạng các vấn đề.
better-layout
10kThiết lập nhóm, căn lề, thứ tự đọc và cấu trúc đáp ứng kích thước màn hình, rồi kiểm tra bố cục vẫn ổn khi thay đổi kích thước hoặc khi dịch ngôn ngữ.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.