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:
sdarbinyan
2026-07-20 03:28:56 +04:00
parent be59db2e2d
commit 5c54541b4c
74 changed files with 286 additions and 286 deletions

View File

@@ -59,7 +59,7 @@
border: 1px solid #d3dad9;
background: rgba(255, 255, 255, 0.74);
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
font-size: var(--font-size-md, 0.9375rem);
color: #1e3c38;
text-decoration: none;
@@ -123,7 +123,7 @@
background: transparent;
outline: none;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
font-size: var(--font-size-md, 0.9375rem);
color: #828e8d;
cursor: pointer;
@@ -165,7 +165,7 @@
.platform-ux-icon {
font-size: var(--font-size-md, 0.9375rem);
line-height: 1;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
}
.platform-ux-badge {
@@ -178,7 +178,7 @@
background: #497671;
color: #ffffff;
font-size: 10px;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
display: inline-flex;
align-items: center;
justify-content: center;
@@ -226,7 +226,7 @@
background: #497671;
color: #ffffff;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
font-size: 10px;
line-height: 1;
width: 18px;
@@ -240,7 +240,7 @@
.platform-cart-total {
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
font-size: 10px;
line-height: 1;
color: #1e3c38;
@@ -277,7 +277,7 @@
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.15);
font-family: 'DM Sans', sans-serif;
font-size: var(--font-size-lg, 1rem);
font-weight: 500;
font-weight: var(--font-weight-medium, 500);
color: #1e3c38;
text-decoration: none;
text-align: left;