Skip to content
中文

Stat

Put one important number up large.

Demo

本月札记31条比上月多 6 条
累计字数48,260字
连续记录12天最长 27 天
Notes this month31notes6 more than last month
Total words48,260words
Current streak12daysLongest: 27 days

Usage

Inside .hao-stat, in order: .hao-stat__l (what it is), .hao-stat__v (the number, with the unit in a <small>), and an optional .hao-stat__n (a comparison or a remark).

  • The number is set in the Song typeface with tabular figures; the unit is a smaller sans-serif word after it (条, 字, 天). In Chinese the measure word is part of the number—don’t drop it.
  • At most four in a row, each saying one thing.
  • Write the remark as a sentence (“6 more than last month”), not an up or down arrow with a percentage, and not red or green for rise and fall.
  • Separate thousands with commas. Past ten thousand you may write “4.8 万”; settle on one style across the product.
  • Where the number isn’t the point, the value at the right of a list row is enough.

Accessibility

  • Label, number, and remark are plain text, and the DOM order is the reading order: first what it is, then how much.
  • The unit sits in the <small> and reads right after the number; nothing in the component is tappable, so the keyboard isn’t involved.