{"name":"@csstools/postcss-syntax-descriptor-syntax-production","version":"1.0.0","keywords":["postcss-plugin"],"license":"MIT-0","_id":"@csstools/postcss-syntax-descriptor-syntax-production@1.0.0","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":"c4183e8a4a8953f2e0b15b3184d3a7a47eb6db12","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-syntax-descriptor-syntax-production/download/@csstools/postcss-syntax-descriptor-syntax-production-1.0.0.tgz","fileCount":7,"integrity":"sha512-UbPrFTqwjVhLuFYmXHiO/+5XhnyLaq27pL25HsWJnhH1NCn+RIK8xQyG0pYx/2MtC5Faji/Vc38zvqLz4fjM8w==","signatures":[{"sig":"MEUCICEiJ5PcGR7yuCKZRGchp/8SJwwa4+lTfB8JLF0FmY1tAiEA7d3zM4eiuPeLZXR9kfoQPmzzqnqTwAh/zXbEWLBPhCM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7042,"size":2928,"noattachment":false,"key":"/@csstools/postcss-syntax-descriptor-syntax-production/-/@csstools/postcss-syntax-descriptor-syntax-production-1.0.0.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":"925c295752e15436e9ba6125b40bc82c3173662f","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.0_1766836770694_0.36779911755527017","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":1766836770837,"_cnpm_publish_time":1766836770837,"dist-tags":{"latest":"2.0.2"}}