Agent skill

Better Typography

by trycompai in trycompai/crm

Web typography from choosing fonts to spacing, wrapping and accessibility.

MITAuto-check passedFrontend & Design

Install Better Typography

skills CLI
$ npx skills add trycompai/crm --skill better-typography -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install trycompai/crm better-typography --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/trycompai/crm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/better-typography .claude/skills/better-typography && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
better-typography
GitHub stars
11k
Token cost
~3.8k tokens
SKILL.md length
1,969 words
Files
8
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Web typography from choosing fonts to spacing, wrapping and accessibility.

  • Works in 12 steps: Serve the Right Format → Properties Over Raw Tags → Load Intended Weights and Styles → …
  • Pairing typefaces
  • SKILL.md covers Quick Reference, Core Principles, Common Mistakes and Review Output Format
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Better Typography is an agent skill from trycompai/crm. Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, checking heading hierarchy, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale…

Its SKILL.md is about 3.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `agents/openai.yaml`, `choosing-fonts.md` and `css-cheat-sheet.md`).

It sits in Frontend & Design, covering Typography. It works with iOS and Tailwind CSS. The repository describes itself as: Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM. The licence is MIT.

When your agent uses it

  • Pairing typefaces
  • Configuring variable fonts
  • OpenType features
  • Setting up a type scale

Example prompts

  • “/better-typography”

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Serve the Right Format
  2. Properties Over Raw Tags
  3. Load Intended Weights and Styles
  4. Fewer Fonts, Sizes and Weights
  5. Use a Type Scale with Semantic Names
  6. Heading Sizes Descend with Level
  7. Line-Height by Role
  8. Letter-Spacing by Size
  9. Cap the Measure
  10. Wrap Deliberately
  11. Tabular Numbers on Changing Values
  12. Truncate Without Losing Content

What it can do on your machine

Read from SKILL.md and the folder at commit 6d4793d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Better Typography loads about 3.8k tokens when it runs. Until then it costs about 193 tokens; SKILL.md has 1,969 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~193
When it runs · the whole SKILL.md, loaded when a task matches
~3.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from trycompai/crm at commit 6d4793d, republished under its MIT licence (© trycompai). 1,969 words, ~3,822 tokens.

Download SKILL.mdSave it as .claude/skills/better-typography/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
better-typography
description
Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, checking heading hierarchy, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale, heading hierarchy, heading levels, tabular numbers, text-wrap, truncation, line clamp, underlines, text-decoration, text selection, iOS input zoom, font smoothing, text contrast, measure, line length, text-box, smart punctuation, drop cap.

Great typography

Good typography is mostly restraint. A sensible scale, comfortable spacing and enough contrast beat any clever effect. A label, a table cell, a marketing headline and an article paragraph should not share one set of rules. Apply these principles when building or reviewing anything with text in it.

When reviewing, read the page instead of scanning the code: squint to check the hierarchy holds, read one full paragraph for comfort, and resize the viewport to catch bad wrapping, widows and truncation at real content lengths.

The words themselves (button labels, error messages, empty states) are covered by the better-writing skill; semantic heading structure by better-accessibility; spatial RTL layout and logical CSS properties by better-layout; rendered-pair contrast measurement and color remediation by better-colors. This skill owns how text renders, wraps, and behaves in mixed-direction content.

Match the project's styling system. Before suggesting or writing any fix, check how the codebase styles things and express every change in that system: Tailwind utilities in a Tailwind project, plain declarations in CSS, CSS Modules, styled-components or StyleX. The cheat sheet maps each declaration to its Tailwind equivalent. Never introduce a second styling approach just to apply a typography fix.

Quick Reference

