Updated type to match upcoming app redesign

This commit is contained in:
ポール ウェッブ 2018-10-03 16:53:39 -05:00
parent 4aee87d427
commit 5eb34e3b47
13 changed files with 74 additions and 2 deletions

BIN
app/dist/type/inter/400.woff vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/400.woff2 vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/400i.woff vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/400i.woff2 vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/700.woff vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/700.woff2 vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/700i.woff vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/700i.woff2 vendored Normal file

Binary file not shown.

BIN
app/dist/type/inter/variable.woff2 vendored Normal file

Binary file not shown.

View file

@ -8,6 +8,7 @@
"init/extends",
"type/karla",
"type/inter",
"partials/animation",
"partials/ecosystem",

View file

@ -7,7 +7,7 @@
@mixin font-sans {
font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-family: "Inter UI", Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
@mixin font-serif {
@ -15,7 +15,7 @@
}
@mixin font-mono {
font-family: "Courier New", monospace;
font-family: "Input Mono", "Fira Mono", "Fira Code", "Courier New", monospace;
}

View file

@ -27,4 +27,8 @@ pre {
color: $white;
}
}
code {
@include font-mono;
}
}

67
app/sass/type/_inter.scss Normal file
View file

@ -0,0 +1,67 @@
// 400
@font-face {
font-family: "Inter UI";
font-style: normal;
font-weight: 400;
src: url("../assets/type/inter/variable.woff2") format("woff2-variations"),
url("../assets/type/inter/400.woff2") format("woff2"),
url("../assets/type/inter/400.woff") format("woff");
}
@font-face {
font-family: "Inter UI";
font-style: italic;
font-weight: 400;
src: url("../assets/type/inter/variable.woff2") format("woff2-variations"),
url("../assets/type/inter/400i.woff2") format("woff2"),
url("../assets/type/inter/400i.woff") format("woff");
}
// 700
@font-face {
font-family: "Inter UI";
font-style: normal;
font-weight: 700;
src: url("../assets/type/inter/variable.woff2") format("woff2-variations"),
url("../assets/type/inter/700.woff2") format("woff2"),
url("../assets/type/inter/700.woff") format("woff");
}
@font-face {
font-family: "Inter UI";
font-style: italic;
font-weight: 700;
src: url("../assets/type/inter/variable.woff2") format("woff2-variations"),
url("../assets/type/inter/700i.woff2") format("woff2"),
url("../assets/type/inter/700i.woff") format("woff");
}
/*
Note that you may want to do something like this to make sure you are serving
constant fonts to older browsers:
html {
font-family: "Inter UI", sans-serif;
}
@supports (font-variation-settings: normal) {
html {
font-family: "Inter UI Variable", sans-serif;
}
}
*/
// Single variable font
@font-face {
font-family: "Inter UI Variable";
font-weight: 400 900;
src: url("../assets/type/inter/variable.woff2") format("woff2-variations"),
url("../assets/type/inter/variable.woff2") format("woff2");
}