मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)10k · #11888

better-typography

यह क्या करती है

यह स्किल इंटरफ़ेस में टेक्स्ट के दिखने और पढ़े जाने की जाँच करती है। यह उन डिज़ाइनरों और डेवलपरों के लिए है जिन्हें पढ़ने में आसान और एक जैसा टाइप चाहिए।

कब इस्तेमाल करें

  • ✓जब टेक्स्ट भीड़ भरा, बहुत चौड़ा या पढ़ने में कठिन लगे।
  • ✓जब पूरे प्रोडक्ट में फ़ॉन्ट साइज़ या वज़न एक जैसे न हों।
  • ✓जब मोबाइल पर टेक्स्ट अनचाहे ढंग से ज़ूम हो या बुरी तरह कट जाए।

Skill का लिंक

https://github.com/jakubkrehel/skills/blob/main/skills/better-typography/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/jakubkrehel/skills/blob/main/skills/better-typography/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्रोडक्ट पेज का टेक्स्ट एक जैसा नहीं लगता और फ़ोन पर पढ़ना कठिन है। कृपया टाइपोग्राफ़ी की समीक्षा कीजिए।”

हर हफ़्ते 5 नई skills, 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: balance evens out headings and short descriptions. Never on paragraphs, and Chromium ignores it past six lines.
  • text-wrap: pretty keeps a lone word off the last line. Safe on any paragraph, long-form included.
  • `overflow-wrap
अक्सर पूछे जाने वाले सवाल

क्या यह नए फ़ॉन्ट सुझाती है?

नहीं, जब तक आप टाइप बदलने के लिए न कहें।

अच्छी लाइन की लंबाई कितनी होती है?

यह स्किल लगभग 60 से 75 अक्षरों को संदर्भ बिंदु मानती है।

क्या यह टेक्स्ट का कंट्रास्ट भी देखती है?

नहीं। कंट्रास्ट का काम colors और एक्सेसिबिलिटी स्किल का है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills