{"name":"@csstools/postcss-unset-value","description":"Use the unset keyword in CSS.","version":"3.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-unset-value#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-unset-value"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["inherit","initial","postcss-plugin","unset"],"_id":"@csstools/postcss-unset-value@3.0.1","gitHead":"e771ee6f5f2563d47f45bb486a3ebe5f70bbadf6","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-dbDnZ2ja2U8mbPP0Hvmt2RMEGBiF1H7oY6HYSpjteXJGihYwgxgTr6KRbbJ/V6c+4wd51M+9980qG4gKVn5ttg==","shasum":"598a25630fd9ab0edf066d235916f7441404942a","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-unset-value/download/@csstools/postcss-unset-value-3.0.1.tgz","fileCount":7,"unpackedSize":20212,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrMhK7bJztDnWu1KFDF3vLUGLiwYM9HlPQeKYqS3wrFAiAbyICwZGrbIT9XoYN7b+v2WVqd/74xtn3RMPtLHYJ66Q=="}],"size":5012,"noattachment":false,"key":"/@csstools/postcss-unset-value/-/@csstools/postcss-unset-value-3.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-unset-value_3.0.1_1702682486559_0.8437068208399636"},"_hasShrinkwrap":false,"readme":"# PostCSS Unset Value [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-unset-value.svg\" height=\"20\">][npm-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/unset-value.svg\" height=\"20\">][css-url]\n[<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n\n[PostCSS Unset Value] lets you use the unset keyword, following the [CSS Cascading and Inheritance] specification.\n\n```pcss\n.color {\n\tcolor: unset;\n}\n\n.border-color {\n\tborder-color: unset;\n}\n\n.margin {\n\tmargin: unset;\n}\n\n\n/* becomes */\n.color {\n\tcolor: inherit;\n}\n\n.border-color {\n\tborder-color: initial;\n}\n\n.margin {\n\tmargin: initial;\n}\n```\n\n## Usage\n\nAdd [PostCSS Unset Value] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-unset-value --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssUnsetValue = require('@csstools/postcss-unset-value');\n\npostcss([\n  postcssUnsetValue(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Unset Value] runs in all Node environments, with special\ninstructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- |\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original source\nis preserved. By default, it is not preserved.\n\n```js\npostcssUnsetValue({ preserve: true })\n```\n\n```pcss\n.color {\n\tcolor: unset;\n}\n\n.border-color {\n\tborder-color: unset;\n}\n\n.margin {\n\tmargin: unset;\n}\n\n/* becomes */\n\n.color {\n\tcolor: inherit;\n\tcolor: unset;\n}\n\n.border-color {\n\tborder-color: initial;\n\tborder-color: unset;\n}\n\n.margin {\n\tmargin: initial;\n\tmargin: unset;\n}\n```\n\n[postcss]: https://github.com/postcss/postcss\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#unset-value\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-unset-value\n\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Loader]: https://github.com/postcss/postcss-loader\n[CSS Cascading and Inheritance]: https://www.w3.org/TR/css-cascade-4/#inherit-initial\n[PostCSS Unset Value]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-unset-value\n","publish_time":1702682486750,"_cnpm_publish_time":1702682486750,"dist-tags":{"latest":"5.0.0"}}