Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(styles): update font definitions to remove font weight light #3284

Merged
5 changes: 5 additions & 0 deletions .changeset/warm-crabs-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@swisspost/design-system-styles': patch
---

Switched from light to regular font weight for most texts, excluding sub-titles.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ header.navbar {
border: 0;
background-color: rgba(var(--post-contrast-color-rgb), 0.1);
font-size: 1.2em;
font-weight: type.$font-weight-light;
}

.btn {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,4 @@

#navbarsDefault > ul > .nav-item {
font-size: 1.25rem;
font-weight: type.$font-weight-light;
}
1 change: 0 additions & 1 deletion packages/styles/src/layouts/portal/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@

p {
margin-top: 0;
font-weight: type.$font-weight-light;
}

h5,
Expand Down
3 changes: 0 additions & 3 deletions packages/styles/src/placeholders/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

li {
margin-bottom: paragraph.$text-bottom-space * 0.5;
font-weight: type.$font-weight-light;

&::before {
content: '\2013';
Expand Down Expand Up @@ -78,7 +77,6 @@
li {
@extend %font-curve-regular;
@extend %text-bottom-spacer;
font-weight: type.$font-weight-light;

&::before {
content: '\2013';
Expand Down Expand Up @@ -131,7 +129,6 @@
counter-reset: li-counter;

li {
font-weight: type.$font-weight-light;
counter-increment: li-counter;

&::before {
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/variables/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ $blockquote-footer-font-size: math.div(
$lead-font-size * sizing.strip-unit($small-font-size),
100
) !default;
$blockquote-cite-font-weight: $font-weight-light !default;
$blockquote-cite-font-weight: $font-weight-normal !default;

$hr-border-color: rgba(color.$black, 0.1) !default; // Design System
$hr-border-color-light: rgba(color.$white, 0.4) !default; // Design System only
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/variables/components/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $accordion-icon-transition: transform animation.$transition-base-timing !default
$accordion-icon-transform: rotate(-180deg) !default;

$accordion-body-padding: $accordion-gap $accordion-padding $accordion-padding !default;
$accordion-body-font-weight: type.$font-weight-light !default;
$accordion-body-font-weight: type.$font-weight-normal !default;

// Deprecated
$accordion-padding-x: spacing.$size-regular !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $notification-box-shadow: 0 2px 4px 0 rgba(color.$black, 0.2) !default;
$notification-border-radius: commons.$border-radius !default;
$notification-gap: spacing.$size-small-large !default;
$notification-body-gap: spacing.$size-micro !default;
$notification-font-weight: type.$font-weight-light !default;
$notification-font-weight: type.$font-weight-normal !default;
$notification-link-font-weight: type.$font-weight-normal !default;
$notification-heading-font-weight: type.$headings-font-weight !default;
$notification-buttons-gap: spacing.$size-mini !default;
Expand Down