Gathering detailed insights and metrics for inter-ui
Gathering detailed insights and metrics for inter-ui
Gathering detailed insights and metrics for inter-ui
Gathering detailed insights and metrics for inter-ui
npm install inter-ui
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.9
Supply Chain
99.5
Quality
81
Maintenance
100
Vulnerability
93.6
License
CSS (59.05%)
SCSS (40.95%)
Total Downloads
7,766,924
Last Day
7,558
Last Week
56,641
Last Month
254,237
Last Year
2,895,373
114 Stars
137 Commits
7 Forks
4 Watching
2 Branches
10 Contributors
Latest Version
4.1.0
Package Id
inter-ui@4.1.0
Unpacked Size
5.92 MB
Size
5.90 MB
File Count
95
NPM Version
10.9.0
Node Version
22.11.0
Publised On
20 Nov 2024
Cumulative downloads
Total Downloads
Last day
-26.2%
7,558
Compared to previous day
Last week
-10.9%
56,641
Compared to previous week
Last month
-1.7%
254,237
Compared to previous month
Last year
20.5%
2,895,373
Compared to previous year
1
The CSS and web font files to easily self-host the Inter font family created by Rasmus Andersson.
This repository is just a means of more easily distributing the font. It tracks the releases of the main Inter repository as best as I am able. Note that this repository only contains the woff2
format but does generate and include latin-extended subsets for each font.
SCSS files are also available for use with the Sass preprocessor. The font-display
property can be overridden by setting $inter-font-display
to a valid font-display
value before importing the desired .scss
file.
1npm install --save inter-ui
Add the following to your SCSS to use the variable font with a non-variable fallback:
1@use "~inter-ui/default" with ( 2 $inter-font-display: swap, 3 $inter-font-path: '~inter-ui/web' 4); 5 6@use "~inter-ui/variable" with ( 7 $inter-font-display: swap, 8 $inter-font-path: '~inter-ui/variable' 9); 10 11@include default.all; 12@include variable.all; 13 14html { font-family: "Inter", "system-ui"; } 15 16@supports (font-variation-settings: normal) { 17 html { font-family: "InterVariable", "system-ui"; } 18}
Note that this @use
syntax is not currently supported in the node-sass or ruby sass implementations. We recommend using the primary sass implementation: dart sass.
We have pre-built CSS files that you can include directly (with font-display
being swap
).
Add the following to your script:
1import "inter-ui/inter.css"; 2// Or use one of those versions: 3// import "inter-ui/inter-latin.css"; // A subset of only English alphabet characters 4// import "inter-ui/inter-display.css"; // The display font is optimised for XL text 5// import "inter-ui/inter-display-latin.css"; 6// import "inter-ui/inter-variable.css"; 7// import "inter-ui/inter-variable-latin.css";
Add the following to your stylesheet:
1html { font-family: "Inter", "system-ui"; } 2 3@supports (font-variation-settings: normal) { 4 html { font-family: "InterVariable", "system-ui"; } /* If using the variable font */ 5}
To avoid having to import all "font faces". You can also use only some of them via SCSS.
If you only want 400 and 700 you can specify exactly this.
1@use "~inter-ui/default" as inter-ui with ( 2 $inter-font-path: "~inter-ui/web-latin" 3); 4@include inter-ui.weight-400; 5@include inter-ui.weight-700;
There are several versions you can choose from. To use them with the modules, just change the $inter-font-path
to e.g. Inter (web hinted)
or use the other pre-built CSS files.
As detailed in the main repo:
Inter font files comes in two versions:
- "unhinted" -- Without TrueType hints (the default)
- "hinted" -- With TrueType hints
The TrueType hints are used by ClearType on Windows machines where ClearType is enabled. This usually changes the appearance of the fonts and can in some cases increase the legibility of text.
Additionally, hints are little computer programs that takes up considerable disk space, meaning that font files with hints are larger than those without hints. This might be a consideration when using web fonts.
$inter-font-path
to Inter (web hinted)
or Inter (web hinted latin)
inter-ui/inter-hinted.css
or inter-ui/inter-hinted-latin.css
If you only need support for Latin characters, you can use this version. The normal Inter (web)
version average filesize is between 150kb and 100kb, the reduced Latin version is on average 30kb per font.
This was generated using glyphhanger. See package.json
for the build script.
$inter-font-path
to Inter (web latin)
or Inter (web hinted latin)
inter-ui/inter-latin.css
or inter-ui/inter-hinted-latin.css
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
Found 4/29 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-16
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