CategoryWhen to useReference
Choosing fontsFont categories, pairing, formats, typeface anatomychoosing-fonts.md
Variable fonts & OpenTypeAxes, weights, tabular numbers, stylistic setsvariable-fonts-and-opentype.md
Spacing & sizingType scale, heading hierarchy, line-height, letter-spacing, text trimmingspacing-and-sizing.md
Wrapping & punctuationMeasure, wrapping, truncation, smart punctuation, RTLwrapping-and-punctuation.md
Details & accessibilityUnderlines, selection, forms, decorative text, contrastdetails-and-accessibility.md
CSS cheat sheetQuick lookup of every property covered, with Tailwind equivalentscss-cheat-sheet.md

Core Principles

1. Serve the Right Format

Use .woff2 (Brotli compression, broadly supported) on the web. .woff is a fallback only for very old browsers; .ttf and .otf are raw desktop formats with no web compression. How the files are loaded is the project's own concern, this skill does not prescribe it.

2. Properties Over Raw Tags

When a CSS property exists, use it. font-weight: 650 instead of font-variation-settings: "wght" 650, font-optical-sizing: auto instead of "opsz", font-variant-numeric: tabular-nums instead of font-feature-settings: "tnum" 1. Properties keep working when a non-variable fallback renders. Reserve the raw-tag properties for custom axes ("GRAD" 80) and niche features ("ss01" 1) that have no property of their own.

3. Load Intended Weights and Styles

Browsers may synthesize a requested weight or style that the active family does not provide. Prefer loading the faces the design actually uses. Set font-synthesis: none only after verifying that every required bold, italic, small-cap, superscript, and subscript form remains visually distinct across the complete fallback stack; disabling synthesis is not a diagnostic and must not erase emphasis.

4. Fewer Fonts, Sizes and Weights

Rarely use more than three fonts. Weight and size define hierarchy, but overusing them hurts readability quickly. Pair for contrast, not similarity: a serif headline with a sans body reads as deliberate, two near-identical sans-serifs read as a mistake. Below 18px, stay at weight 400+; weights under 300 are display-only (28px+), they disappear at text sizes.

5. Use a Type Scale with Semantic Names

Define a small set of sizes and deviate from it as little as possible. Hard-coded sizes without a system break down at scale. For solo projects, default names like text-sm work fine as long as the usage rules are clear. On a team, name sizes by use (text-body-sm), not by size, so the rules stay consistent.

6. Heading Sizes Descend with Level

Within a coherent page hierarchy, map heading levels to descending steps of the type scale: a visually subordinate heading should not accidentally overpower its parent. Adjacent levels may share a size toward the small end of the scale as long as weight or spacing keeps them distinct. Pick semantic heading elements according to better-accessibility; this skill controls only their visual treatment.

7. Line-Height by Role

Headings tighter, around 1.1. Body copy 1.5 to 1.6. Prefer unitless values so line-height scales with the font size; fixed values like 24px do not. Tight line-height is for short text: anything that wraps to three or more lines needs at least 1.4, even in height-constrained rows.

8. Letter-Spacing by Size

Large headings often look better with slightly negative letter-spacing. Small uppercase labels need a little positive letter-spacing so letters do not feel crowded. Body copy at reading sizes needs neither.

9. Cap the Measure

Long lines make it hard for the eye to find the next line. Cap long-form text around 60–75 characters per line. Any unit works: 65ch measures characters directly, and a pixel or rem cap is just as good: at a 16px body size the range lands roughly between 560px and 680px depending on the font, so Tailwind's max-w-xl or max-w-2xl fit. What matters is that a cap exists and the resulting line length sits in range.

10. Wrap Deliberately

text-wrap: balance distributes text evenly across lines: use it on headings. text-wrap: pretty avoids leaving a single short word on the final line: use it on descriptions. Skip both in long-form text: browsers ignore balance past a few lines anyway, and evening out a whole paragraph wastes space and makes it harder to read. overflow-wrap: break-word where long words, links or IDs could escape the container. white-space: nowrap on labels and badges where a line break looks broken.

11. Tabular Numbers on Changing Values

Digits have different widths by default, so timers, counters and prices shift layout as they update. Apply font-variant-numeric: tabular-nums to any value that changes.

