{"name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","version":"2.0.1","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":">=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-initial#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-initial"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["postcss-plugin"],"_id":"@csstools/postcss-initial@2.0.1","gitHead":"b89c3cea8debef851ed7e7cfddfd0c9f8b1afe91","types":"./dist/index.d.ts","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-L1wLVMSAZ4wovznquK0xmC7QSctzO4D0Is590bxpGqhqjboLXYA16dWZpfwImkdOgACdQ9PqXsuRroW6qPlEsg==","shasum":"c385bd9d8ad31ad159edd7992069e97ceea4d09a","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-initial/download/@csstools/postcss-initial-2.0.1.tgz","fileCount":7,"unpackedSize":16272,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC0pUFpcmRTbNgMmsQ6CrYAmUKSHd6+tyt+peNH36Ww/wIgX/9liUMwWgyzqMbQBt8HHk8rJCI5s/jUgNZMOxUw1JA="}],"size":4028,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-2.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-initial_2.0.1_1739379951883_0.3687382810362345"},"_hasShrinkwrap":false,"readme":"# PostCSS Initial [<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-initial --save-dev`\n\n[PostCSS Initial] fallback the `initial` keyword following the [CSS Cascade 4 Specification].\n\n```css\n.foo {\n\tborder: initial;\n}\n\n/* becomes */\n\n.foo {\n\tborder: medium none currentcolor;\n\tborder: initial;\n}\n```\n\n_See prior work by [maximkoretskiy](https://github.com/maximkoretskiy) here [postcss-initial](https://github.com/maximkoretskiy/postcss-initial)\nTo ensure long term maintenance and to provide the needed features this plugin was recreated based on maximkoretskiy's work._\n\n## Usage\n\nAdd [PostCSS Initial] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-initial --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssInitial = require('@csstools/postcss-initial');\n\npostcss([\n\tpostcssInitial(/* 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 preserved.\n\n```js\npostcssInitial({ preserve: false })\n```\n\n```css\n.foo {\n\tborder: initial;\n}\n\n/* becomes */\n\n.foo {\n\tborder: medium none currentcolor;\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/#all-property\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-initial\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Initial]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-initial\n[CSS Cascade 4 Specification]: https://www.w3.org/TR/css-cascade-4/#initial\n","publish_time":1739379952077,"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_cnpm_publish_time":1739379952077,"dist-tags":{"latest":"3.0.0"}}