Gathering detailed insights and metrics for @imsus/tailwind-plugin-font-inter
Gathering detailed insights and metrics for @imsus/tailwind-plugin-font-inter
Gathering detailed insights and metrics for @imsus/tailwind-plugin-font-inter
Gathering detailed insights and metrics for @imsus/tailwind-plugin-font-inter
🔠 TailwindCSS Plugin to integrate with Inter UI Typeface.
npm install @imsus/tailwind-plugin-font-inter
Typescript
Module System
JavaScript (93.42%)
CSS (4.57%)
HTML (2.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
12 Stars
11 Commits
12 Branches
1 Contributors
Updated on Apr 23, 2023
Latest Version
0.3.0
Package Id
@imsus/tailwind-plugin-font-inter@0.3.0
Unpacked Size
44.06 kB
Size
10.63 kB
File Count
15
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
TailwindCSS Plugin to integrate with Inter UI Typeface from Rasmus Andersson @rsms.
@font-face
with display: swap
npm install --save-dev tailwind-plugin-font-inter
ORyarn add --dev tailwind-plugin-font-inter
tailwind.js
tailwind.js
file, uncomment the line with this code let defaultConfig = require('tailwindcss/defaultConfig')();
plugins
keyword. Then add require('@imsus/tailwind-plugin-font-inter')(defaultConfig.textSizes)
inside the array.This package will generate CSS on components section and utilities section.
components
SectionThis will add some @font-face
declaration and adding .font-inter
class.
1/* Will be generated on @tailwind components; */ 2 3@font-face { 4 font-family: Inter UI; 5 font-style: normal; 6 font-weight: 400; 7 font-display: swap; 8 src: url("https://rsms.me/inter/font-files/Inter-UI-Regular.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-Regular.woff?v=3.1") format("woff"); 9} 10 11@font-face { 12 font-family: Inter UI; 13 font-style: italic; 14 font-weight: 400; 15 font-display: swap; 16 src: url("https://rsms.me/inter/font-files/Inter-UI-Italic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-Italic.woff?v=3.1") format("woff"); 17} 18 19@font-face { 20 font-family: Inter UI; 21 font-style: normal; 22 font-weight: 500; 23 font-display: swap; 24 src: url("https://rsms.me/inter/font-files/Inter-UI-Medium.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-Medium.woff?v=3.1") format("woff"); 25} 26 27@font-face { 28 font-family: Inter UI; 29 font-style: italic; 30 font-weight: 500; 31 font-display: swap; 32 src: url("https://rsms.me/inter/font-files/Inter-UI-MediumItalic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-MediumItalic.woff?v=3.1") format("woff"); 33} 34 35@font-face { 36 font-family: Inter UI; 37 font-style: normal; 38 font-weight: 600; 39 font-display: swap; 40 src: url("https://rsms.me/inter/font-files/Inter-UI-SemiBold.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-SemiBold.woff?v=3.1") format("woff"); 41} 42 43@font-face { 44 font-family: Inter UI; 45 font-style: italic; 46 font-weight: 600; 47 font-display: swap; 48 src: url("https://rsms.me/inter/font-files/Inter-UI-SemiBoldItalic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-SemiBoldItalic.woff?v=3.1") format("woff"); 49} 50 51@font-face { 52 font-family: Inter UI; 53 font-style: normal; 54 font-weight: 700; 55 font-display: swap; 56 src: url("https://rsms.me/inter/font-files/Inter-UI-Bold.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-Bold.woff?v=3.1") format("woff"); 57} 58 59@font-face { 60 font-family: Inter UI; 61 font-style: italic; 62 font-weight: 700; 63 font-display: swap; 64 src: url("https://rsms.me/inter/font-files/Inter-UI-BoldItalic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-BoldItalic.woff?v=3.1") format("woff"); 65} 66 67@font-face { 68 font-family: Inter UI; 69 font-style: normal; 70 font-weight: 800; 71 font-display: swap; 72 src: url("https://rsms.me/inter/font-files/Inter-UI-ExtraBold.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-ExtraBold.woff?v=3.1") format("woff"); 73} 74 75@font-face { 76 font-family: Inter UI; 77 font-style: italic; 78 font-weight: 800; 79 font-display: swap; 80 src: url("https://rsms.me/inter/font-files/Inter-UI-ExtraBoldItalic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-ExtraBoldItalic.woff?v=3.1") format("woff"); 81} 82 83@font-face { 84 font-family: Inter UI; 85 font-style: normal; 86 font-weight: 900; 87 font-display: swap; 88 src: url("https://rsms.me/inter/font-files/Inter-UI-Black.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-Black.woff?v=3.1") format("woff"); 89} 90 91@font-face { 92 font-family: Inter UI; 93 font-style: italic; 94 font-weight: 900; 95 font-display: swap; 96 src: url("https://rsms.me/inter/font-files/Inter-UI-BlackItalic.woff2?v=3.1") format("woff2"), url("https://rsms.me/inter/font-files/Inter-UI-BlackItalic.woff?v=3.1") format("woff"); 97} 98 99@font-face { 100 font-family: Inter UI var; 101 font-style: oblique 0deg 10deg; 102 font-weight: 400 900; 103 font-display: swap; 104 src: url("https://rsms.me/inter/font-files/Inter-UI.var.woff2?v=3.1") format("woff2-variations"), url("https://rsms.me/inter/font-files/Inter-UI.var.woff2?v=3.1") format("woff2"); 105} 106 107.font-inter { 108 font-family: "Inter UI", sans-serif; 109} 110 111@supports(font-variation-settings:normal) { 112 .font-inter { 113 font-family: "Inter UI var", sans-serif; 114 } 115}
utilities
sectionReplace standard text-lg
into text-inter-lg
to get Dynamic Metrics applied to your text
class.
1/* Will be generated on @tailwind utilities; */ 2 3.text-inter-xs { 4 font-size: .75rem; 5 letter-spacing: .16rem; 6 line-height: 1.05rem; 7} 8 9.text-inter-sm { 10 font-size: .875rem; 11 letter-spacing: .16rem; 12 line-height: 1.225rem; 13} 14 15.text-inter-base { 16 font-size: 1rem; 17 letter-spacing: .15rem; 18 line-height: 1.4rem; 19} 20 21.text-inter-lg { 22 font-size: 1.125rem; 23 letter-spacing: .15rem; 24 line-height: 1.575rem; 25} 26 27.text-inter-xl { 28 font-size: 1.25rem; 29 letter-spacing: .15rem; 30 line-height: 1.75rem; 31} 32 33.text-inter-2xl { 34 font-size: 1.5rem; 35 letter-spacing: .14rem; 36 line-height: 2.1rem; 37} 38 39.text-inter-3xl { 40 font-size: 1.875rem; 41 letter-spacing: .13rem; 42 line-height: 2.625rem; 43} 44 45.text-inter-4xl { 46 font-size: 2.25rem; 47 letter-spacing: .12rem; 48 line-height: 3.15rem; 49} 50 51.text-inter-5xl { 52 font-size: 3rem; 53 letter-spacing: .1rem; 54 line-height: 4.2rem; 55}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/11 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
76 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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