{"_id":"@csstools/postcss-private-rule@1.1.0","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"827988c91abeb29fb7b1a64b4b9e4c7280f195c2","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-private-rule/download/@csstools/postcss-private-rule-1.1.0.tgz","fileCount":6,"integrity":"sha512-ZrO433/lg6iM/NS4bOcGt/JhRP7K8s96bIWIDZpKSzaaiih2yyTQNSoAzNEcxHCvzmOkhnCg31pf56eiFqwKtQ==","signatures":[{"sig":"MEUCIQDIfbX45/W+r7ancT+EbzA3vRf/lTd/AJ1cBJtK/Lr5hwIgKx7gBpKfWBs29yGoklrgIMYpGBae32JJPTs4FILiAEM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCreP1Ub9v/3ouNuUmk3lTM/gSOnr71izBs1SseqB+H2gIhAL0QOdZ+Y8Aq/r0I++i+PN1OR7wbNPEkWbCg8sUEFAcl"}],"unpackedSize":10135,"size":3911,"noattachment":false,"key":"/@csstools/postcss-private-rule/-/@csstools/postcss-private-rule-1.1.0.tgz"},"name":"@csstools/postcss-private-rule","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":"1b8b2fc51b0fed9516cec42f74d15ac47f57b4f7","license":"MIT-0","scripts":{},"version":"1.1.0","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-private-rule#readme","keywords":["at-rule","css","custom-property","fallback","postcss","postcss-plugin","private"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-private-rule"},"_npmVersion":"11.13.0","description":"Declare private custom properties","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-private-rule_1.1.0_1790835231226_0.795504370737611"},"readme":"# PostCSS Private Rule [<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-private-rule --save-dev`\n\n[PostCSS Private Rule] lets you declare private custom properties following the [CSS Mixins Specification].\n\n```css\nsection {\n\t@private {\n\t\t--size: 2px;\n\t}\n\n\t&, & > h1 {\n\t\tborder-width: var(--size);\n\t}\n}\n\nsection > h1 {\n\t--size: 4px;\n}\n\n/* becomes */\n\nsection {\n\t\t--_csstools-p-1agle9gi-0--size: 2px;\n\n\t&, & > h1 {\n\t\tborder-width: var(--_csstools-p-1agle9gi-0--size);\n\t}\n}\n\nsection > h1 {\n\t--size: 4px;\n}\n```\n\n## Usage\n\nAdd [PostCSS Private Rule] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-private-rule --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssPrivateRule = require('@csstools/postcss-private-rule');\n\npostcss([\n\tpostcssPrivateRule(/* 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/#private-rule\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-private-rule\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Private Rule]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-private-rule\n[CSS Mixins Specification]: https://drafts.csswg.org/css-mixins-1/#private\n","publish_time":1790835231312,"_cnpm_publish_time":1790835231312,"dist-tags":{"latest":"1.1.1"}}