1+ @use " sass:map" ;
2+
3+ @mixin heading1 {
4+ @if map .has-key ($headings , 1 ) {
5+ @include font-size (map .get (map .get ($headings , 1 ), font-size ));
6+ font-weight : map .get (map .get ($headings , 1 ), font-weight );
7+ line-height : map .get (map .get ($headings , 1 ), line-height );
8+ letter-spacing : map .get (map .get ($headings , 1 ), letter-spacing );
9+ }
10+ }
11+
12+ @mixin heading2 {
13+ @if map .has-key ($headings , 2 ) {
14+ @include font-size (map .get (map .get ($headings , 2 ), font-size ));
15+ font-weight : map .get (map .get ($headings , 2 ), font-weight );
16+ line-height : map .get (map .get ($headings , 2 ), line-height );
17+ letter-spacing : map .get (map .get ($headings , 2 ), letter-spacing );
18+ }
19+ }
20+
21+ @mixin heading3 {
22+ @if map .has-key ($headings , 3 ) {
23+ @include font-size (map .get (map .get ($headings , 3 ), font-size ));
24+ font-weight : map .get (map .get ($headings , 3 ), font-weight );
25+ line-height : map .get (map .get ($headings , 3 ), line-height );
26+ letter-spacing : map .get (map .get ($headings , 3 ), letter-spacing );
27+ }
28+ }
29+
30+ @mixin heading4 {
31+ @if map .has-key ($headings , 4 ) {
32+ @include font-size (map .get (map .get ($headings , 4 ), font-size ));
33+ font-weight : map .get (map .get ($headings , 4 ), font-weight );
34+ line-height : map .get (map .get ($headings , 4 ), line-height );
35+ letter-spacing : map .get (map .get ($headings , 4 ), letter-spacing );
36+ }
37+ }
38+
39+ @mixin heading5 {
40+ @if map .has-key ($headings , 5 ) {
41+ @include font-size (map .get (map .get ($headings , 5 ), font-size ));
42+ font-weight : map .get (map .get ($headings , 5 ), font-weight );
43+ line-height : map .get (map .get ($headings , 5 ), line-height );
44+ letter-spacing : map .get (map .get ($headings , 5 ), letter-spacing );
45+ }
46+ }
47+
48+ @mixin heading6 {
49+ @if map .has-key ($headings , 6 ) {
50+ @include font-size (map .get (map .get ($headings , 6 ), font-size ));
51+ font-weight : map .get (map .get ($headings , 6 ), font-weight );
52+ line-height : map .get (map .get ($headings , 6 ), line-height );
53+ letter-spacing : map .get (map .get ($headings , 6 ), letter-spacing );
54+ }
55+ }
0 commit comments