Typography Details (6 Fixes) new 排版细节(6 个调整) web

山野白茶拿铁-40

今年第一口春天,用Pekoe白毫慢慢焖泡,清甜回甘,适合一个人的午后。1.7×

尝鲜价¥280–9

限定03.21—04.30

#2E2621
00 Before

The same words, before any detail is tuned.

标本可交互,可以直接操作。

Anatomy — every part, named解剖 —— 每个部件的名字

  1. 1 Heading tracking标题字距 letter-spacing

    Tighten large headings to -20 to -60 so the line feels solid and weighty.

    大标题字距收紧到 -20 ~ -60,字挤一点更有分量。

    Prompt fragmentPrompt 片段

    the heading tracking: letter-spacing about -0.04em on large display headings

    标题字距:大标题 letter-spacing 约 -0.04em

  2. 2 Body leading正文行距 line-height

    Body line-height of 1.5–1.8 times the font size gives the paragraph room to breathe.

    行距 = 字号 × 1.5 ~ 1.8,段落透气就显得从容。

    Prompt fragmentPrompt 片段

    the body leading: line-height 1.7 for a 13px body

    正文行距:13px 正文用 1.7 倍行高

  3. 3 Latin numerals西文数字 font-family

    Prices and dates use half-width digits from a Latin face, never full-width CJK digits.

    价格、日期用西文字体的半角数字,别用中文字体自带的全角数字。

    Prompt fragmentPrompt 片段

    the numerals: half-width digits in a Latin serif or sans for prices and dates

    数字:价格和日期用西文衬线或无衬线字体的半角数字

  4. 4 CJK–Latin spacing中英间距 text-autospace

    A quarter-em gap separates Chinese from English words and numbers.

    中文和英文、数字之间留 1/4 个字的空隙。

    Prompt fragmentPrompt 片段

    the CJK–Latin gap: a quarter-em space between Chinese and Latin text

    中英间距:中文和西文之间留 1/4 字宽

  5. 5 English line标题小英文 letter-spacing

    A small, widely tracked English line sits under the heading at exactly its width.

    标题下配一行小英文,字号小、字距大,拉到和标题一样宽。

    Prompt fragmentPrompt 片段

    the English line: small caps-like Latin text, wide tracking, justified to the heading width

    小英文:小号西文、大字距,两端对齐到标题宽度

  6. 6 Off-black暖黑 color

    Text uses a dark grey or warm black instead of harsh #000000.

    纯黑 #000000 又硬又刺眼,换成深灰或暖黑。

    Prompt fragmentPrompt 片段

    the text colour: warm off-black #2E2621 instead of #000000

    文字颜色:用暖黑 #2E2621 代替 #000000

Prompt — paste into your agentPrompt —— 直接粘贴给你的代理

Polish this card's typography without changing any words, in six steps: 1 tighten the large heading's letter-spacing to about -0.04em (-20 to -60 in design-tool units); 2 set body line-height to 1.5–1.8 times the font size; 3 set prices and dates in half-width digits from a Latin typeface, never full-width CJK digits; 4 put a quarter-em gap between Chinese and Latin words or numbers (text-autospace where supported, otherwise a space or margin); 5 add one small English line under the heading, widely tracked and stretched to exactly the heading's width; 6 replace pure #000000 text with a warm off-black such as #2E2621. Show a before/after toggle.

不改任何文字,把这张卡片的排版分 6 步调好:1 大标题字距收紧到约 -0.04em(设计软件里的 -20 ~ -60);2 正文行高设为字号的 1.5–1.8 倍;3 价格和日期改用西文字体的半角数字,不要全角数字;4 中文和英文、数字之间留 1/4 个字的空隙(支持的浏览器用 text-autospace,否则用空格或间距);5 标题下加一行小英文,字距拉大,宽度和标题完全一样;6 文字颜色不用纯黑 #000000,换成暖黑,比如 #2E2621。做一个改前/改后的对比开关。

Debug prompt — when it misbehaves调试 Prompt —— 当它不听话时

Debug my typography polish. Check that heading tracking is negative but letters never touch; body line-height is between 1.5 and 1.8 and not inherited from a tighter parent; prices and dates use half-width digits in a Latin font (no full-width 0-9 characters left in the copy); Chinese–Latin gaps are consistent and not doubled by both a space and text-autospace; the English line matches the heading width after font loading and resizing; and no text still uses #000000. The symptom:

调试我的排版细节。检查:标题字距是否为负值但字母不粘连;正文行高是否在 1.5–1.8 之间,没有被更紧的父级继承覆盖;价格和日期是否用西文字体的半角数字(文案里不能残留 0–9 这类全角字符);中英文间距是否一致,没有同时加空格又开 text-autospace 导致间距翻倍;小英文在字体加载完成和窗口缩放后是否仍与标题等宽;以及是否还有文字用着 #000000。症状是:

In code代码里叫什么

Framework框架Symbol符号Note说明
CSS letter-spacing heading tracking: -20 to -60 in design-tool units is -0.02em to -0.06em标题字距:设计软件里的 -20 ~ -60,相当于 -0.02em ~ -0.06em
CSS line-height body leading of 1.5 to 1.8 times the font size正文行距取字号的 1.5 ~ 1.8 倍
CSS font-family / font-variant-numeric set prices and dates in a Latin face with half-width digits价格、日期用西文字体的半角数字
CSS text-autospace newer browsers add the CJK–Latin gap automatically; otherwise use a quarter-em margin or a space较新的浏览器会自动在中英文之间留空;否则用 1/4 字宽的间距或空格
CSS color a warm off-black such as #2E2621 instead of #000000用暖黑(如 #2E2621)代替 #000000

See also相关词条

我的参考集

组合知名网站、UI 元素、视觉风格和平面设计案例,导出给 AI。

你的下一份设计,从这里开始。

在任意案例旁点击「加入参考」,就能把品牌、组件、风格和平面设计案例组合成一份 AI 设计说明。

搜索参考库Search the library

输入关键词,搜索所有参考。