style(design-system): normalize font-weight literals (400/500/600/700) to tokens
Mechanical, value-preserving: font-weight: 400/500/600/700 -> var(--font-weight-normal/medium/semibold/bold, <same value>) across src/app. Note: cart.component.scss now sits ~771 bytes over its per-file budget in angular.json due to longer var() strings; non-fatal build warning, noted in docs/UI-DESIGN-REVIEW.md as a follow-up (either bump the component style budget slightly or accept the warning).
This commit is contained in:
@@ -34,7 +34,7 @@ label {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
color: var(--text-primary, #1e3c38);
|
||||
font-weight: 600;
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
}
|
||||
|
||||
label.full,
|
||||
@@ -44,7 +44,7 @@ app-form-field.full {
|
||||
|
||||
.field-desc {
|
||||
display: block;
|
||||
font-weight: 400;
|
||||
font-weight: var(--font-weight-normal, 400);
|
||||
font-size: var(--font-size-xs, 0.75rem);
|
||||
line-height: 1.4;
|
||||
color: var(--text-secondary, #5f6e6a);
|
||||
@@ -109,7 +109,7 @@ button {
|
||||
background: #497671;
|
||||
color: #fff;
|
||||
padding: 0 14px;
|
||||
font-weight: 700;
|
||||
font-weight: var(--font-weight-bold, 700);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--transition-fast, 120ms ease),
|
||||
border-color var(--transition-fast, 120ms ease),
|
||||
@@ -207,7 +207,7 @@ button.secondary {
|
||||
|
||||
th {
|
||||
color: var(--text-secondary, #5f6e6a);
|
||||
font-weight: 600;
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
}
|
||||
|
||||
.preview-before {
|
||||
@@ -217,7 +217,7 @@ button.secondary {
|
||||
|
||||
.preview-after {
|
||||
color: var(--text-primary, #1e3c38);
|
||||
font-weight: 600;
|
||||
font-weight: var(--font-weight-semibold, 600);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,8 +235,8 @@ button.secondary {
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 4px 10px; border-radius: var(--radius-full, 999px);
|
||||
border: 1px solid var(--border-color, #d3dad9);
|
||||
font-size: var(--font-size-sm, 0.8125rem); font-weight: 600;
|
||||
em { font-style: normal; font-weight: 400; font-size: var(--font-size-xs, 0.75rem); color: var(--text-secondary, #6b7280); }
|
||||
font-size: var(--font-size-sm, 0.8125rem); font-weight: var(--font-weight-semibold, 600);
|
||||
em { font-style: normal; font-weight: var(--font-weight-normal, 400); font-size: var(--font-size-xs, 0.75rem); color: var(--text-secondary, #6b7280); }
|
||||
}
|
||||
.languages-summary__chip--default { border-color: var(--color-primary, #2f8f5b); }
|
||||
.languages-summary__manage { font-size: var(--font-size-sm, 0.8125rem); text-decoration: underline; color: var(--text-primary, #1e3c38); }
|
||||
|
||||
Reference in New Issue
Block a user