You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 369e07c
Browse filesBrowse the repository at this point in the historyBrowse files
chore(design): audit every locale, and measure CJK in CJK
bin/design-audit.mjs is the only thing that measures the rendered pages, so
its blind spots are the design system's blind spots. It had two.
Its page list was six English routes plus /zh-CN/, leaving five languages
unmeasured. It now derives the list from LOCALES in build-pages.mjs -- six
page shapes across all seven languages, plus the three untranslated pages --
so the eighth language will be audited the day it lands. English stays the
default; --all expands to the full matrix.
More importantly, the character probe was hard-coded Latin. Every language
therefore reported 72 characters per line, which looked like perfect
consistency but was really the container width restated in Latin units. The
CJK pages run at 41 full-width characters and that number had never appeared
in any report. The probe now follows <html lang>.
Measured: Latin 70-72 (band 45-75, fine); CJK 40-41 (band 30-40, one over).
Left as is -- 660 / 16px is 41.25, and pulling only the paragraphs in would
break their alignment with the headings, rules and tables the whole design
hangs on. Recorded in docs/design-system.md so the next person to touch the
type scale knows it is already at the ceiling.
Two contract tests pin the script's own coverage. Reverse-verified: stashing
the design-audit change turns both red.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments