{"_id":"@csstools/postcss-initial","_rev":"4266093","name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"time":{"modified":"2026-04-06T16:28:18.000Z","created":"2023-09-18T16:06:49.056Z","3.0.0":"2026-01-14T07:22:59.569Z","2.0.1":"2025-02-12T17:05:52.077Z","2.0.0":"2024-08-03T21:37:13.214Z","1.0.1":"2023-12-15T23:18:54.689Z","1.0.0":"2023-09-18T16:06:49.056Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-initial"},"versions":{"3.0.0":{"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":{"shasum":"f3714d3f5bc77e6d6aa34804c48fd728df25c657","size":3962,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-initial/download/@csstools/postcss-initial-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-initial_3.0.0_1768375379425_0.5443123091101225"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-14T07:22:59.569Z","publish_time":1768375379569,"_source_registry_name":"default","_cnpm_publish_time":1768375379569},"2.0.1":{"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":{"shasum":"c385bd9d8ad31ad159edd7992069e97ceea4d09a","size":4028,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-initial/download/@csstools/postcss-initial-2.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-initial_2.0.1_1739379951883_0.3687382810362345"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-12T17:05:52.077Z","publish_time":1739379952077,"_source_registry_name":"default","_cnpm_publish_time":1739379952077},"2.0.0":{"name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","version":"2.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":">=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.0","gitHead":"de3f8679d6307fae6a9aebcb7467d80f8535154e","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"shasum":"a86f5fc59ab9f16f1422dade4c58bd941af5df22","size":4002,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-initial/download/@csstools/postcss-initial-2.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-initial_2.0.0_1722721033051_0.16609835510335458"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-03T21:37:13.214Z","publish_time":1722721033214,"_source_registry_name":"default","_cnpm_publish_time":1722721033214},"1.0.1":{"name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","version":"1.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":"^14 || ^16 || >=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"},"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@1.0.1","gitHead":"28e3289f7d20f532c0666b9b4486df482370f162","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"5aa378de9bfd0e6e377433f8986bdecf579e1268","size":4249,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-initial/download/@csstools/postcss-initial-1.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-initial_1.0.1_1702682334464_0.4794183237084346"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-15T23:18:54.689Z","publish_time":1702682334689,"_source_registry_name":"default","_cnpm_publish_time":1702682334689},"1.0.0":{"name":"@csstools/postcss-initial","description":"PostCSS plugin to fallback initial keyword.","version":"1.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":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"postcss":"^8.4"},"devDependencies":{"@csstools/postcss-tape":"*"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","docs":"node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","test":"node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"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"],"csstools":{"cssdbId":"all-property","exportName":"postcssInitial","humanReadableName":"PostCSS Initial","specUrl":"https://www.w3.org/TR/css-cascade-4/#initial"},"volta":{"extends":"../../package.json"},"_id":"@csstools/postcss-initial@1.0.0","gitHead":"f15b6070cf8c6ba4d39398ff79b7731d8d932f54","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"e35ec12143a654b384fb81623970deeacedb0769","size":4554,"noattachment":false,"key":"/@csstools/postcss-initial/-/@csstools/postcss-initial-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-initial/download/@csstools/postcss-initial-1.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-initial_1.0.0_1695053208716_0.8475418398633794"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-18T16:06:49.056Z","publish_time":1695053209056,"_source_registry_name":"default","_cnpm_publish_time":1695053209056}},"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","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-initial#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"MIT-0"}