Skip to content

Commit 6a7a6b6

Browse files
committed
Using numbers in the @font-face rules, as css custom properties are not available there
1 parent 635a9c7 commit 6a7a6b6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scss/bitstyles/design-tokens/_typography.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,37 @@ $webfont-variants: (
2626
'normal': (
2727
'font-family': $webfont-family-name,
2828
'font-style': normal,
29-
'font-weight': var(custom-property.name('font-weight', 'normal')),
29+
'font-weight': 400,
3030
'filename': 'poppins-v20-latin-400',
3131
),
3232
'italic': (
3333
'font-family': $webfont-family-name,
3434
'font-style': italic,
35-
'font-weight': var(custom-property.name('font-weight', 'normal')),
35+
'font-weight': 400,
3636
'filename': 'poppins-v20-latin-400italic',
3737
),
3838
'medium': (
3939
'font-family': $webfont-family-name,
4040
'font-style': normal,
41-
'font-weight': var(custom-property.name('font-weight', 'medium')),
41+
'font-weight': 500,
4242
'filename': 'poppins-v20-latin-500',
4343
),
4444
'medium-italic': (
4545
'font-family': $webfont-family-name,
4646
'font-style': italic,
47-
'font-weight': var(custom-property.name('font-weight', 'medium')),
47+
'font-weight': 500,
4848
'filename': 'poppins-v20-latin-500italic',
4949
),
5050
'semibold': (
5151
'font-family': $webfont-family-name,
5252
'font-style': normal,
53-
'font-weight': var(custom-property.name('font-weight', 'semibold')),
53+
'font-weight': 600,
5454
'filename': 'poppins-v20-latin-600',
5555
),
5656
'semibold-italic': (
5757
'font-family': $webfont-family-name,
5858
'font-style': italic,
59-
'font-weight': var(custom-property.name('font-weight', 'semibold')),
59+
'font-weight': 600,
6060
'filename': 'poppins-v20-latin-600italic',
6161
),
6262
) !default;

0 commit comments

Comments
 (0)