{"name":"@csstools/postcss-container-rule-prelude-list","version":"1.0.2","keywords":["container queries list","csswg","fallback","postcss-plugin"],"license":"MIT-0","_id":"@csstools/postcss-container-rule-prelude-list@1.0.2","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-container-rule-prelude-list#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"51c9f8590fde3e49d09d1b72548aef90c92db58d","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-container-rule-prelude-list/download/@csstools/postcss-container-rule-prelude-list-1.0.2.tgz","fileCount":6,"integrity":"sha512-EZ+nNmiffudAhTrZshekLFaVhhArB8t0DBLTdSco7YnV0xNqCfQuKd2FrMWKMKWBiTVaoK5oF2L9pLKYADxiOg==","signatures":[{"sig":"MEUCIQCcav3qgXrZeNq0UB2j4T/lr7Sths11E+JyPYRF9HpjPQIgHMvhbpQSQ0PewAHWkBKAQhaMdWtWAlXKoRY2i8wi2Rw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCqhWZmuhEPRWnYxXpmOhlAy8f1BXRDJz3on14kAtQovAIgZZMzGMmEGoqsdlV/rLoK47XFYHzidRIK/EQkn3lltMs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6387,"size":2576,"noattachment":false,"key":"/@csstools/postcss-container-rule-prelude-list/-/@csstools/postcss-container-rule-prelude-list-1.0.2.tgz"},"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":"68b90aa903d79c701736a892bac5d7a211f45a43","scripts":{},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-container-rule-prelude-list"},"_npmVersion":"11.13.0","description":"Declare a list of container queries in a single at-container rule","directories":{},"_nodeVersion":"26.1.0","dependencies":{"@csstools/css-tokenizer":"^4.0.2","@csstools/css-parser-algorithms":"^4.0.1"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-container-rule-prelude-list_1.0.2_1790347152080_0.5346334968183104","host":"s3://npm-registry-packages-npm-production"},"readme":"# PostCSS Container Rule Prelude List [<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-container-rule-prelude-list --save-dev`\n\n[PostCSS Container Rule Prelude List] lets you declare a list of container queries in a single `@container` rule following the [CSS Conditional 5 Specification].\n\n```css\n@container card (inline-size > 30em), style(--responsive: true) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n\n/* becomes */\n\n@container card (inline-size > 30em) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n@container style(--responsive: true) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n```\n\n## Usage\n\nAdd [PostCSS Container Rule Prelude List] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-container-rule-prelude-list --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssContainerRulePreludeList = require('@csstools/postcss-container-rule-prelude-list');\n\npostcss([\n\tpostcssContainerRulePreludeList(/* 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\npostcssContainerRulePreludeList({ preserve: true })\n```\n\n```css\n@container card (inline-size > 30em), style(--responsive: true) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n\n/* becomes */\n\n@container card (inline-size > 30em) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n@container style(--responsive: true) {\n\ta {\n\t\tcolor: red;\n\t}\n}\n@container card (inline-size > 30em), style(--responsive: true) {\n\ta {\n\t\tcolor: red;\n\t}\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/#container-rule-prelude-list\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-container-rule-prelude-list\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Container Rule Prelude List]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-container-rule-prelude-list\n[CSS Conditional 5 Specification]: https://drafts.csswg.org/css-conditional-5/#container-rule\n","publish_time":1790347152200,"_cnpm_publish_time":1790347152200,"dist-tags":{"latest":"1.0.5"}}