{"name":"@csstools/postcss-unset-value","description":"Use the unset keyword in CSS.","version":"1.0.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","engines":{"node":"^12 || ^14 || >=16"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"peerDependencies":{"postcss":"^8.3"},"scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"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-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"],"csstools":{"exportName":"postcssUnsetValue","humanReadableName":"PostCSS Unset Value"},"volta":{"extends":"../../package.json"},"gitHead":"f28cf62258a1b70747a9bb2efa3e005ed237a447","_id":"@csstools/postcss-unset-value@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-T5ZyNSw9G0x0UDFiXV40a7VjKw2b+l4G+S0sctKqxhx8cg9QtMUAGwJBVU9mHPDPoZEmwm0tEoukjl4zb9MU7Q==","shasum":"f6e0e58376f09e381a49bd553772a97a477da3fd","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-unset-value/download/@csstools/postcss-unset-value-1.0.0.tgz","fileCount":8,"unpackedSize":26222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE0UqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6iRAAhybVy0SB1PwGNH354256CVs9LcG9eQqMRLmso4DQevNGHOfB\r\ne+opE/UMR5S2hRxScuk3qD79oDjXFEJgDtrKUD0rR7UHMP8o87sJXfeRPC+6\r\n9gU0Mm78O4uax3iDJfWEi1MFvFIWqa7Rt6SoLvHPvSaUbGxYBUsSgwo0siBS\r\nubbI4IdTuv5m+yc4yMdq+x12B51KZYjPwx9SdrIwF27KBMmuHnPsnrLa6nG2\r\nRLlJM28Q3LXKTaYCHmocRJZVHnfgsF7OYTi+r4aVX/2/88MxLRqcUcqTkoSA\r\nn8/C6mTQAbTl4mVVP0bchrgzqeIWA5Wcs0xPtBtYXZfGroXVPDFjo0DRBgU0\r\noO4/HCO89r2Ya4oNIUHoLdQ8s4uve2cv5HuD6YUDOfDL86mgIpL0AWsIRPVV\r\njqgZFbemNxaa966QexRTFKUI3yIMS+qLjDyLudzIakvdVWAaPl4WfZN5G50u\r\n4H9tD5I/9rLhnFN9+qXhYXCzIWeNqaI/Mjfl9Q86VdVamM1SLEzAJa2ulwuH\r\nhovvlGthLx5/VV5wmx4M6Znk5W2+I4kXbCwpWmksEC2NmSRKcnNGm0ldSrmd\r\n9DmTAJ4M+cvcDpSFi+FUKgSmESFvMJ1Qu5NtCUvAVCb2j4IxogNSlNwPl37O\r\nuS3dmwaDLpoQ/k79xjz8ZrOLReECXFzZqWk=\r\n=jySq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyELKB0T0BmXEZr51v/QAW+VpoAexHxw29b0iV3l+EiQIhAKHXrX226iq2h0FQRxXFzLN1S+QBmegDPWFn0Oaib4En"}],"size":7101,"noattachment":false,"key":"/@csstools/postcss-unset-value/-/@csstools/postcss-unset-value-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-unset-value_1.0.0_1645430058783_0.7514398423704245"},"_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":1645430058942,"_cnpm_publish_time":1645430058942,"dist-tags":{"latest":"5.0.0"}}