{"id":18882438,"url":"https://github.com/7studio/postcss-minify-font-values","last_synced_at":"2026-02-21T13:30:15.229Z","repository":{"id":150176206,"uuid":"45245518","full_name":"7studio/postcss-minify-font-values","owner":"7studio","description":"Minify font declarations with PostCSS","archived":false,"fork":false,"pushed_at":"2015-10-08T07:48:59.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T03:42:56.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/7studio.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-10-30T10:48:59.000Z","updated_at":"2021-11-18T09:21:33.000Z","dependencies_parsed_at":"2023-04-09T06:40:51.374Z","dependency_job_id":null,"html_url":"https://github.com/7studio/postcss-minify-font-values","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7studio%2Fpostcss-minify-font-values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7studio%2Fpostcss-minify-font-values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7studio%2Fpostcss-minify-font-values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7studio%2Fpostcss-minify-font-values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7studio","download_url":"https://codeload.github.com/7studio/postcss-minify-font-values/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239850432,"owners_count":19707349,"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":[],"created_at":"2024-11-08T06:58:25.246Z","updated_at":"2026-02-21T13:30:15.170Z","avatar_url":"https://github.com/7studio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-minify-font-values [![Build Status][ci-img]][ci]\n\n\u003e Minify font declarations with PostCSS.\n\nThis module will try to minimise the `font-family`, `font-weight` and `font` shorthand\nproperties; it can unquote font families where necessary, detect \u0026 remove\nduplicates, and cut short a declaration after it finds a keyword. For more\nexamples, see the [tests](test).\n\n```css\nh1 {\n  font:bold 2.2rem/.9 \"Open Sans Condensed\", sans-serif;\n}\n\np {\n  font-family: \"Helvetica Neue\", Arial, sans-serif, Helvetica;\n  font-weight: normal;\n}\n```\n\n```css\nh1 {\n  font:700 2.2rem/.9 Open Sans Condensed,sans-serif\n}\n\np {\n  font-family: Helvetica Neue,Arial,sans-serif;\n  font-weight: 400;\n}\n```\n\n## API\n\n### minifyFontValues([options])\n\n#### options\n\n##### removeAfterKeyword\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable the module from removing font families after it\nencounters a font keyword, for example `sans-serif`.\n\n##### removeDuplicates\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable the module from removing duplicated font families.\n\n##### removeQuotes\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable the module from removing quotes from font families.\nNote that oftentimes, this is a *safe optimisation* \u0026 is done safely. For more\ndetails, see [Mathias Bynens' article][mathias].\n\n## Usage\n\n```js\npostcss([ require('postcss-minify-font-values') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\nMIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)\n\n[mathias]: https://mathiasbynens.be/notes/unquoted-font-family\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/TrySound/postcss-minify-font-values.svg\n[ci]:      https://travis-ci.org/TrySound/postcss-minify-font-values\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7studio%2Fpostcss-minify-font-values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7studio%2Fpostcss-minify-font-values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7studio%2Fpostcss-minify-font-values/lists"}