forked from philipbelesky/inter-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_variable.scss
49 lines (43 loc) · 1.65 KB
/
_variable.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$inter-font-display: swap !default;
$inter-font-suffix: '' !default;
$inter-font-path: 'variable' !default;
$inter-font-path-suffix: '?v=4.0' !default;
@mixin normal {
@font-face {
font-family: 'InterVariable';
font-weight: 100 900;
font-style: normal;
font-named-instance: 'Regular';
font-display: $inter-font-display;
src: url("#{$inter-font-path}/InterVariable#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2 supports variations(gvar)"),
url("#{$inter-font-path}/InterVariable#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2-variations"),
url("#{$inter-font-path}/InterVariable#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2");
}
}
@mixin italic {
@font-face {
font-family: 'InterVariable';
font-weight: 100 900;
font-style: italic;
font-named-instance: 'Italic';
font-display: $inter-font-display;
src: url("#{$inter-font-path}/InterVariable-Italic#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2 supports variations(gvar)"),
url("#{$inter-font-path}/InterVariable-Italic#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2-variations"),
url("#{$inter-font-path}/InterVariable-Italic#{$inter-font-suffix}.woff2#{$inter-font-path-suffix}") format("woff2");
}
}
@mixin default {
/* -------------------------------------------------------
Variable font.
Usage:
html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'InterVariable', sans-serif; }
}
*/
@include normal;
@include italic;
}
@mixin all {
@include default;
}