{"name":"@csstools/postcss-syntax-descriptor-syntax-production","version":"1.0.1","keywords":["postcss-plugin"],"license":"MIT-0","_id":"@csstools/postcss-syntax-descriptor-syntax-production@1.0.1","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-syntax-descriptor-syntax-production#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"98590e372e547cdae60aef47cfee11f3881307dd","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-syntax-descriptor-syntax-production/download/@csstools/postcss-syntax-descriptor-syntax-production-1.0.1.tgz","fileCount":7,"integrity":"sha512-GneqQWefjM//f4hJ/Kbox0C6f2T7+pi4/fqTqOFGTL3EjnvOReTqO1qUQ30CaUjkwjYq9qZ41hzarrAxCc4gow==","signatures":[{"sig":"MEUCIQCU4GP5eMJSvh+Q0vvTls2b3ZVqEUeJV+opSrv5XKbPQgIgfIy1Z8tuZd7Qji50zQ7wLPLTj5U6A9lJgNYOXhB/VZc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7514,"size":3077,"noattachment":false,"key":"/@csstools/postcss-syntax-descriptor-syntax-production/-/@csstools/postcss-syntax-descriptor-syntax-production-1.0.1.tgz"},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"6677f6e31b6f3b70f83c8c25ecccd35ee07ea97c","scripts":{},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-syntax-descriptor-syntax-production"},"_npmVersion":"11.6.2","description":"Use the syntax production in syntax descriptors","directories":{},"_nodeVersion":"25.1.0","dependencies":{"@csstools/css-tokenizer":"^3.0.4"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-syntax-descriptor-syntax-production_1.0.1_1766854553711_0.4744202123715149","host":"s3://npm-registry-packages-npm-production"},"readme":"# PostCSS Syntax Descriptor Syntax Production [<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-syntax-descriptor-syntax-production --save-dev`\n\n[PostCSS Syntax Descriptor Syntax Production] lets you use the `<syntax>` production in `syntax` descriptors following the [CSS Specification].\n\n```css\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: <color>;\n}\n\n/* becomes */\n\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: \"<color>\";\n}\n```\n\n## Usage\n\nAdd [PostCSS Syntax Descriptor Syntax Production] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-syntax-descriptor-syntax-production --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssSyntaxDescriptorSyntaxProduction = require('@csstools/postcss-syntax-descriptor-syntax-production');\n\npostcss([\n\tpostcssSyntaxDescriptorSyntaxProduction(/* 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 not preserved.\n\n```js\npostcssSyntaxDescriptorSyntaxProduction({ preserve: true })\n```\n\n```css\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: <color>;\n}\n\n/* becomes */\n\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: \"<color>\";\n\tsyntax: <color>;\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/#syntax-descriptor-syntax-production\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-syntax-descriptor-syntax-production\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Syntax Descriptor Syntax Production]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-syntax-descriptor-syntax-production\n[CSS Specification]: https://github.com/w3c/csswg-drafts/issues/11426#issuecomment-3657538113\n","publish_time":1766854553901,"_cnpm_publish_time":1766854553901,"dist-tags":{"latest":"2.0.2"}}