Skip to content

Commit

Permalink
add font weight variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TarasKachmar2022 committed Mar 8, 2024
1 parent ac3f078 commit 6ffcfaa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/sass/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
--desktop: 1360px;
// Fonts
--main-font: 'Open Sans', sans-serif;
// Font weight
--fw-s: 300;
--fw-m: 400;
// Text colors
--main-txt-cl: #ffffff;
--secondary-txt-cl: #333333;
Expand Down
6 changes: 3 additions & 3 deletions src/sass/components/_titles.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.main-title {
font-weight: 300;
font-weight: var(--fw-s);
font-size: 52px;
line-height: 1.27;

Expand All @@ -10,7 +10,7 @@
}

.uppertitle {
font-weight: 400;
font-weight: var(--fw-m);
font-size: 18px;
line-height: 1.67;

Expand All @@ -21,7 +21,7 @@
}

.section-title {
font-weight: 300;
font-weight: var(--fw-s);
font-size: 38px;
line-height: 1.26;
}
Expand Down
2 changes: 1 addition & 1 deletion src/sass/layout/_contact.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}

.contact__title {
font-weight: 300;
font-weight: var(--fw-s);
font-size: 38px;
line-height: 1.26;

Expand Down
2 changes: 1 addition & 1 deletion src/sass/layout/_team.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
}
}
.team__subtitle {
font-weight: 400;
font-weight: var(--fw-m);
font-size: 23px;
line-height: 1.26;
margin-bottom: 11px;
Expand Down

0 comments on commit 6ffcfaa

Please sign in to comment.