Skip to main content
HahlexMillarv0.1.0 Draft
FoundationsDraft@hahlex/millar-tokens/tokens.css

Typography

Unified ecosystem typography: Geist Sans (300-400 Display >= 28px; 500-600 operational headings 16-22px), Inter (Body/UI + slim opsz 24 assistant threads), and Geist Mono (code & tabular numerals), calibrated with :root:lang(vi) Vietnamese diacritic safety.

Interactive Display & Vietnamese Diacritic Specimen

Toggle weight and language to verify that stacked Vietnamese diacritics (ệ, ư, ỗ, ắ, ồ) never clip or collide.

Geist Display · weight 300 · leading 1.20 / tracking -0.012em (:lang(vi))

Hệ thống thiết kế thống nhất cho trải nghiệm bền vững, rõ ràng và giàu sắc thái ấm áp.

Inter đảm bảo độ đọc rõ ràng cho nội dung tiếng Việt có dấu ghép phức tạp ở kích thước 14px-15px trong bảng dữ liệu, biểu mẫu và giao diện trợ lý.

0123456789 · tabular-nums84 / 84 AAΔE 11.13--font-mono
Interactive Display & Vietnamese Diacritic Specimen
/* :root:lang(vi) widens line-height and adds .line-mask top headroom */
:root:lang(vi) {
  --leading-display: 1.2;
  --tracking-display: -0.012em;
}
:root:lang(vi) .line-mask {
  padding-top: 0.16em;
  margin-top: -0.16em;
}

Type Scale & Role Contract

Millar typography scale tokens
CSS TokenFamilyWeightSizeIntended Role
--text-display-heroGeist Sans300-400clamp(2.4rem, 5vw, 4rem)Marketing hero display statement
--text-display-sectionGeist Sans300-400clamp(1.75rem, 3.2vw, 2.5rem)Section display heading
--text-page-titleGeist Sans6001.375rem (22px)Product page H1 header
--text-section-titleGeist Sans6001.125rem (18px)Card / panel section heading
--text-card-titleGeist Sans6001rem (16px)Compact component heading
--text-bodyInter4000.9375rem (15px)Primary UI & editorial reading copy
--text-body-smInter400-5000.875rem (14px)Controls, table cells, navigation
--text-metaInter / Mono400-5000.8125rem (13px)Secondary captions & metadata
--text-microInter / Mono5000.75rem (12px)Strict minimum UI text floor (never < 12px)