{"_id":"@csstools/postcss-property-rule-optional-descriptors","name":"@csstools/postcss-property-rule-optional-descriptors","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@csstools/postcss-property-rule-optional-descriptors","description":"Omit optional descriptors in at-property rules","version":"1.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-property-rule-optional-descriptors#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-property-rule-optional-descriptors"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["at-property","fallback","postcss-plugin"],"gitHead":"44fbccec19d15c7d0643661382997e2f8294b0c2","_id":"@csstools/postcss-property-rule-optional-descriptors@1.0.0","_nodeVersion":"26.1.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-oPFzJF1R8bbFRYVcGKHFbHjhKUP2unw4tkTTlpa3E1aCI+XUr/4h6vwdWOegkyxPb9v0vk9tixIL+Npyx1L0qA==","shasum":"c084f60013e83aaf0ba79947737261f2f5a9ec41","tarball":"https://registry.npmjs.org/@csstools/postcss-property-rule-optional-descriptors/-/postcss-property-rule-optional-descriptors-1.0.0.tgz","fileCount":6,"unpackedSize":4848,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPrroFphzyntd6L289/WV3FkMe6m65VjYTn0069u22FgIgT+YNFHWNSAHQbeXGKmelA9LOw1FquHds31PGsTxoa04="}]},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-property-rule-optional-descriptors_1.0.0_1786812257412_0.059421522176750896"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T16:44:17.237Z","1.0.0":"2026-08-15T16:44:17.580Z","modified":"2026-08-15T16:44:17.820Z"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"description":"Omit optional descriptors in at-property rules","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-property-rule-optional-descriptors#readme","keywords":["at-property","fallback","postcss-plugin"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-property-rule-optional-descriptors"},"contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"MIT-0","readme":"# PostCSS Property Rule Optional Descriptors [<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-property-rule-optional-descriptors --save-dev`\n\n[PostCSS Property Rule Optional Descriptors] lets you omit optional descriptors in `@property` rules following the [CSS Houdini Specification].\n\n```css\n@property --foo {\n\tinitial-value: \"red\";\n}\n\n@property --bar {\n\tsyntax: \"<color>\";\n\tinitial-value: \"green\";\n}\n\n/* becomes */\n\n@property --foo {\n\tinitial-value: \"red\";\n\tsyntax: \"*\";\n\tinherits: true;\n}\n\n@property --bar {\n\tsyntax: \"<color>\";\n\tinitial-value: \"green\";\n\tinherits: true;\n}\n```\n\n## Usage\n\nAdd [PostCSS Property Rule Optional Descriptors] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-property-rule-optional-descriptors --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssPropertyRuleOptionalDescriptors = require('@csstools/postcss-property-rule-optional-descriptors');\n\npostcss([\n\tpostcssPropertyRuleOptionalDescriptors(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\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/#property-rule-optional-descriptors\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-property-rule-optional-descriptors\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Property Rule Optional Descriptors]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-property-rule-optional-descriptors\n[CSS Houdini Specification]: https://drafts.css-houdini.org/css-properties-values-api/#determining-registration\n","readmeFilename":"README.md","_rev":"1-ffa7ac7a2d174c25d5d42acfca3fe14c"}