summaryrefslogtreecommitdiff
path: root/docs/inter-ui.css
blob: 499df863ba67750cb092432746a030d412befadc (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 400;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-Regular.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-Regular.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 400;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-Italic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-Italic.woff?v=3.0") format("woff");
}

@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 500;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-Medium.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-Medium.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 500;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-MediumItalic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-MediumItalic.woff?v=3.0") format("woff");
}

@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 600;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-SemiBold.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-SemiBold.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 600;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-SemiBoldItalic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-SemiBoldItalic.woff?v=3.0") format("woff");
}

@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 700;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-Bold.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-Bold.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 700;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-BoldItalic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-BoldItalic.woff?v=3.0") format("woff");
}

@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 800;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-ExtraBold.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-ExtraBold.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 800;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-ExtraBoldItalic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-ExtraBoldItalic.woff?v=3.0") format("woff");
}

@font-face {
  font-family: 'Inter UI';
  font-style:  normal;
  font-weight: 900;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-Black.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-Black.woff?v=3.0") format("woff");
}
@font-face {
  font-family: 'Inter UI';
  font-style:  italic;
  font-weight: 900;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI-BlackItalic.woff2?v=3.0") format("woff2"),
       url("font-files/Inter-UI-BlackItalic.woff?v=3.0") format("woff");
}

/*
------------------------------------------------------------------------------
Alternative to the above: Single variable font.

Note that you may want to do something like this to make sure you're serving
constant fonts to older browsers:

html {
  font-family: 'Inter UI', sans-serif;
}
@supports (font-variation-settings: normal) {
  html {
    font-family: 'Inter UI var', sans-serif;
  }
}

BUGS:
- Safari 12.0 will default to italic instead of regular when font-weight
  is provided in a @font-face declaration.
  Workaround: Use "Inter UI var safari-fix" for Safari, or explicitly set
  `font-variation-settings:"slnt" DEGREE`.
*/
@font-face {
  font-family: 'Inter UI var';
  font-weight: 400 900;
  font-style: oblique 0deg 10deg;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2");
}
@font-face {
  font-family: 'Inter UI var safari-fix';
  font-style: oblique 0deg 10deg;
  src: url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2-variations"),
       url("font-files/Inter-UI.var.woff2?v=3.0") format("woff2");
}