2019-02-04 06:15:12 +03:00
|
|
|
---
|
|
|
|
layout: none
|
|
|
|
---
|
2021-03-29 22:30:03 +03:00
|
|
|
{% assign font_v = site.data.fontinfo[0].version %}
|
2020-08-22 02:06:02 +03:00
|
|
|
/*
|
|
|
|
Font families defined by this CSS:
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
- "Inter" static "traditional" fonts for older web browsers
|
|
|
|
- "Inter var" single-axis variable fonts for all modern browsers
|
2022-05-26 21:20:06 +03:00
|
|
|
- "Inter var experimental" multi-axis variable fonts for some modern web browsers
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
Use like this in your CSS:
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
:root { font-family: 'Inter', sans-serif; }
|
|
|
|
@supports (font-variation-settings: normal) {
|
|
|
|
:root { font-family: 'Inter var', sans-serif; }
|
|
|
|
}
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
------------------------- static ------------------------- */
|
|
|
|
{% include Inter-static.css %}
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
/* ----------------------- variable ----------------------- */
|
2021-03-29 22:30:03 +03:00
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Inter var';
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 100 900;
|
|
|
|
font-display: swap;
|
|
|
|
src: url('font-files/Inter-roman.var.woff2?v={{font_v}}') format('woff2');
|
|
|
|
font-named-instance: 'Regular';
|
|
|
|
}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Inter var';
|
|
|
|
font-style: italic;
|
|
|
|
font-weight: 100 900;
|
|
|
|
font-display: swap;
|
|
|
|
src: url('font-files/Inter-italic.var.woff2?v={{font_v}}') format('woff2');
|
|
|
|
font-named-instance: 'Italic';
|
|
|
|
}
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
/* ----------- experimental multi-axis variable -----------
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
Slant axis is not yet widely supported (as of February 2019) and thus this
|
|
|
|
multi-axis single-file variable font is opt-in rather than the default.
|
|
|
|
When using this, you will likely need to set font-variation-settings explicitly, e.g:
|
|
|
|
* { font-variation-settings: "slnt" 0deg }
|
|
|
|
.italic { font-variation-settings: "slnt" 10deg }
|
2019-02-03 01:29:56 +03:00
|
|
|
*/
|
2021-03-29 22:30:03 +03:00
|
|
|
|
|
|
|
{%- comment -%}
|
2020-08-22 02:06:02 +03:00
|
|
|
{% include Inter.var.css %}
|
2021-03-29 22:30:03 +03:00
|
|
|
{%- endcomment %}
|
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Inter var experimental';
|
|
|
|
font-style: oblique 0deg 10deg;
|
|
|
|
font-weight: 100 900;
|
|
|
|
font-display: swap;
|
|
|
|
src: url('font-files/Inter.var.woff2?v={{font_v}}') format('woff2');
|
|
|
|
}
|
2019-02-03 01:29:56 +03:00
|
|
|
|
2020-08-22 02:06:02 +03:00
|
|
|
/* Legacy name (became legacy on Feb 2, 2019) */
|
2019-02-03 01:29:56 +03:00
|
|
|
@font-face {
|
|
|
|
font-family: 'Inter var alt';
|
|
|
|
font-weight: 100 900;
|
|
|
|
font-style: normal;
|
|
|
|
font-named-instance: 'Regular';
|
2019-08-04 02:24:54 +03:00
|
|
|
font-display: swap;
|
2020-08-20 21:18:18 +03:00
|
|
|
src: url("font-files/Inter-roman.var.woff2?v={{font_v}}") format("woff2");
|
2019-02-03 01:29:56 +03:00
|
|
|
}
|
|
|
|
@font-face {
|
|
|
|
font-family: 'Inter var alt';
|
|
|
|
font-weight: 100 900;
|
|
|
|
font-style: italic;
|
|
|
|
font-named-instance: 'Italic';
|
2019-08-04 02:24:54 +03:00
|
|
|
font-display: swap;
|
2020-08-20 21:18:18 +03:00
|
|
|
src: url("font-files/Inter-italic.var.woff2?v={{font_v}}") format("woff2");
|
2019-02-03 01:29:56 +03:00
|
|
|
}
|