Skip to content
中文

Date tileDateTile

A small calendar page that stands a date up as a graphic beside a schedule entry or an event.

Demo

十一月18周三十一月18周三十月初十十一月22小雪十月十四

读书会:《园冶》

晚上 7:30,线上

Nov18WedNov22Minor Snow

Book club: The Craft of Gardens

7:30 PM, online

Usage

.hao-date holds three lines: .hao-date__m the month, .hao-date__d the day, .hao-date__w the weekday. When the day carries a solar term, the third line gives the term’s name instead, with hao-date__w--term added.

  • The look is borrowed from the old page-a-day calendar: a color band up top for the month, the day big in the middle.
  • The month is written in Han characters (十一月), the day in Arabic numerals set in the Song typeface, the weekday as “周三”; an English interface writes “Nov” and “Wed”.
  • Use it only when the date itself is the point: schedule lists, event details, reminders. An ordinary timestamp is written as text.
  • Add role="img" and an aria-label that reads the date out in full; when the full date already stands beside it, use aria-hidden="true" instead.
  • When they run in a column, one per row, left-aligned.
  • To carry the lunar date too, add a .hao-date__l line at the end (“十月初十”), generated from calendar data—never written by hand. English interfaces leave this line out.
  • The colored band at the top has a small hole at each end: the binding holes of a tear-off calendar.