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

@@ -14,7 +14,7 @@
display: block;
margin-bottom: 8px;
font-size: var(--font-size-sm, 0.8125rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
color: #3f5f5c;
}
@@ -50,7 +50,7 @@
padding: 6px 10px;
border-radius: var(--radius-full, 999px);
font-size: var(--font-size-sm, 0.8125rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
}
.delivery-chip--digital {

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;

View File

@@ -186,7 +186,7 @@
border-radius: 20px;
font-family: "DM Sans", sans-serif;
font-size: var(--font-size-xs, 0.75rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
letter-spacing: 0.02em;
z-index: 2;
line-height: 1.3;
@@ -203,7 +203,7 @@
.item-name {
font-family: "DM Sans", sans-serif;
font-size: var(--font-size-sm, 0.8125rem);
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
margin: 0;
line-height: 1.35;
min-height: 2.2em;
@@ -232,7 +232,7 @@
}
.rating-value {
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
color: #1e3c38;
}
@@ -261,7 +261,7 @@
.current-price,
.discounted-price {
font-size: var(--font-size-md, 0.9375rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
color: #1e3c38;
}

View File

@@ -15,7 +15,7 @@
cursor: pointer;
transition: all 0.3s ease;
font-size: var(--font-size-base, 0.875rem);
font-weight: 500;
font-weight: var(--font-weight-medium, 500);
&:hover {
background: rgba(255, 255, 255, 0.05);
@@ -87,7 +87,7 @@
&.active {
background: rgba(255, 255, 255, 0.1);
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
}
&.disabled {
@@ -182,7 +182,7 @@
.language-code {
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-weight: 500;
font-weight: var(--font-weight-medium, 500);
font-size: var(--font-size-md, 0.9375rem);
color: #1e3c38;
letter-spacing: 0;
@@ -326,7 +326,7 @@
cursor: pointer;
transition: all 0.3s ease;
font-size: var(--font-size-base, 0.875rem);
font-weight: 500;
font-weight: var(--font-weight-medium, 500);
&:hover {
background: rgba(255, 255, 255, 0.05);
@@ -335,7 +335,7 @@
.currency-symbol {
font-size: var(--font-size-md, 0.9375rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
}
.currency-code {
@@ -392,12 +392,12 @@
&.active {
background: rgba(255, 255, 255, 0.1);
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
}
.cur-symbol {
font-size: var(--font-size-lg, 1rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
width: 20px;
text-align: center;
}

View File

@@ -57,7 +57,7 @@
color: #fff;
padding: 6px 12px;
border-radius: 20px;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
font-size: var(--font-size-base, 0.875rem);
z-index: 1;
}
@@ -75,7 +75,7 @@
background: rgba(22, 163, 74, 0.9);
color: #fff;
font-size: var(--font-size-xs, 0.75rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
text-transform: capitalize;
}
@@ -100,7 +100,7 @@
background: rgba(255, 255, 255, 0.95);
color: #1e3c38;
font-size: var(--font-size-lg, 1rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
display: inline-flex;
align-items: center;
justify-content: center;
@@ -161,7 +161,7 @@
background: #497671;
color: #fff;
font-size: var(--font-size-xs, 0.75rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
text-transform: uppercase;
}
@@ -180,7 +180,7 @@
}
.product-name {
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
font-size: clamp(14px, 1.4vw, 18px);
color: #1e3c38;
margin: 0;
@@ -215,7 +215,7 @@
.rating-stars {
color: #b45309;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
}
}
@@ -275,7 +275,7 @@
border-radius: var(--radius-lg, 13px);
background: #497671;
color: #fff;
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
cursor: pointer;
transition: background 0.2s ease, transform 0.15s ease;

View File

@@ -67,7 +67,7 @@
padding: 10px 14px;
border-bottom: 1px solid var(--border-color, #e0e0e0);
font-size: var(--font-size-xs, 0.75rem);
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
color: var(--text-secondary, #666);
text-transform: uppercase;
letter-spacing: 0.5px;

View File

@@ -60,7 +60,7 @@
h2 {
margin: 0 0 8px;
font-size: var(--font-size-2xl, 1.25rem);
font-weight: 700;
font-weight: var(--font-weight-bold, 700);
color: var(--text-primary, #1a1a1a);
}
@@ -83,7 +83,7 @@ h2 {
background: #2AABEE;
color: #fff;
font-size: var(--font-size-lg, 1rem);
font-weight: 600;
font-weight: var(--font-weight-semibold, 600);
cursor: pointer;
transition: all 0.2s ease;