{"id":45974811,"url":"https://github.com/sedlukha/postcss-interpolate","last_synced_at":"2026-02-28T16:03:41.681Z","repository":{"id":57144168,"uuid":"82734127","full_name":"sedlukha/postcss-interpolate","owner":"sedlukha","description":"PostCSS plugin for values interpolation between breakpoints.","archived":false,"fork":false,"pushed_at":"2017-04-11T14:25:10.000Z","size":28,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T11:44:29.052Z","etag":null,"topics":["css","postcss","postcss-interpolate","postcss-plugin","typography"],"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/sedlukha.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-21T22:35:41.000Z","updated_at":"2023-09-20T10:51:02.000Z","dependencies_parsed_at":"2022-09-06T08:53:49.379Z","dependency_job_id":null,"html_url":"https://github.com/sedlukha/postcss-interpolate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sedlukha/postcss-interpolate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedlukha%2Fpostcss-interpolate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedlukha%2Fpostcss-interpolate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedlukha%2Fpostcss-interpolate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedlukha%2Fpostcss-interpolate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sedlukha","download_url":"https://codeload.github.com/sedlukha/postcss-interpolate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sedlukha%2Fpostcss-interpolate/sbom","scorecard":{"id":809283,"data":{"date":"2025-08-11","repo":{"name":"github.com/sedlukha/postcss-interpolate","commit":"c58cac6b105e7b83ab6613ae499e3d238fd34005"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T12:40:33.498Z","repository_id":57144168,"created_at":"2025-08-23T12:40:33.498Z","updated_at":"2025-08-23T12:40:33.498Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29941802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css","postcss","postcss-interpolate","postcss-plugin","typography"],"created_at":"2026-02-28T16:03:41.149Z","updated_at":"2026-02-28T16:03:41.603Z","avatar_url":"https://github.com/sedlukha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS-Interpolate\n\n\u003e[PostCSS] plugin for values interpolation between breakpoints.\n\n[PostCSS]: https://github.com/postcss/postcss\n\nThis plugin made for automatically interpolation of property values between breakpoints. You can specify as much breakpoints, as you need.\n\nUse this plugin for any __px/rem__ value interpolation (font-size, padding, margin and other). It __doesn't__ work with __%__ and __em__.\n\n![](https://media.giphy.com/media/3og0IQyIEtGJYrCPNm/giphy.gif)\n\nInspired by this [draft].\n\n[draft]: https://github.com/w3c/csswg-drafts/issues/581\n\n## Installation\n\n```\n$ npm i --save-dev postcss-interpolate\n```\n\n## Syntax\n\n`interpolate(direction, mediaquery-1, value-1, ... mediaquery-n, value-n)`\n\n`direction`\n  * __none__ — if you will not specify direction, plugin will you __vertically__ as defaul direction\n  * __vertically__ or __vw__ — default derection.\n  * __horizontally__ or __vh__\n\n\n`mediaquery`\n  works only with **px** units\n\n`value`\n  works only with **px** or **rem** units\n\n\n## Examples\nMore examples at the tests folder.\n\n![](https://media.giphy.com/media/3og0IOnvXx4GLSkG40/giphy.gif)\n```css\n/* Input */\n.foo {\n  font-size: interpolate(320px, 10px, 600px, 40px, 1200px, 10px);\n}\n\n/* Output */\n.foo {\n  font-size:  10px;\n}\n@media screen and (min-width: 320px) {\n  .foo {\n    font-size: calc( 10px + 30 * (100vw - 320px) / 280);\n  }\n}\n@media screen and (min-width:  600px) {\n  .foo {\n    font-size: calc( 40px + -30 * (100vw -  600px) / 600);\n  }\n}\n@media screen and (min-width:  1200px) {\n  .foo {\n    font-size:  10px;\n  }\n}\n```\n\nPadding example\n\n![](https://media.giphy.com/media/3og0IKBuh7cKgaOxc4/giphy.gif)\n```css\n/* Input */\n.foo {\n  padding-top: interpolate(320px, 5px, 600px, 80px, 1200px, 5px);\n}\n\n/* Output */\n.foo {\n  padding-top:  5px;\n}\n@media screen and (min-width: 320px) {\n  .foo {\n    padding-top: calc( 5px + 75 * (100vw - 320px) / 280);\n  }\n}\n@media screen and (min-width:  600px) {\n  .foo {\n    padding-top: calc( 80px + -75 * (100vw -  600px) / 600);\n  }\n}\n@media screen and (min-width:  1200px) {\n  .foo {\n    padding-top:  5px;\n  }\n}\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-interpolate') ])\n```\n\nIf you are using **postcss-cssnext**, please, turn off pxrem plugin\n```js\npostcssInterpolate(),\npostcssCssnext({\n  features: {\n    rem: false,\n  }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedlukha%2Fpostcss-interpolate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsedlukha%2Fpostcss-interpolate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsedlukha%2Fpostcss-interpolate/lists"}