{"name":"postcss-double-position-gradients","description":"Use double-position gradients in CSS","version":"4.0.2","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"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"}},"dependencies":{"@csstools/postcss-progressive-custom-properties":"^2.0.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","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-double-position-gradients#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-double-position-gradients"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["color","conic","css","double","gradients","linear","position","postcss","postcss-plugin","radial","repeating","stop","syntax"],"csstools":{"exportName":"postcssDoublePositionGradients","humanReadableName":"PostCSS Double Position Gradients"},"volta":{"extends":"../../package.json"},"gitHead":"9b9da800e62059820311258c9d88f42eae4dbd73","_id":"postcss-double-position-gradients@4.0.2","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"integrity":"sha512-GXL1RmFREDK4Q9aYvI2RhVrA6a6qqSMQQ5ke8gSH1xgV6exsqbcJpIumC7AOgooH6/WIG3/K/T8xxAiVHy/tJg==","shasum":"855a23201f26be447210504e9b668429cbf4640c","tarball":"http://registry-npm.ywwl.com/postcss-double-position-gradients/download/postcss-double-position-gradients-4.0.2.tgz","fileCount":10,"unpackedSize":21265,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxKKAwtFxO6O06kZLZh/NfpYgpkGyEkZEIdB6ReEuolAiAS4v4ngxG5PxVUk7Gqw3/RRNZbKWn8jvm7UJJbbiZ6GA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj418EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1hA/+P3ymHRR28Y+/r+++In7rI8xdReIA8rJSKLIQMMh5T9guDJlQ\r\nnQkNd4OtrYOGPLNEdK+xchljt0//dQf3z+kLeXFAwXr6uew+4M7Eaha+BJaM\r\nNDBe7pPg/GQThqbCUrumdyP38/bemOjrCeWt5yjWUHtPMWm8feV3dHYPLFhf\r\nuhjBVQmxa7+OXkINKbQS/F3Ua19QxeK/YGJP5+nnUzQLUzwkbbuB+OO3RbHf\r\niYxWrqWFmPoLiHIUqg2wmA3tphjdm5oZmuCosjweSFmfXDctc1LA1j0nUP3G\r\nk8Q445m4XBSWNriDnVeKWDjrEjhcrGm+PVPLFDHsU6iiRzvzm89uvDCKZKml\r\njihDLaRdMzv6ervsWfzI6t7MkZ7irvZgXn0R0dx93u1PIxCStuseBvWUWoEj\r\nkfa3saH9MgbepRQi8H0yi8YzNhqq4PsAUWOqY10GnQy/hgRqILalHUDuB2xQ\r\nmsRraIseQ93GwTOc0rr65S0H+CotpAv30Ep5/jf5C9XL8N04doAiitXB7Fvk\r\nehZoF2yqUVv/GT/t/27UnVHecvhgDDRAKt59sAGGFlobKWpLDttkOL9ep7A0\r\nXn+CqQQ6oZd5QeDs9Bw8FrCzybQrPu+3sga/FJPk0o7YjpDBcS2j5+1qvZ1x\r\nJIhu+zkI84OMMl9+Du2IS08Dj7eE3oDPz4M=\r\n=rMVd\r\n-----END PGP SIGNATURE-----\r\n","size":6920,"noattachment":false,"key":"/postcss-double-position-gradients/-/postcss-double-position-gradients-4.0.2.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-double-position-gradients_4.0.2_1675845380109_0.5818783711552704"},"_hasShrinkwrap":false,"readme":"# PostCSS Double Position Gradients [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n[<img alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/postcss-double-position-gradients.svg\" height=\"20\">][npm-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n<br><br>\n[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/double-position-gradients.svg\" height=\"20\">][css-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/double-position-gradients.svg\" height=\"20\">][css-url]\n\n[PostCSS Double Position Gradients] lets you use double-position gradients in\nCSS, following the [CSS Image Values and Replaced Content] specification.\n\n```pcss\n.linear-gradient {\n  background-image: linear-gradient(90deg, black 25% 50%, blue 50% 75%);\n}\n\n.conic-gradient {\n  background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}\n\n/* becomes */\n\n.linear-gradient {\n  background-image: linear-gradient(90deg, black 25%, black 50%, blue 50%, blue 75%);\n  background-image: linear-gradient(90deg, black 25% 50%, blue 50% 75%);\n}\n\n.conic-gradient {\n  background-image: conic-gradient(yellowgreen 40%, gold 0deg, gold 75%, #f06 0deg);\n  background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}\n```\n\n## Usage\n\nAdd [PostCSS Double Position Gradients] to your project:\n\n```bash\nnpm install postcss-double-position-gradients --save-dev\n```\n\nUse [PostCSS Double Position Gradients] to process your CSS:\n\n```js\nconst postcssDoublePositionGradients = require('postcss-double-position-gradients');\n\npostcssDoublePositionGradients.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssDoublePositionGradients = require('postcss-double-position-gradients');\n\npostcss([\n  postcssDoublePositionGradients(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Double Position Gradients] runs in all Node environments, with special instructions 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 double-position gradients\nshould be preserved. By default, double-position gradients are preserved.\n\n```js\npostcssDoublePositionGradients({ preserve: false })\n```\n\n```css\n.linear-gradient {\n  background-image: linear-gradient(90deg, black 25% 50%, blue 50% 75%);\n}\n\n.conic-gradient {\n  background-image: conic-gradient(yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}\n\n/* becomes */\n\n.linear-gradient {\n  background-image: linear-gradient(90deg, black 25%, black 50%, blue 50%, blue 75%);\n}\n\n.conic-gradient {\n  background-image: conic-gradient(yellowgreen 40%, gold 0deg, gold 75%, #f06 0deg);\n}\n```\n\n### enableProgressiveCustomProperties\n\nThe `enableProgressiveCustomProperties` option determines whether the original notation\nis wrapped with `@supports` when used in Custom Properties. By default, it is enabled.\n\n> [!NOTE]\n> We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties.  \n> See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme).\n\n```js\npostcssDoublePositionGradients({ enableProgressiveCustomProperties: false })\n```\n\n```pcss\n:root {\n\t--a-gradient: linear-gradient(90deg, black 25% 50%, blue 50% 75%);\n}\n\n/* becomes */\n\n:root {\n\t--a-gradient: linear-gradient(90deg, black 25%, black 50%, blue 50%, blue 75%); /* will never be used, not even in older browser */\n\t--a-gradient: linear-gradient(90deg, black 25% 50%, blue 50% 75%);\n}\n```\n\n[css-url]: https://cssdb.org/#double-position-gradients\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-double-position-gradients\n\n[CSS Image Values and Replaced Content]: https://www.w3.org/TR/css-images-4/#color-stop-syntax\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Double Position Gradients]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients\n","publish_time":1675845380342,"_cnpm_publish_time":1675845380342,"dist-tags":{"latest":"7.0.6"}}