{"id":13563772,"url":"https://github.com/postcss/postcss-font-variant","last_synced_at":"2025-04-09T18:19:44.031Z","repository":{"id":19139151,"uuid":"22369164","full_name":"postcss/postcss-font-variant","owner":"postcss","description":"PostCSS plugin to transform W3C CSS font variant properties to more compatible CSS (font-feature-settings)","archived":false,"fork":false,"pushed_at":"2022-05-16T16:49:43.000Z","size":219,"stargazers_count":24,"open_issues_count":10,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T20:23:34.836Z","etag":null,"topics":[],"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/postcss.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":"2014-07-29T05:51:40.000Z","updated_at":"2025-01-21T00:36:00.000Z","dependencies_parsed_at":"2022-09-26T16:21:31.672Z","dependency_job_id":null,"html_url":"https://github.com/postcss/postcss-font-variant","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-font-variant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-font-variant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-font-variant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postcss%2Fpostcss-font-variant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postcss","download_url":"https://codeload.github.com/postcss/postcss-font-variant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657248,"owners_count":20974350,"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-08-01T13:01:23.133Z","updated_at":"2025-04-09T18:19:43.998Z","avatar_url":"https://github.com/postcss.png","language":"JavaScript","readme":"# PostCSS Font-Variant [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\"\u003e](https://github.com/postcss/postcss/)\n\n[![CSS Status](https://cssdb.org/badge/font-variant-property.svg)](https://cssdb.org/#font-variant-property)\n[![Build Status](https://travis-ci.org/postcss/postcss-font-variant.svg)](https://travis-ci.org/postcss/postcss-font-variant)\n\nPostCSS Font-Variant lets you use `font-variant` in CSS, following the\n[CSS Fonts](https://www.w3.org/TR/css-fonts-3/#font-variant-prop) specification.\n\n## Installation\n\n```console\n$ npm install postcss-font-variant\n```\n\n## Usage\n\n```js\n// dependencies\nvar postcss = require(\"postcss\")\nvar fontVariant = require(\"postcss-font-variant\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css using postcss-font-variant\nvar out = postcss()\n  .use(fontVariant())\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\nh2 {\n  font-variant-caps: small-caps;\n}\n\ntable {\n  font-variant-numeric: lining-nums;\n}\n```\n\nyou will get:\n\n```css\nh2 {\n  font-feature-settings: \"smcp\";\n  font-variant-caps: small-caps;\n}\n\ntable {\n  font-feature-settings: \"lnum\";\n  font-variant-numeric: lining-nums;\n}\n\n```\n\nCheckout [tests](test) for more examples.\n\n---\n\n## Contributing\n\nWork on a branch, install dev-dependencies, respect coding style \u0026 run tests before submitting a bug fix or a feature.\n\n    $ git clone https://github.com/postcss/postcss-font-variant.git\n    $ git checkout -b patch-1\n    $ npm install\n    $ npm test\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss%2Fpostcss-font-variant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostcss%2Fpostcss-font-variant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostcss%2Fpostcss-font-variant/lists"}