{"name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","version":"3.0.0","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":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"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"],"gitHead":"bfd6af469f7dc43aa8f137208c4c7376eb9996ac","_id":"@csstools/postcss-initial@3.0.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-UVUrFmrTQyLomVepnjWlbBg7GoscLmXLwYFyjbcEnmpeGW7wde6lNpx5eM3eVwZI2M+7hCE3ykYnAsEPLcLa+Q==","shasum":"f3714d3f5bc77e6d6aa34804c48fd728df25c657","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-initial/download/@csstools/postcss-initial-3.0.0.tgz","fileCount":6,"unpackedSize":10442,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB1hjeTOdBr/oS2v8OSmDxq4y7NvXtGWhXr3CF2tLIC5AiEAl75pKZkqgsdXMk6Pn4z9wino6AnpkJD96osS5WfZUTY="}],"size":3962,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-initial_3.0.0_1768375379425_0.5443123091101225"},"_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":1768375379569,"_cnpm_publish_time":1768375379569,"dist-tags":{"latest":"3.0.0"}}