12. Truncate Without Losing Content

Single line: text-overflow: ellipsis with overflow: hidden and white-space: nowrap. Multiple lines: line-clamp. Truncation hides content, so if the missing text matters, keep the full value reachable in a tooltip or expanded view.

13. Write Copy Naturally, Style with CSS

Store text in natural case and control presentation with text-transform, so redesigns never require rewriting copy. Use smart punctuation: curly quotes in prose (straight quotes in code), an en dash for ranges like 2010–2020, an em dash to set off a thought, the single ellipsis character,   to keep values like 16 px together and ­ to control where long words may break.

14. Underlines from the Font

Default underlines sit wherever the browser decides. Pull position and thickness from the font's own metrics with text-underline-position: from-font and text-decoration-thickness: from-font, or tune manually with text-decoration-thickness, text-underline-offset and text-decoration-skip-ink. text-decoration-style draws the line dotted, dashed or wavy; a dotted underline is a common hint that a word carries extra information, like an abbreviation or a defined term. Unless the only thing animating is a color change, build the underline as a separate element instead of using text-decoration: color is the only part of a real underline that animates reliably.

15. Inputs at 16px on Mobile

iOS Safari zooms the whole page when an input's text is smaller than 16px. Keep input text at 16px on mobile viewports (text-base sm:text-sm). Avoid the maximum-scale=1 viewport meta: Safari ignores it for pinch zoom, but every other browser honors it and blocks zooming, which fails WCAG.

Show full SKILL.md (803 more words)Show less
16. Size and Contrast Floors

Start long-form body text near the browser default of 16px, then judge it in the actual typeface, measure, platform, and product density. UI text can go smaller: 14px is a useful starting point for inputs and menus (inputs still need 16px on mobile, see principle 15), 13px for captions, rarely below 12px. When text appears low-contrast, use better-colors to measure the rendered pair and better-accessibility to classify the requirement; do not change colors unless asked.

17. Font Smoothing on the Root

