Skip to content

Commit c45d8fd

Browse files
edmunditorobbinhan
authored andcommitted
🪟 🧹 Update Inter font to use variable fonts (airbytehq#16926)
* Update Inter font styles to import variable version * Rename regular SCSS font var to primary * Remove non-standard css rule, add public to pre-commit linting
1 parent 70ecdd8 commit c45d8fd

23 files changed

+17
-65523
lines changed

airbyte-webapp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"src/**/*.{css,scss,md,json}": [
145145
"prettier --write"
146146
],
147-
"src/**/*.{css,scss}": [
147+
"{public,src}/**/*.{css,scss}": [
148148
"stylelint --fix"
149149
]
150150
},
-254 KB
Binary file not shown.

airbyte-webapp/public/fonts/inter/Inter-Bold.svg

-21,944
This file was deleted.
-288 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

airbyte-webapp/public/fonts/inter/Inter-Medium.svg

-22,001
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

airbyte-webapp/public/fonts/inter/Inter-Regular.svg

-21,523
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

airbyte-webapp/public/index.css

+10-48
Original file line numberDiff line numberDiff line change
@@ -31,63 +31,25 @@ noscript {
3131
color: #1A1A21;
3232
font-size: 18px;
3333
line-height: 22px;
34-
font-family: Inter, Arial, sans-serif;
34+
font-family: Inter, Helvetica, Arial, sans-serif;
3535
}
3636

37-
/* Regular Inter */
3837
@font-face {
39-
font-family: "Inter";
40-
src: url("/fonts/inter/Inter-Regular.eot"); /* IE9 Compat Modes */
41-
src: local("Inter"),
42-
url("/fonts/inter/Inter-Regular.eot?#iefix") format("embedded-opentype"),
43-
/* IE6-IE8 */ url("/fonts/inter/Inter-Regular.woff2") format("woff2"),
44-
/* Super Modern Browsers */ url("/fonts/inter/Inter-Regular.woff")
45-
format("woff"),
46-
/* Modern Browsers */ url("/fonts/inter/Inter-Regular.ttf")
47-
format("truetype"),
48-
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Regular.svg#OpenSans")
49-
format("svg"); /* Legacy iOS */
50-
51-
font-weight: normal;
52-
font-style: normal;
53-
}
54-
55-
/* Medium Inter */
56-
@font-face {
57-
font-family: "Inter";
58-
src: url("/fonts/inter/Inter-Medium.eot"); /* IE9 Compat Modes */
59-
src: local("Inter"),
60-
url("/fonts/inter/Inter-Medium.eot?#iefix") format("embedded-opentype"),
61-
/* IE6-IE8 */ url("/fonts/inter/Inter-Medium.woff2") format("woff2"),
62-
/* Super Modern Browsers */ url("/fonts/inter/Inter-Medium.woff")
63-
format("woff"),
64-
/* Modern Browsers */ url("/fonts/inter/Inter-Medium.ttf")
65-
format("truetype"),
66-
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Medium.svg#OpenSans")
67-
format("svg"); /* Legacy iOS */
68-
69-
font-weight: 500;
38+
font-family: 'Inter';
39+
font-weight: 100 900;
40+
font-display: swap;
7041
font-style: normal;
42+
src: url("/fonts/inter/Inter-roman.var.woff2?v=3.19") format("woff2");
7143
}
7244

73-
/* Bold Inter */
7445
@font-face {
75-
font-family: "Inter";
76-
src: url("/fonts/inter/Inter-Bold.eot"); /* IE9 Compat Modes */
77-
src: local("Inter"),
78-
url("/fonts/inter/Inter-Bold.eot?#iefix") format("embedded-opentype"),
79-
/* IE6-IE8 */ url("/fonts/inter/Inter-Bold.woff2") format("woff2"),
80-
/* Super Modern Browsers */ url("/fonts/inter/Inter-Bold.woff")
81-
format("woff"),
82-
/* Modern Browsers */ url("/fonts/inter/Inter-Bold.ttf") format("truetype"),
83-
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Bold.svg#OpenSans")
84-
format("svg"); /* Legacy iOS */
85-
86-
font-weight: bold;
87-
font-style: normal;
46+
font-family: 'Inter';
47+
font-weight: 100 900;
48+
font-display: swap;
49+
font-style: italic;
50+
src: url("/fonts/inter/Inter-italic.var.woff2?v=3.19") format("woff2");
8851
}
8952

90-
9153
/* Regular Roboto Mono */
9254
@font-face {
9355
font-family: "Roboto Mono";

airbyte-webapp/src/components/ImageBlock/ImageBlock.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
.number {
51-
font-family: fonts.$regularFont;
51+
font-family: fonts.$primary;
5252
font-style: normal;
5353
font-weight: 600;
5454
font-size: 10px;

airbyte-webapp/src/packages/cloud/views/auth/components/PersonQuoteCover/PersonQuoteCover.module.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
.quote {
5151
margin: 0;
5252
color: colors.$white;
53-
font-family: fonts.$regularFont;
53+
font-family: fonts.$primary;
5454
font-weight: 400;
5555
font-size: 17px;
5656
line-height: 28px;
@@ -80,15 +80,15 @@
8080

8181
.quoteAuthorFullName {
8282
color: colors.$white;
83-
font-family: fonts.$regularFont;
83+
font-family: fonts.$primary;
8484
font-weight: 500;
8585
font-size: 14px;
8686
margin-bottom: 0;
8787
}
8888

8989
.quoteAuthorJobTitle {
9090
color: colors.$white;
91-
font-family: fonts.$regularFont;
91+
font-family: fonts.$primary;
9292
font-weight: 700;
9393
font-size: 18px;
9494
margin: 10px 0;

airbyte-webapp/src/scss/_fonts.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
$regularFont: Inter, Arial, sans-serif;
1+
$primary: Inter, Helvetica, Arial, sans-serif;
22
$monospace: "Roboto Mono", Menlo, Monaco, Consolas, monospace;

airbyte-webapp/src/scss/export.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@
117117
transparentColor: colors.$transparentColor;
118118

119119
// Fonts
120-
regularFont: fonts.$regularFont;
120+
regularFont: fonts.$primary;
121121
}

0 commit comments

Comments
 (0)