{"id":15511743,"url":"https://github.com/imsus/tailwind-plugin-font-inter","last_synced_at":"2025-10-11T05:04:40.087Z","repository":{"id":47409263,"uuid":"159045810","full_name":"imsus/tailwind-plugin-font-inter","owner":"imsus","description":"🔠 TailwindCSS Plugin to integrate with Inter UI Typeface.","archived":false,"fork":false,"pushed_at":"2023-01-04T01:38:39.000Z","size":972,"stargazers_count":12,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T14:21:41.105Z","etag":null,"topics":["inter-ui-typeface","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imsus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-25T15:25:16.000Z","updated_at":"2023-04-23T12:57:41.000Z","dependencies_parsed_at":"2023-02-01T17:30:24.832Z","dependency_job_id":null,"html_url":"https://github.com/imsus/tailwind-plugin-font-inter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsus%2Ftailwind-plugin-font-inter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsus%2Ftailwind-plugin-font-inter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsus%2Ftailwind-plugin-font-inter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imsus%2Ftailwind-plugin-font-inter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imsus","download_url":"https://codeload.github.com/imsus/tailwind-plugin-font-inter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799999,"owners_count":21163404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["inter-ui-typeface","tailwindcss-plugin"],"created_at":"2024-10-02T09:53:12.182Z","updated_at":"2025-10-11T05:04:35.044Z","avatar_url":"https://github.com/imsus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"border-bottom: 0\"\u003e🔠 Tailwind Inter UI\u003c/h1\u003e\n\u003cp align=\"center\"\u003eTailwindCSS Plugin to integrate with Inter UI Typeface from \u003ca href=\"https://twitter.com/rsms\"\u003eRasmus Andersson @rsms\u003c/a\u003e.\u003cp\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/imsus\"\u003e\u003cimg src=\"https://flat.badgen.net/badge/author/@imsus/purple?icon=github\" alt=\"author badge with @imsus written on it\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## ⭐️ Features\n\n- Auto add `@font-face` with `display: swap`\n- **Dynamic Metrics** utilities based on https://rsms.me/inter/dynmetrics/\n\n## ⬇️ Installation\n\n- `npm install --save-dev tailwind-plugin-font-inter` OR\n- `yarn add --dev tailwind-plugin-font-inter`\n\n## ✅ Usage\n\n1. Go to your TailwindCSS Configuration usually named `tailwind.js`\n2. In your `tailwind.js` file, uncomment the line with this code `let defaultConfig = require('tailwindcss/defaultConfig')();`\n3. Go to `plugins` keyword. Then add `require('@imsus/tailwind-plugin-font-inter')(defaultConfig.textSizes)` inside the array.\n\n## 🖥 Output\n\nThis package will generate CSS on components section and utilities section.\n\n### On `components` Section\n\nThis will add some `@font-face` declaration and adding `.font-inter` class.\n\n```css\n/* Will be generated on @tailwind components; */\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 400;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 400;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 500;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 500;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 600;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 600;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 700;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 700;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 800;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 800;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: normal;\n  font-weight: 900;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI;\n  font-style: italic;\n  font-weight: 900;\n  font-display: swap;\n  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\");\n}\n\n@font-face {\n  font-family: Inter UI var;\n  font-style: oblique 0deg 10deg;\n  font-weight: 400 900;\n  font-display: swap;\n  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\");\n}\n\n.font-inter {\n  font-family: \"Inter UI\", sans-serif;\n}\n\n@supports(font-variation-settings:normal) {\n  .font-inter {\n    font-family: \"Inter UI var\", sans-serif;\n  }\n}\n```\n\n## On `utilities` section\n\nReplace standard `text-lg` into `text-inter-lg` to get **Dynamic Metrics** applied to your `text` class.\n\n```css\n/* Will be generated on @tailwind utilities; */\n\n.text-inter-xs {\n  font-size: .75rem;\n  letter-spacing: .16rem;\n  line-height: 1.05rem;\n}\n\n.text-inter-sm {\n  font-size: .875rem;\n  letter-spacing: .16rem;\n  line-height: 1.225rem;\n}\n\n.text-inter-base {\n  font-size: 1rem;\n  letter-spacing: .15rem;\n  line-height: 1.4rem;\n}\n\n.text-inter-lg {\n  font-size: 1.125rem;\n  letter-spacing: .15rem;\n  line-height: 1.575rem;\n}\n\n.text-inter-xl {\n  font-size: 1.25rem;\n  letter-spacing: .15rem;\n  line-height: 1.75rem;\n}\n\n.text-inter-2xl {\n  font-size: 1.5rem;\n  letter-spacing: .14rem;\n  line-height: 2.1rem;\n}\n\n.text-inter-3xl {\n  font-size: 1.875rem;\n  letter-spacing: .13rem;\n  line-height: 2.625rem;\n}\n\n.text-inter-4xl {\n  font-size: 2.25rem;\n  letter-spacing: .12rem;\n  line-height: 3.15rem;\n}\n\n.text-inter-5xl {\n  font-size: 3rem;\n  letter-spacing: .1rem;\n  line-height: 4.2rem;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsus%2Ftailwind-plugin-font-inter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimsus%2Ftailwind-plugin-font-inter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimsus%2Ftailwind-plugin-font-inter/lists"}