On macOS text renders heavier than intended. Apply -webkit-font-smoothing: antialiased and -moz-osx-font-smoothing: grayscale (both covered by Tailwind's antialiased) once on the root layout so they cover all text.

18. Language and Bidi Behavior

Set lang so browsers and assistive technology choose the right pronunciation, quotes, and hyphenation. Set dir at the document or content boundary where direction changes, preserve digit order, and use <bdi> for isolated mixed-direction values when needed. Spatial mirroring and logical CSS properties belong to better-layout.

19. Keep Useful Text Selectable

::selection can carry brand into the reading experience when the selected combination stays legible. Keep text selectable by default. Use user-select: none only on a specific draggable or gesture-driven surface where accidental selection demonstrably interferes with the interaction; never disable selection across the interface or merely because a button label can be highlighted.

Common Mistakes

MistakeFix
.ttf/.otf served on the webConvert to .woff2
font-variation-settings: "wght" for weightfont-weight (works with non-variable fallbacks)
font-feature-settings: "tnum" 1font-variant-numeric: tabular-nums
Synthesized face differs from the intended designLoad the required face; disable only the verified synthesis mode without erasing emphasis
Hard-coded one-off font sizesUse the type scale
Child heading visually overpowers its parentMap that section's hierarchy to descending scale steps
Heading element picked for its default sizeChoose semantics with better-accessibility, then set the visual size in CSS
line-height: 24px on scalable textUnitless value (1.5)
Full-width paragraphsCap around 60–75 characters per line
Orphan on the last line of a paragraphtext-wrap: pretty
Lopsided two-line headingtext-wrap: balance
Numbers cause layout shifttabular-nums
Truncated text with no way to read itTooltip or expanded view for the full value
UPPERCASE typed into copyNatural case + text-transform
Justified text in an interfacetext-align: start; reserve justify for specific editorial layouts
Underline cuts through descenderstext-decoration-skip-ink: auto, from-font metrics
Inputs below 16px zoom on iOStext-base sm:text-sm
Root layout omits font smoothingApply antialiased once at the root
Mixed-direction value renders in the wrong orderSet the correct lang/dir; isolate the value with <bdi> when needed
Selection disabled across application chromeRestore selection; suppress it only on a specific interaction that conflicts with dragging or gestures
Extra-info hint with no visual cueDotted underline via text-decoration-style: dotted
Thin/Light weight on 14px UI textWeight 400+ below 18px; thin weights are display-only
leading-none on a three-line card descriptionAt least 1.4 on any text that wraps to 3+ lines

Review Output Format

Use this format only when the user asks for a standalone typography review. When better-interface orchestrates the review, provide domain evidence and findings to that skill and let its output format, severity scale, consolidation rules, cap, and verdict take precedence.

Present the standalone review in two parts.

Findings

Group all confirmed findings by principle. Use a markdown table with Severity, Location, Before, After, and Why columns. Never use separate "Before:" / "After:" lines.

  • Severity: HIGH makes text unreadable, unavailable, or structurally misleading; MEDIUM harms hierarchy, wrapping, or scanning; LOW is isolated typographic polish.
  • Location: cite path/to/file:line. If the artifact has no source files, cite the exact screen and component instead.
  • Before / After: show the current typography and an actionable replacement.
  • Why: name the violated principle and its effect on readability or hierarchy.

Consolidate a repeated systemic issue into one row and list every affected location. Omit principles with no findings.

Example
Tabular numbers
SeverityLocationBeforeAfterWhy
MEDIUMsrc/Price.tsx:17<span>{price}</span> on a live price<span className="tabular-nums">{price}</span>Proportional digits cause changing values to shift
LOWsrc/numbers.css:8font-feature-settings: "tnum" 1font-variant-numeric: tabular-numsThe high-level property preserves fallback behavior
Line-height and measure
SeverityLocationBeforeAfterWhy
MEDIUMsrc/Article.tsx:33leading-none on a body paragraphleading-normal (1.5–1.6)Wrapped body text needs enough vertical separation
MEDIUMsrc/article.css:12Full-width article columnmax-width near 65 characters at 16pxLong measures make lines hard to track
Verification and Verdict

After the findings:

  1. Verification: list the exact checks run and their observed results, including wrapping, hierarchy, text resizing, font loading, and dynamic-value stability when applicable. If a check was not run, state what still needs verification.
  2. Verdict: Block if any HIGH finding remains, Needs changes if only MEDIUM or LOW findings remain, and Approve only when no actionable findings remain.

When there are no findings, omit the tables, state "No actionable typography findings", report verification, and end with Approve.

© trycompai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files in .agents/skills/better-typography of trycompai/crm.

  • SKILL.md
  • agents/openai.yaml
  • choosing-fonts.md
  • css-cheat-sheet.md
  • details-and-accessibility.md
  • spacing-and-sizing.md
  • variable-fonts-and-opentype.md
  • wrapping-and-punctuation.md

Open the folder on GitHubat commit 6d4793d

Compare with similar skills

Better Typography next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Better Typography compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Better Typography this skilltrycompai/crm11k—~3.8kAutomated safety check: PassMIT
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
Design SystemOhh-889/skyroc79511 repos~1.7kAutomated safety check: PassMIT
Baseline UIibelick/ui-skills9.5k8 repos~855Automated safety check: PassMIT
Scalar Design Systemscalar/scalar16k—~2.7kAutomated safety check: PassMIT
UI/UX Design System AdvisorGalaxy-Dawn/claude-scholar5.7k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • Design System

    Ohh-889/skyroc

    Token architecture, component specifications, and slide generation.

    795 GitHub starsUsed in 11 repos~1.7k tokens
    Frontend & DesignAuto-check passed
  • Baseline UI

    ibelick/ui-skills

    Applies a fixed set of UI rules for stack, components, interaction, animation, typography and layout, or reviews a file against them with concrete fixes.

    9.5k GitHub starsUsed in 8 repos~855 tokens
    Frontend & DesignAuto-check passed
  • Scalar's design system — design tokens, theming (@scalar/themes), CSS variables, and the @scalar/components library.

    16k GitHub stars~2.7k tokensUpdated today
    Frontend & DesignAuto-check passed
  • UI/UX Design System Advisor

    Galaxy-Dawn/claude-scholar

    Turns a vague UI request into a concrete design system with style, palette, typography and layout guidance from a search script, plus stack-specific implementation advice.

    5.7k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Better Typography

    Lily-404/blog

    Web typography. An agent skill from Lily-404/blog.

    151 GitHub starsUsed in 5 repos~2.8k tokens
    Frontend & DesignAuto-check passed

More from trycompai/crm

All 9 skills in this repo
  • Install Anti Slop

    trycompai/crm

    Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository.

    11k GitHub starsUsed in 1 repo~881 tokens
    Auto-check passed
  • Nuqs

    trycompai/crm

    nuqs (type-safe URL query state) best practices for Next.js and other React frameworks.

    11k GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Nestjs Trpc

    trycompai/crm

    Build end-to-end type-safe tRPC APIs inside NestJS using the nestjs-trpc adapter — @Router/@Query/@Mutation/@Subscription decorators, TRPCModule.forRoot, injectable middlewares and context, Zod…

    11k GitHub stars~2.8k tokensUpdated 26 days ago
    Auto-check passed
  • Accessibility engineering for product interfaces, from focus states and keyboard support to ARIA, forms, and screen readers.

    11k GitHub stars~3.1k tokensUpdated 26 days ago
    Auto-check passed
  • Better Colors

    trycompai/crm

    OKLCH color space and color usage for web projects. An agent skill from trycompai/crm.

    11k GitHub stars~1.9k tokensUpdated 26 days ago
    Auto-check passed
  • Better UI

    trycompai/crm

    Design engineering principles for making interfaces feel polished.

    11k GitHub stars~2.4k tokensUpdated 26 days ago
    Auto-check passed

Works with

Questions about Better Typography

What does Better Typography do?

Web typography from choosing fonts to spacing, wrapping and accessibility. Better Typography is an agent skill from trycompai/crm. Web typography from choosing fonts to spacing, wrapping and accessibility.

When should I use Better Typography?

Better Typography fits situations like: pairing typefaces; configuring variable fonts; openType features; setting up a type scale.

How do I install Better Typography in Claude Code?

Run `npx skills add trycompai/crm --skill better-typography -a claude-code`. Or copy the skill folder (.agents/skills/better-typography in trycompai/crm) into .claude/skills/better-typography in your project. Claude Code loads it when a task matches its description.

How do I install Better Typography in Codex?

Run `npx skills add trycompai/crm --skill better-typography -a codex`. Or copy the skill folder (.agents/skills/better-typography in trycompai/crm) into .agents/skills/better-typography in your project. Codex loads it when a task matches its description.

Can I use Better Typography in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trycompai/crm --skill better-typography -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/better-typography, .gemini/skills/better-typography, .github/skills/better-typography and .opencode/skills/better-typography in your project.

What does Better Typography need to run?

SKILL.md names no scripts, command-line tools or credentials: Better Typography is instructions for the agent only.

Does Better Typography access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Better Typography safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Better Typography use?

Better Typography is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Better Typography use?

About 3.8k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Better Typography?

Skills that share tags, products or a category with Better Typography: Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), Design System (Ohh-889/skyroc, 795 stars), Baseline UI (ibelick/ui-skills, 9.5k stars) and Scalar Design System (scalar/scalar, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Better Typography?

trycompai (a GitHub organization) maintains it in trycompai/crm, which has 11,132 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 11, 2026.

Source: trycompai/crm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.