Skip to content

Commit

Permalink
🪟 🧹 Update Inter font to use variable fonts (#16926)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
edmundito committed Sep 22, 2022
1 parent 550dfb9 commit 810d3a1
Show file tree
Hide file tree
Showing 23 changed files with 17 additions and 65,523 deletions.
2 changes: 1 addition & 1 deletion airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"src/**/*.{css,scss,md,json}": [
"prettier --write"
],
"src/**/*.{css,scss}": [
"{public,src}/**/*.{css,scss}": [
"stylelint --fix"
]
},
Expand Down
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Bold.eot
Binary file not shown.
21,944 changes: 0 additions & 21,944 deletions airbyte-webapp/public/fonts/inter/Inter-Bold.svg

This file was deleted.

Binary file removed airbyte-webapp/public/fonts/inter/Inter-Bold.ttf
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Bold.woff
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Bold.woff2
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Medium.eot
Binary file not shown.
22,001 changes: 0 additions & 22,001 deletions airbyte-webapp/public/fonts/inter/Inter-Medium.svg

This file was deleted.

Binary file removed airbyte-webapp/public/fonts/inter/Inter-Medium.ttf
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Medium.woff
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Medium.woff2
Binary file not shown.
Binary file removed airbyte-webapp/public/fonts/inter/Inter-Regular.eot
Binary file not shown.
21,523 changes: 0 additions & 21,523 deletions airbyte-webapp/public/fonts/inter/Inter-Regular.svg

This file was deleted.

Binary file removed airbyte-webapp/public/fonts/inter/Inter-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
58 changes: 10 additions & 48 deletions airbyte-webapp/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,63 +31,25 @@ noscript {
color: #1A1A21;
font-size: 18px;
line-height: 22px;
font-family: Inter, Arial, sans-serif;
font-family: Inter, Helvetica, Arial, sans-serif;
}

/* Regular Inter */
@font-face {
font-family: "Inter";
src: url("/fonts/inter/Inter-Regular.eot"); /* IE9 Compat Modes */
src: local("Inter"),
url("/fonts/inter/Inter-Regular.eot?#iefix") format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/inter/Inter-Regular.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/inter/Inter-Regular.woff")
format("woff"),
/* Modern Browsers */ url("/fonts/inter/Inter-Regular.ttf")
format("truetype"),
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Regular.svg#OpenSans")
format("svg"); /* Legacy iOS */

font-weight: normal;
font-style: normal;
}

/* Medium Inter */
@font-face {
font-family: "Inter";
src: url("/fonts/inter/Inter-Medium.eot"); /* IE9 Compat Modes */
src: local("Inter"),
url("/fonts/inter/Inter-Medium.eot?#iefix") format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/inter/Inter-Medium.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/inter/Inter-Medium.woff")
format("woff"),
/* Modern Browsers */ url("/fonts/inter/Inter-Medium.ttf")
format("truetype"),
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Medium.svg#OpenSans")
format("svg"); /* Legacy iOS */

font-weight: 500;
font-family: 'Inter';
font-weight: 100 900;
font-display: swap;
font-style: normal;
src: url("/fonts/inter/Inter-roman.var.woff2?v=3.19") format("woff2");
}

/* Bold Inter */
@font-face {
font-family: "Inter";
src: url("/fonts/inter/Inter-Bold.eot"); /* IE9 Compat Modes */
src: local("Inter"),
url("/fonts/inter/Inter-Bold.eot?#iefix") format("embedded-opentype"),
/* IE6-IE8 */ url("/fonts/inter/Inter-Bold.woff2") format("woff2"),
/* Super Modern Browsers */ url("/fonts/inter/Inter-Bold.woff")
format("woff"),
/* Modern Browsers */ url("/fonts/inter/Inter-Bold.ttf") format("truetype"),
/* Safari, Android, iOS */ url("/fonts/inter/Inter-Bold.svg#OpenSans")
format("svg"); /* Legacy iOS */

font-weight: bold;
font-style: normal;
font-family: 'Inter';
font-weight: 100 900;
font-display: swap;
font-style: italic;
src: url("/fonts/inter/Inter-italic.var.woff2?v=3.19") format("woff2");
}


/* Regular Roboto Mono */
@font-face {
font-family: "Roboto Mono";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

.number {
font-family: fonts.$regularFont;
font-family: fonts.$primary;
font-style: normal;
font-weight: 600;
font-size: 10px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
.quote {
margin: 0;
color: colors.$white;
font-family: fonts.$regularFont;
font-family: fonts.$primary;
font-weight: 400;
font-size: 17px;
line-height: 28px;
Expand Down Expand Up @@ -80,15 +80,15 @@

.quoteAuthorFullName {
color: colors.$white;
font-family: fonts.$regularFont;
font-family: fonts.$primary;
font-weight: 500;
font-size: 14px;
margin-bottom: 0;
}

.quoteAuthorJobTitle {
color: colors.$white;
font-family: fonts.$regularFont;
font-family: fonts.$primary;
font-weight: 700;
font-size: 18px;
margin: 10px 0;
Expand Down
2 changes: 1 addition & 1 deletion airbyte-webapp/src/scss/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$regularFont: Inter, Arial, sans-serif;
$primary: Inter, Helvetica, Arial, sans-serif;
$monospace: "Roboto Mono", Menlo, Monaco, Consolas, monospace;
2 changes: 1 addition & 1 deletion airbyte-webapp/src/scss/export.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
transparentColor: colors.$transparentColor;

// Fonts
regularFont: fonts.$regularFont;
regularFont: fonts.$primary;
}

0 comments on commit 810d3a1

Please sign in to comment.