Skip to content

Commit fb8c805

Browse files
anattzlilMichalPorag
authored andcommitted
add line heights to typography
1 parent c85942a commit fb8c805

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

styles/typography.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,79 @@
22

33
//based on 1rem = 16px
44

5+
//font sizes
56
$fontsize-1: 2.25rem; //36px
67
$fontsize-2: 2rem; //32px
78
$fontsize-3: 1.5rem; //24px
89
$fontsize-4: 1.25rem; //20px
910
$fontsize-5: 1rem; //16px
1011
$fontsize-6: 0.875rem; //14px
1112

13+
//line heights
14+
$lineheight-1: 3rem; //48px
15+
$lineheight-2: 2.625rem; //42px
16+
$lineheight-3: 2rem; //32px
17+
$lineheight-4: 1.625rem; //26px
18+
$lineheight-5: 1.3125rem; //21px
19+
$lineheight-6: 1.125rem; //18px
20+
1221
.heading-one {
1322
font-size: $fontsize-1;
23+
line-height: $lineheight-1;
1424
font-weight: 800;
1525
}
1626

1727
.heading-two {
1828
font-size: $fontsize-2;
29+
line-height: $lineheight-2;
1930
font-weight: 800;
2031
}
2132

2233
.heading-three {
2334
font-size: $fontsize-3;
35+
line-height: $lineheight-3;
2436
font-weight: 700;
2537
}
2638

2739
.heading-four {
2840
font-size: $fontsize-4;
41+
line-height: $lineheight-4;
2942
font-weight: 700;
3043
}
3144

3245
.subheading-one {
3346
font-size: $fontsize-1;
47+
line-height: $lineheight-1;
3448
font-weight: 400;
3549
}
3650

3751
.subheading-two {
3852
font-size: $fontsize-2;
53+
line-height: $lineheight-2;
3954
font-weight: 400;
4055
}
4156

4257
.body-one {
4358
font-size: $fontsize-4;
59+
line-height: $lineheight-4;
4460
font-weight: 400;
4561
}
4662

4763
.body-two {
4864
font-size: $fontsize-3;
65+
line-height: $lineheight-3;
4966
font-weight: 400;
5067
}
5168

5269
.small-text {
5370
font-size: $fontsize-5;
71+
line-height: $lineheight-5;
5472
font-weight: 400;
5573
}
5674

5775
.overline {
5876
font-size: $fontsize-6;
77+
line-height: $lineheight-6;
5978
font-weight: 700;
6079
text-transform: uppercase;
6180
}

0 commit comments

Comments
 (0)