{"name":"postcss-double-position-gradients","version":"3.0.5","description":"Use double-position gradients in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","lint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"postcss-tape --ci && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"engines":{"node":"^12 || ^14 || >=16"},"dependencies":{"postcss-value-parser":"^4.2.0"},"devDependencies":{"postcss":"^8.3.6","postcss-tape":"^6.0.1"},"peerDependencies":{"postcss":"^8.4"},"keywords":["postcss","css","postcss-plugin","double","position","gradients","linear","radial","conic","color","stop","syntax","repeating"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-double-position-gradients"},"volta":{"extends":"../../package.json"},"gitHead":"932555cbfe9b0858b7cba9af99f05cd730e1306e","_id":"postcss-double-position-gradients@3.0.5","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-XiZzvdxLOWZwtt/1GgHJYGoD9scog/DD/yI5dcvPrXNdNDEv7T53/6tL7ikl+EM3jcerII5/XIQzd1UHOdTi2w==","shasum":"f6b755e9850bb9816dfbf8fa346d9ce2e8a03848","tarball":"http://registry-npm.ywwl.com/postcss-double-position-gradients/download/postcss-double-position-gradients-3.0.5.tgz","fileCount":6,"unpackedSize":15718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/q3iCRA9TVsSAnZWagAAmwAP/i6Kh58BqRhBVzWAADwp\n/p5hR70onfMT5ER2zhvOC7ZQsAgRB4qFmkQL8yANOQBwUuaLruduyVm0DEx3\n7K+YXo89z93ojl1AwuMCbpZGrp+zsniXkdBrSyymIe2gC8uGMN3a0RsJ/IJQ\nWM8EAHoXJ4fldbaxP9YlE7hRNt+VgfC4wBapuqmN+gMGJ7+BhtVkOhU2E5IZ\nGtuWsiuaUympDimcLw120qUGVo/Yn4ZDEb6b9p2tWIWvWP4DBt5keDuiNH0m\nkjyqwi7mNNaqLlEG6msHVjmkCNYq55etRMhWS3A62g8MFEGrwkLpJAnsz62w\nmpWHvlGMdVIkZz6zVVG0DyrrGT8y8OkV+xfn8Z23YsLACOD0VtLcvWIoHZo6\n/vSt6fqthrdRe7l8mqtxMVhp5Y8mmwvrhMaa2ZAe2xWjD7be2wnvOLUOaUji\n3NWuJiPZy6pS9QzNKnj3YXUYzsM2AnbbZPQ2TnUOk5n49AnKW+KRl/Z1ERnP\nDED+EjQR7ozRxjcrP5H1nxl+WghrVWJPctnVYbWzm+gMMbC+Je82zRGet9kM\n8M7zAxAs4aH77StybgoHG5yckNuSomK7s0scmLZiJ3o+dBnT6SqIZ3DVZ5FH\nDBOR14Rra+03LC3xt3qsk0BU5snxAteIRdEDWvRiE+JSkM35m2SkGoiZIS/o\nnd+z\r\n=gnRT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDGv7zwtU4lZyyvPcHr66FnNitCcYeZCDjJMdUZwpPeQIhALaQ6IRrfUmGmbbc2YzwcT4JjBuOiy+FPfbehYvOEO+Y"}],"size":5788,"noattachment":false,"key":"/postcss-double-position-gradients/-/postcss-double-position-gradients-3.0.5.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_3.0.5_1644080610374_0.7278623420970252"},"_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":1644080610576,"_cnpm_publish_time":1644080610576,"dist-tags":{"latest":"7.0.6"}}