{"_id":"@csstools/postcss-system-ui-font-family@2.0.2","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"462af1a8700b090e08bbc0c3523895bce7b11e84","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-system-ui-font-family/download/@csstools/postcss-system-ui-font-family-2.0.2.tgz","fileCount":6,"integrity":"sha512-AtISq6ysfJpzZe/3B8XAim5VJuNqU+s1KWOdlUzAePIPV6urkdnB3pvI0iEcdwKim4W0vmvsjW6B9CBQy9FiXw==","signatures":[{"sig":"MEYCIQCkxO/U7icRlqqH9KB5YjYEXuprBY6Dt7pAXOWtmhyrxAIhAMxOW5ex7/xY46gPys9LRHDiDjmE5GUp70HEi4fxX91n","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD8YRUOnH68tTIDLz44IAt58Q9o7PjzH68rXpW8RY2jUgIgZQuubXrSSTvXsROj7OWNwMEDIJcH5XjpD0HfiO5p2Gg="}],"unpackedSize":6526,"size":2914,"noattachment":false,"key":"/@csstools/postcss-system-ui-font-family/-/@csstools/postcss-system-ui-font-family-2.0.2.tgz"},"name":"@csstools/postcss-system-ui-font-family","type":"module","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"d5145aab6da0d9e7b7de80039ad36be97a3988fc","license":"MIT-0","scripts":{},"version":"2.0.2","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-system-ui-font-family#readme","keywords":["css","font-family","postcss","postcss-plugin","system-ui"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-system-ui-font-family"},"_npmVersion":"11.13.0","description":"Use the `system-ui` keyword","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_nodeVersion":"26.1.0","contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"dependencies":{"@csstools/css-tokenizer":"^4.0.2","@csstools/css-parser-algorithms":"^4.0.2"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-system-ui-font-family_2.0.2_1790835249675_0.2605582081794746"},"readme":"# PostCSS System UI Font Family [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-system-ui-font-family --save-dev`\n\n[PostCSS System UI Font Family] lets you use the `system-ui` keyword following the [CSS Fonts 4 Specification].\n\n```css\n.foo {\n\tfont: italic bold 12px/30px system-ui;\n\tfont-family: system-ui;\n\t--font-family: system-ui;\n}\n\n/* becomes */\n\n.foo {\n\tfont: italic bold 12px/30px system-ui;\n\tfont-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;\n\t--font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;\n}\n```\n\n## Usage\n\nAdd [PostCSS System UI Font Family] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-system-ui-font-family --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssSystemUIFontFamily = require('@csstools/postcss-system-ui-font-family');\n\npostcss([\n\tpostcssSystemUIFontFamily(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is preserved.\n\n```js\npostcssSystemUIFontFamily({ preserve: false })\n```\n\n```css\n.foo {\n\tfont: italic bold 12px/30px system-ui;\n\tfont-family: system-ui;\n\t--font-family: system-ui;\n}\n\n/* becomes */\n\n.foo {\n\tfont: italic bold 12px/30px system-ui;\n\tfont-family: -apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;\n\t--font-family: -apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;\n}\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#system-ui-font-family\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-system-ui-font-family\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS System UI Font Family]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-system-ui-font-family\n[CSS Fonts 4 Specification]: https://drafts.csswg.org/css-fonts-4/#system-ui-def\n","publish_time":1790835249769,"_cnpm_publish_time":1790835249769,"dist-tags":{"latest":"2.0.4"}}