Skip to content

Inter Variable

Terminal window
npm install @fontsource-variable/inter

Import this into your global CSS file. Your bundler will automatically rewrite the URL into a useable asset:

/* inter-latin-wght-normal */
@font-face {
font-family: 'Inter Variable';
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url(@fontsource-variable/inter/files/inter-latin-wght-normal.woff2) format('woff2-variations');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

Then include the following CSS in your project:

<style is:global>
body {
font-family: 'Inter Variable', sans-serif;
}
</style>