|
1 | 1 | @use "../01-abstract/variables" as *; |
| 2 | +@use "../01-abstract/theme-json" as *; |
2 | 3 |
|
3 | 4 | /** |
4 | 5 | * Heading - Used in src/scss/06-blocks/core/_heading.scss |
|
20 | 21 | * |
21 | 22 | * mixin : |
22 | 23 | * @if $name == h3 { |
23 | | - * font-size: var(--heading--font-size-h3); |
24 | | - * line-height: var(--heading--line-height-h3); |
| 24 | + * font-size: $settings-font-size-h3; |
| 25 | + * line-height: $settings-custom-line-height-h3; |
25 | 26 | * |
26 | 27 | * @if $style == uppercase { |
27 | 28 | * text-transform: uppercase; |
|
44 | 45 | */ |
45 | 46 |
|
46 | 47 | @mixin heading($name: h1, $style: default) { |
47 | | - font-family: $font-family-primary; |
48 | | - font-weight: 400; |
| 48 | + font-family: $font-family-secondary; |
49 | 49 |
|
50 | 50 | @if $name == h1 { |
51 | | - font-size: var(--heading--font-size-h1); |
52 | | - line-height: var(--heading--line-height-h1); |
| 51 | + font-size: $settings-font-size-h1; |
| 52 | + font-weight: 500; |
| 53 | + line-height: $settings-custom-line-height-h1; |
53 | 54 | } |
54 | 55 |
|
55 | 56 | @if $name == h2 { |
56 | | - font-size: var(--heading--font-size-h2); |
57 | | - line-height: var(--heading--line-height-h2); |
| 57 | + font-size: $settings-font-size-h2; |
| 58 | + font-weight: 500; |
| 59 | + line-height: $settings-custom-line-height-h2; |
58 | 60 | } |
59 | 61 |
|
60 | 62 | @if $name == h3 { |
61 | | - font-size: var(--heading--font-size-h3); |
62 | | - line-height: var(--heading--line-height-h3); |
| 63 | + font-size: $settings-font-size-h3; |
| 64 | + font-weight: 500; |
| 65 | + line-height: $settings-custom-line-height-h3; |
63 | 66 | } |
64 | 67 |
|
65 | 68 | @if $name == h4 { |
66 | | - font-size: var(--heading--font-size-h4); |
67 | | - line-height: var(--heading--line-height-h4); |
| 69 | + font-size: $settings-font-size-h4; |
| 70 | + font-weight: 500; |
| 71 | + line-height: $settings-custom-line-height-h4; |
68 | 72 | } |
69 | 73 |
|
70 | 74 | @if $name == h5 { |
71 | | - font-size: var(--heading--font-size-h5); |
72 | | - line-height: var(--heading--line-height-h5); |
| 75 | + font-size: $settings-font-size-h5; |
| 76 | + font-weight: 500; |
| 77 | + line-height: $settings-custom-line-height-h5; |
73 | 78 | } |
74 | 79 |
|
75 | 80 | @if $name == h6 { |
76 | | - font-size: var(--heading--font-size-h6); |
77 | | - line-height: var(--heading--line-height-h6); |
| 81 | + font-size: $settings-font-size-h6; |
| 82 | + font-weight: 500; |
| 83 | + line-height: $settings-custom-line-height-h6; |
78 | 84 | } |
79 | 85 | } |
0 commit comments