{"name":"postcss-double-position-gradients","version":"2.0.0","description":"Use double-position gradients in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-double-position-gradients.git"},"homepage":"https://github.com/csstools/postcss-double-position-gradients#readme","bugs":{"url":"https://github.com/csstools/postcss-double-position-gradients/issues"},"main":"dist/index.js","module":"dist/index.mjs","scripts":{"build":"npx rollup -c .rollup.js","build:watch":"npx rollup -c .rollup.js --watch","lint":"npx eslint --cache src","lint:fix":"npx eslint --cache --fix","pretest":"npm install && npm run build","test":"npm run lint && npm run tape","tape":"npx postcss-tape","prepublishOnly":"npm test"},"engines":{"node":">=10.0.0"},"dependencies":{"postcss":"^7.0.27","postcss-values-parser":"^3.2.1"},"devDependencies":{"@babel/core":"^7.9.0","@babel/preset-env":"^7.9.5","babel-eslint":"^10.1.0","eslint":"^6.8.0","postcss-tape":"^5.0.2","pre-commit":"^1.2.2","rollup":"^2.7.2","rollup-plugin-babel":"^4.4.0"},"babel":{"presets":[["@babel/env",{"targets":"maintained node versions"}]]},"eslintConfig":{"env":{"es6":true,"node":true},"extends":"eslint:recommended","parser":"babel-eslint"},"rollup":{"input":"src/index.js","plugins":["rollup-plugin-babel"],"output":[{"file":"dist/index.js","format":"cjs"},{"file":"dist/index.mjs","format":"esm"}]},"keywords":["postcss","css","postcss-plugin","double","position","gradients","linear","radial","conic","color","stop","syntax","repeating"],"gitHead":"a3ed30cc50a71449131fd3369f78d36580740adb","_id":"postcss-double-position-gradients@2.0.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-rSEVU4/2YypLYr4dAyDPRXq93cd3KuCqid/vfYiMWoV4gxH5Qz/6FE6hONtfGKSRzYG4CtxzsaRPIMjM9143AA==","shasum":"e698a97f07fe45654b33591e6d2cb08dbb789d0b","tarball":"http://registry-npm.ywwl.com/postcss-double-position-gradients/download/postcss-double-position-gradients-2.0.0.tgz","fileCount":6,"unpackedSize":19450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJephO/CRA9TVsSAnZWagAAU1QP/1f77SYxJZMMgmoOYRS3\nR0hzs9nPfiaEWmMB2tq1y0IDQd/thvRX/WAi/Na+9KEowyP9bMIu30q2xk0j\n2JLmzbO0XzoSMHPWee1dNWozS8S1CipCSGEdnLV+8HqAnb8aHAbcK4yM2v3w\nkUaqFbgsKFgsafr6V2x4e8aJqjCoxQeixaNH0ePFfa9RzdFMEt3M45OGrLzC\nyb8RQtNgMPy65U6lnhq5t6mdoy0qhFLU2C1YL1NHKD6Yd9htICNSPs2UZXyl\n7+eAmV0vvpY8YsXlzL+gBcxF5Z8cIkaCgZDfh7uY06Vf4nAV5CyhiC/XKqYz\nViWzTMqScTZ4ucOgL6rRu1lUwVyKf5IguNwAsgZc5tFAwPrHUpsg4SsJ5rRx\nxnxnxQdoYE0PSGGPf5hfw4ZGldkLdqLX4x42XpVotofGQsSzOxTeohsfBf8J\nMjodEluRMB9+SPCF1taZQ+IYUkizj8bctp5KhIVogagLus8V5EfEkid8Yqgv\nnAtXpCDM9Rj3s7Gdku54ZezjI4GjeOO7UQGhAvsq6RhVJvNmGu005xFHLwxB\nMaF8WDQjG6OVoO+4/trTPPtbAWDNa/Y1W9ENnEfa6JujLQVUnNN8NRlCmyXg\n5I154sb+CDeKMWUYAAfLtmrgbVMSFwBKkfM+xk7TDkgFpipBcYqQabx8ShLq\nIL/e\r\n=2Y11\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQpZADATqQBP+eG5wGD4rqMPETOUhcn9vukAckkEYtCAIhANbcWeJfIX8SKNfwTpIsm4+2WzAXAr5gyVysWfO3lgoi"}],"size":5879,"noattachment":false,"key":"/postcss-double-position-gradients/-/postcss-double-position-gradients-2.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-double-position-gradients_2.0.0_1587942335116_0.29469449624262634"},"_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":1587942335244,"_cnpm_publish_time":1587942335244,"dist-tags":{"latest":"7.0.6"}}