{"_id":"@csstools/postcss-progressive-custom-properties","_rev":"259746","name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","dist-tags":{"latest":"2.1.1"},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"time":{"modified":"2023-03-27T17:09:20.000Z","created":"2022-02-06T16:26:26.849Z","2.1.1":"2023-03-25T07:52:48.029Z","2.1.0":"2023-02-02T08:46:48.847Z","2.0.1":"2023-01-28T07:26:35.705Z","2.0.0":"2023-01-24T08:27:25.219Z","1.3.0":"2022-03-07T11:03:54.197Z","1.2.0":"2022-02-15T19:01:34.940Z","1.1.0":"2022-02-12T12:13:47.608Z","1.0.0":"2022-02-06T16:26:26.849Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"versions":{"2.1.1":{"name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","version":"2.1.1","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":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"devDependencies":{"@csstools/postcss-tape":"*"},"scripts":{"build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && rollup -c ../../rollup/default.mjs","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","test":"node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"keywords":["css","custom","declarations","postcss","postcss-plugin","progressive","properties","utility","variables","vars"],"csstools":{"exportName":"postcssProgressiveCustomProperties","humanReadableName":"PostCSS Progressive Custom Properties"},"volta":{"extends":"../../package.json"},"gitHead":"db026c71064b11c7c35dea3ffb2e387b9febfe7d","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@2.1.1","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"82df9314451db63bf7f4975a4d32f148e85db490","size":7581,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-2.1.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_2.1.1_1679730767873_0.918393758185464"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-25T07:52:48.029Z","publish_time":1679730768029,"_cnpm_publish_time":1679730768029},"2.1.0":{"name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","version":"2.1.0","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":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"keywords":["css","custom","declarations","postcss","postcss-plugin","progressive","properties","utility","variables","vars"],"csstools":{"exportName":"postcssProgressiveCustomProperties","humanReadableName":"PostCSS Progressive Custom Properties"},"volta":{"extends":"../../package.json"},"gitHead":"3e666fdb8ca78fad08704e95d833439e17a8ec1b","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@2.1.0","_nodeVersion":"16.17.1","_npmVersion":"9.4.1","dist":{"shasum":"df35da0e85a6d5e1d8e4c9a0ba9032e8486e8b9d","size":8861,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-2.1.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_2.1.0_1675327608656_0.20558170217286476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-02T08:46:48.847Z","publish_time":1675327608847,"_cnpm_publish_time":1675327608847},"2.0.1":{"name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","version":"2.0.1","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":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"keywords":["css","custom","declarations","postcss","postcss-plugin","progressive","properties","utility","variables","vars"],"csstools":{"exportName":"postcssProgressiveCustomProperties","humanReadableName":"PostCSS Progressive Custom Properties"},"volta":{"extends":"../../package.json"},"gitHead":"c0a0dcc59d56ed8b177a05be12d56389bdd83375","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@2.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"70b05fa97778c34e0758a313ed11617cdf14189c","size":7659,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-2.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_2.0.1_1674890795511_0.9881155008218436"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:26:35.705Z","publish_time":1674890795705,"_cnpm_publish_time":1674890795705},"2.0.0":{"name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","version":"2.0.0","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":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"keywords":["css","custom","declarations","postcss","postcss-plugin","progressive","properties","utility","variables","vars"],"csstools":{"exportName":"postcssProgressiveCustomProperties","humanReadableName":"PostCSS Progressive Custom Properties"},"volta":{"extends":"../../package.json"},"gitHead":"51139eaeecfaeb5264141f76433f6fb4b25dc9f1","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"ada4d35c6891719d0d060f75d912eac11d8e47a9","size":7625,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-2.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_2.0.0_1674548845073_0.9861056483550734"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-24T08:27:25.219Z","publish_time":1674548845219,"_cnpm_publish_time":1674548845219},"1.3.0":{"name":"@csstools/postcss-progressive-custom-properties","description":"Correctly declare progressive enhancements for CSS Custom Properties.","version":"1.3.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"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.3"},"scripts":{"build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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:cli":"bash ./test/cli/test.sh","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"keywords":["css","custom","declarations","postcss","postcss-plugin","progressive","properties","utility","variables","vars"],"csstools":{"exportName":"postcssProgressiveCustomProperties","humanReadableName":"PostCSS Progressive Custom Properties"},"volta":{"extends":"../../package.json"},"gitHead":"6da885eb74e4a5febbf77995aa8745631008fb34","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@1.3.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"542292558384361776b45c85226b9a3a34f276fa","size":7592,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-1.3.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-1.3.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_1.3.0_1646651034065_0.6873737560326192"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-07T11:03:59.737Z","publish_time":1646651034197,"_cnpm_publish_time":1646651034197},"1.2.0":{"name":"@csstools/postcss-progressive-custom-properties","version":"1.2.0","description":"Correctly declare progressive enhancements for CSS Custom Properties.","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"}},"scripts":{"build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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":"node .tape.mjs && npm run test:exports","test:cli":"bash ./test/cli/test.sh","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss","css","postcss-plugin","utility","custom","properties","declarations","variables","vars","progressive"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"volta":{"extends":"../../package.json"},"gitHead":"89fdda034802e1524c98d67c246ef4f9c15aa044","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@1.2.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"7d53b773de50874c3885918dcb10cac97bf66ed5","size":7181,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-1.2.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_1.2.0_1644951694787_0.1976658489129266"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-15T19:01:42.165Z","publish_time":1644951694940,"_cnpm_publish_time":1644951694940},"1.1.0":{"name":"@csstools/postcss-progressive-custom-properties","version":"1.1.0","description":"Correctly declare progressive enhancements for CSS Custom Properties.","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"}},"scripts":{"build":"node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && 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":"node .tape.mjs && npm run test:exports","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs","test:cli":"bash ./test/cli/test.sh","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss","css","postcss-plugin","utility","custom","properties","declarations","variables","vars","progressive"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"volta":{"extends":"../../package.json"},"gitHead":"a18232dc331bb5e5d40ce5f04432a4c9de2dfd9b","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@1.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"f2189ccbf74e3fabfcc19d280f37fb06d1181988","size":6862,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-1.1.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_1.1.0_1644668027461_0.28557815625395055"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-12T12:13:54.960Z","publish_time":1644668027608,"_cnpm_publish_time":1644668027608},"1.0.0":{"name":"@csstools/postcss-progressive-custom-properties","version":"1.0.0","description":"Correctly declare progressive enhancements for CSS Custom Properties.","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"}},"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":"node .tape.mjs && npm run test:exports","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs","test:cli":"bash ./test/cli/test.sh","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss","css","postcss-plugin","utility","custom","properties","declarations","variables","vars","progressive"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-progressive-custom-properties"},"volta":{"extends":"../../package.json"},"gitHead":"a65cc6c842bbb009573ee94ddffe46c3d30c2e65","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"homepage":"https://github.com/csstools/postcss-plugins#readme","_id":"@csstools/postcss-progressive-custom-properties@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"4d044d47bc3b9e14c6c2de51401b1abaccbc13b8","size":5102,"noattachment":false,"key":"/@csstools/postcss-progressive-custom-properties/-/@csstools/postcss-progressive-custom-properties-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-progressive-custom-properties/download/@csstools/postcss-progressive-custom-properties-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-progressive-custom-properties_1.0.0_1644164786697_0.7465846104356659"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-06T16:26:34.061Z","publish_time":1644164786849,"_cnpm_publish_time":1644164786849}},"readme":"# PostCSS Progressive Custom Properties [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n\n[PostCSS Progressive Custom Properties] is a utility plugin to correctly declare Custom Property fallbacks and enhancements.\n\n⚠️ It is not intended to be used directly by stylesheet authors.\nMeant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks.\n\n[Custom Properties are not discarded like regular declarations when invalid.](https://www.w3.org/TR/css-variables-1/#invalid-variables)\nThis makes it tricky to provide fallback values for older browsers.\n\nThe solution is to wrap Custom Property declarations in an `@supports` rule.\n\n```pcss\n:root {\n\t/* fallback */\n\t--a-color: red;\n\t/* progressive enhancement */\n\t--a-color: oklch(40% 0.234 0.39 / var(--opacity-50));\n}\n\n/* becomes */\n\n:root {\n\t--a-color: red;\n}\n\n@supports (color: oklch(0% 0 0)) {\n\t:root {\n\t\t--a-color: oklch(40% 0.234 0.39 / var(--opacity-50));\n\t}\n}\n```\n\n## Ignored values\n\n`initial` and `<white space>` are ignored.\n\n```pcss\n.initial {\n\t--prop-1: red;\n\t--prop-1: initial;\n}\n\n.white-space {\n\t--prop-1: red;\n\t--prop-1:;\n\n\t--prop-2: red;\n\t--prop-2: ;\n\n\t--prop-3: red;\n\t--prop-3:    ;\n}\n\n/* remains */\n\n.initial {\n\t--prop-1: red;\n\t--prop-1: initial;\n}\n\n.white-space {\n\t--prop-1: red;\n\t--prop-1:;\n\n\t--prop-2: red;\n\t--prop-2: ;\n\n\t--prop-3: red;\n\t--prop-3:    ;\n}\n```\n\n## Usage\n\nAdd [PostCSS Progressive Custom Properties] to your project:\n\n```bash\nnpm install @csstools/postcss-progressive-custom-properties --save-dev\n```\n\nUse [PostCSS Progressive Custom Properties] as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssCustomProperties = require('@csstools/postcss-progressive-custom-properties');\n\npostcss([\n  postcssProgressiveCustomProperties()\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n## @supports\n\nThis plugin wraps Custom Property override declarations in an `@supports` rule.\nWith PostCSS 8 this trigger declaration visitors to run again.\n\nMake sure your plugin detects and ignores values inside relevant `@supports` rules.\n\n\n[PostCSS Progressive Custom Properties] 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\n[cli-img]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-img]: https://img.shields.io/npm/v/@csstools/postcss-progressive-custom-properties.svg\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-progressive-custom-properties\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Progressive Custom Properties]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties\n","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"CC0-1.0"}