Gathering detailed insights and metrics for fontsource-inter
Gathering detailed insights and metrics for fontsource-inter
Gathering detailed insights and metrics for fontsource-inter
Gathering detailed insights and metrics for fontsource-inter
@fontsource/inter
Self-host the Inter font in a neatly bundled NPM package.
@fontsource-variable/inter
Self-host the Inter font in a neatly bundled NPM package.
@fontsource/inter-tight
Self-host the Inter Tight font in a neatly bundled NPM package.
@fontsource-variable/inter-tight
Self-host the Inter Tight font in a neatly bundled NPM package.
Self-host Open Source fonts in neatly bundled NPM packages.
npm install fontsource-inter
Typescript
Module System
Node Version
NPM Version
76.4
Supply Chain
99
Quality
75.7
Maintenance
100
Vulnerability
100
License
TypeScript (82.31%)
MDX (11.66%)
CSS (5.66%)
JavaScript (0.34%)
Dockerfile (0.03%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
5,046 Stars
1,171 Commits
179 Forks
19 Watching
2 Branches
35 Contributors
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
fontsource-inter@4.0.0
Unpacked Size
5.13 MB
Size
5.00 MB
File Count
236
NPM Version
lerna/3.22.1/node@v12.18.3+x64 (linux)
Node Version
12.18.3
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
No dependencies detected.
The CSS and web font files to easily self-host the “Inter” font. Please visit the main Fontsource monorepo to view more details on this package.
Fontsource assumes you are using a bundler, such as Webpack, to load in CSS. Solutions like CRA, Gatsby and Next.js are prebuilt examples that are compatible.
1yarn add @fontsource/inter // npm install @fontsource/inter
Then within your app entry file or site component, import it in. For example in Gatsby, you could choose to import it into a layout template (layout.js
), page component (index.js
), or gatsby-browser.js
.
1import "@fontsource/inter" // Defaults to weight 400.
Fontsource allows you to select weights and even individual styles, allowing you to cut down on payload sizes to the last byte! Utilizing the CSS unicode-range selector, all language subsets are accounted for.
1import "@fontsource/inter/500.css" // Weight 500. 2import "@fontsource/inter/900-italic.css" // Italic variant.
Alternatively, the same solutions could be imported via SCSS!
1@import "~@fontsource/inter/index.css"; // Weight 400. 2@import "~@fontsource/inter/300-italic.css";
These examples may not reflect actual compatibility. Please refer below.
Supported variables:
[100,200,300,400,500,600,700,800,900]
[normal]
Finally, you can reference the font name in a CSS stylesheet, CSS Module, or CSS-in-JS.
1body { 2 font-family: "Inter"; 3}
This particular typeface supports variable fonts.
Begin by importing both the variable and fallback font for non-compatible browsers.
1import "@fontsource/inter/400.css" // Weight 400.
Select either a stripped down weights only variant of the font or a full feature variant that contains all the variable axes.
1import "@fontsource/inter/variable.css" // Contains ONLY variable weights and no other axes. 2import "@fontsource/inter/variable-italic.css" // Italic variant. 3// Or 4import "@fontsource/inter/variable-full.css" // This contains ALL variable axes. Font files are larger. 5import "@fontsource/inter/variable-full-italic.css" // Italic variant.
Note a full
or italic
variant may NOT exist if there are no additional axes other than wght and/or ital. You can check the available axes here.
Followed by the CSS using the @supports tag, which checks whether the browser is capable of utilising variable fonts. Fallback fonts and their relevant CSS should be used outside the block, whilst all variable options should be used within the @supports block and utilising the font-variation-settings tag.
1h1 { 2 font-family: Inter; 3 font-weight: 400; 4} 5 6@supports (font-variation-settings: normal) { 7 h1 { 8 font-family: InterVariable; 9 font-variation-settings: "wght" 400; 10 } 11}
To view the available variable axes that may be included in the font, click here. The meanings of all axes and the restrictions associated with them are explained there.
In the rare case you need to individually select a language subset and not utilize the CSS unicode-range selector, you may specify the import as follows. This is especially not recommended for languages, such as Japanese, with a large amount of characters.
1import "@fontsource/inter/latin-ext.css" // All weights with normal style included. 2import "@fontsource/inter/cyrillic-ext-500.css" // Weight 500 with normal style. 3import "@fontsource/inter/greek-900-italic.css" // Italic variant.
[cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese]
It is important to always read the license for every font that you use. Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fonts use the Apache 2 license. The Ubuntu fonts use the Ubuntu Font License v1.0.
Google Fonts License Attributions
Font version (provided by source): v2
.
Feel free to star and contribute new ideas to this repository that aim to improve the performance of font loading, as well as expanding the existing library we already have. Any suggestions or ideas can be voiced via an issue.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 4/28 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More