feat: introduce mathematical type scale with single-source-of-truth typography tokens

Define a major-third (1.25) type scale as CSS custom properties in the tokens
layer (--text-2xs through --text-5xl), along with line-height (--leading-*),
font-weight (--font-*), and letter-spacing (--tracking-*) tokens. Migrate all
28 core CSS files from ad-hoc values to token references with clamp()-based
responsive scaling for headings. Add TypographyTokenContractTest to enforce
token-only usage via grep-based assertions.

Task run: UI-TYPOGRAPHY-SCALE-001

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 15:47:55 +01:00
parent cf8c59d3f8
commit e145b7d089
30 changed files with 390 additions and 146 deletions

View File

@@ -13,7 +13,7 @@
width: auto !important;
--app-form-element-spacing-horizontal: 10px;
--app-form-element-spacing-vertical: 6px;
font-size: 13px !important;
font-size: var(--text-sm) !important;
height: auto !important;
}
.app-list-toolbar > * > * {
@@ -21,7 +21,7 @@
width: auto !important;
--app-form-element-spacing-horizontal: 10px;
--app-form-element-spacing-vertical: 6px;
font-size: 13px !important;
font-size: var(--text-sm) !important;
height: auto !important;
}
.app-list-toolbar > * > * > * {
@@ -29,7 +29,7 @@
width: auto !important;
--app-form-element-spacing-horizontal: 10px;
--app-form-element-spacing-vertical: 6px;
font-size: 13px !important;
font-size: var(--text-sm) !important;
height: auto !important;
}
@@ -55,7 +55,7 @@
.app-list-toolbar > label > span {
display: block;
font-size: 11px !important;
font-size: var(--text-xs) !important;
}
.app-list-toolbar .app-grid-page-size select {
@@ -76,7 +76,7 @@
.multi-select
.multi-select-header
.multi-select-header-placeholder {
font-size: 13px;
font-size: var(--text-sm);
}
.app-list-toolbar .multi-select .multi-select-header,
@@ -95,6 +95,6 @@
border: 0 !important;
padding: 0 !important;
padding-left: 3px !important;
font-size: 11px !important;
font-size: var(--text-xs) !important;
}
}