All skills
jakubkrehel avatar

/better-typography

@267330e
by Jakub Kreheljakubkrehel/skills7.4k stars
275

Focuses on type scale, spacing, sizing, variable fonts, OpenType features, wrapping, truncation and other details that make typography feel great across your product.

Use this Skill: https://skilld.dev/gh/jakubkrehel/skills/better-typography

This session only. Nothing lands on disk.

css-cheat-sheet.md

≈988 tokens on demand. Your agent reads this file only when SKILL.md points to it.

CSS cheat sheet

One-line lookup for every typography CSS declaration covered by this skill, with the Tailwind 4 equivalent. Where no utility exists, the arbitrary-value form is shown. Pick the column that matches the project: the declaration in plain CSS, CSS Modules, styled-components or StyleX codebases, the utility in Tailwind codebases.

Font

Declaration What it does Tailwind
font-family: sans-serif The sans family font-sans
font-family: serif The serif family font-serif
font-family: monospace The monospace family font-mono
font-size Size from the type scale text-*
font-weight Any value from 1 to 1000 font-*
font-style: italic Switch to italic style italic
-webkit-font-smoothing + -moz-osx-font-smoothing Smooth macOS font rendering; apply once at the root antialiased
font-synthesis: none Disable all synthesized forms after verifying fallbacks and emphasis [font-synthesis:none]
font-feature-settings Toggle OpenType features [font-feature-settings:"ss01"]
font-variation-settings Tune variable font axes [font-variation-settings:"GRAD"_80]
font-optical-sizing Adjust details per size [font-optical-sizing:auto]
font-variant-caps Real small capitals [font-variant-caps:small-caps]
font-variant-position Real super and subscripts [font-variant-position:super]
font-variant-numeric: tabular-nums Equal-width digits tabular-nums
font-variant-numeric: slashed-zero Tell 0 from O slashed-zero

Spacing and layout

Declaration What it does Tailwind
letter-spacing Space between letters tracking-*
line-height Space between lines leading-*
font-kerning Kerning on or off [font-kerning:none]
text-box: trim-both Trim space above and below [text-box:trim-both_cap_alphabetic]
max-width on text columns Cap at ~60–75 characters per line max-w-xl / max-w-2xl / max-w-[65ch]
text-align Where lines start and end text-start / text-center

Wrapping and overflow

Declaration What it does Tailwind
text-wrap: balance Even out heading lines text-balance
text-wrap: pretty Avoid orphaned words text-pretty
text-overflow: ellipsis Ellipsis for clipped text truncate
line-clamp Cut off after N lines line-clamp-*
overflow-wrap: break-word Break long strings break-words
white-space: nowrap Stop wrapping whitespace-nowrap
text-transform Change the casing uppercase / capitalize

Decoration and interaction

Declaration What it does Tailwind
text-decoration-line: underline Draw an underline underline
text-decoration-color Underline color decoration-*
text-decoration-thickness Underline thickness decoration-1 / decoration-2
text-underline-offset Push the line down underline-offset-*
text-underline-position: from-font Underline position from the font [text-underline-position:from-font]
text-decoration-style Dotted, dashed or wavy decoration-dotted / decoration-wavy
text-decoration-thickness: from-font Underline set by the font decoration-from-font
text-decoration-skip-ink Gaps around descenders [text-decoration-skip-ink:auto]
caret-color Tint the text cursor caret-*
user-select: none Suppress selection on a verified drag/gesture conflict only select-none
text-shadow Shadow behind the letters text-shadow-*
-webkit-text-stroke Outline the letters [-webkit-text-stroke:1px_black]
background-clip: text Clip a background to the letters bg-clip-text
initial-letter Size a drop cap [initial-letter:3]

Source: SKILL.md on GitHub

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a comprehensive set of typography and design guidelines for web development. It focuses on accessibility, performance (WOFF2), and semantic CSS. No malicious patterns, data exfiltration, or prompt injections were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 267330e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for jakubkrehel/skills/better-typography