{"_id":"@ampagency/amp-postcss-config","_rev":"5-212348a3faebb832fb137d9303672b0b","name":"@ampagency/amp-postcss-config","dist-tags":{"latest":"1.3.1"},"versions":{"1.0.0":{"name":"@ampagency/amp-postcss-config","version":"1.0.0","author":{"name":"Amp Agency"},"_id":"@ampagency/amp-postcss-config@1.0.0","maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"dist":{"shasum":"12cce0e81f35e86304aa1621e100d9f6ef539eaa","tarball":"https://registry.npmjs.org/@ampagency/amp-postcss-config/-/amp-postcss-config-1.0.0.tgz","fileCount":13,"integrity":"sha512-yQYR23K54Q4t6R2ilOceMbufjPsEkoYXUJ3YyKfT5/tDzwkCWHedvtWoUXpxILSgarcOVweBCxwFEWPi2FaDIw==","signatures":[{"sig":"MEUCIHyJLNnzr9CI44P7wLfNKjBnqK/jxu201whMZ9KtXx8fAiEA93e/ltFuC3feCj5QBb8U9wmEmvsyIyZzaGHSbMFpVBI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17335},"main":"index.js","gitHead":"6a5158f80de9efcd7402e525ac769eae028251b5","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"ethanmay","actor":{"name":"ethanmay","type":"user","email":"ethan@ethanmay.com"},"email":"ethan@ethanmay.com"},"repository":{"url":"git+https://github.com/ampagency/amp-wp-postcss.git","type":"git"},"_npmVersion":"10.8.1","description":"A PostCSS configuration for Amp WP projects","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"peerDependencies":{"10up-toolkit":"^6.4.1","postcss-each":"^1.1.0","postcss-nested":"^7.0.2","postcss-pxtorem":"^6.1.0","postcss-functions":"^4.0.2","postcss-simple-vars":"^7.0.1","postcss-gap-properties":"^6.0.0","postcss-at-rules-variables":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/amp-postcss-config_1.0.0_1750705469021_0.7179211351581836","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@ampagency/amp-postcss-config","version":"1.1.0","author":{"name":"Amp Agency"},"_id":"@ampagency/amp-postcss-config@1.1.0","maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"dist":{"shasum":"eafca1d976461dac561142a276acb55ceadabf8b","tarball":"https://registry.npmjs.org/@ampagency/amp-postcss-config/-/amp-postcss-config-1.1.0.tgz","fileCount":8,"integrity":"sha512-ncl0oY0RmPIhWao/uik6/pmfwk8MGmbXNtmxBQbEEU3J89ev8uzyf/jaChyxLd9WPObUmYGtHnwIUy0q4K3HGw==","signatures":[{"sig":"MEUCIB20DwEveB1LS5F4gZlwD3f/1025CtJGS5guZRpR/+lrAiEAgbpzZYkc3V8tq0nT2wThc/+sOyn9YD6T+RgK0w60J8w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6826},"main":"index.js","gitHead":"95abae63dfd1161b7a0fd0edf174ae784c29edc8","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"ethanmay","actor":{"name":"ethanmay","type":"user","email":"ethan@ethanmay.com"},"email":"ethan@ethanmay.com"},"repository":{"url":"git+https://github.com/ampagency/amp-wp-postcss.git","type":"git"},"_npmVersion":"10.8.1","description":"A PostCSS configuration for Amp WP projects","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"peerDependencies":{"10up-toolkit":"^6.4.1","postcss-each":"^1.1.0","postcss-nested":"^7.0.2","postcss-pxtorem":"^6.1.0","postcss-functions":"^4.0.2","postcss-simple-vars":"^7.0.1","postcss-gap-properties":"^6.0.0","postcss-at-rules-variables":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/amp-postcss-config_1.1.0_1751468497861_0.2727153257749828","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@ampagency/amp-postcss-config","version":"1.2.0","author":{"name":"Amp Agency"},"_id":"@ampagency/amp-postcss-config@1.2.0","maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"dist":{"shasum":"31459ea2da57136ba35c70d6937971b7fbb22dfc","tarball":"https://registry.npmjs.org/@ampagency/amp-postcss-config/-/amp-postcss-config-1.2.0.tgz","fileCount":12,"integrity":"sha512-zJ6r0nW+Chp1zuGxdMc8iG5ouSnwsY12iNZMuw8UElL3qroiypi4Zfe7/Upp7kZ+mMzk6J/ed74SXPGFRVwXOQ==","signatures":[{"sig":"MEUCIBraCdxdOX2lbeG05/rCyzVZVuRfrNLu2RxodlW86lMgAiEApVRL/eGC+ufxZzX6++44xWzo+K++QK85qxKO30KW1RY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11991},"main":"index.js","gitHead":"489aa40c631b1ff1f0ae2c4f14c3891fb12d4a54","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"ethanmay","actor":{"name":"ethanmay","type":"user","email":"ethan@ethanmay.com"},"email":"ethan@ethanmay.com"},"repository":{"url":"git+https://github.com/ampagency/amp-wp-postcss.git","type":"git"},"_npmVersion":"10.8.1","description":"A PostCSS configuration for Amp WP projects","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"peerDependencies":{"10up-toolkit":"^6.4.1","postcss-each":"^1.1.0","postcss-nested":"^7.0.2","postcss-pxtorem":"^6.1.0","postcss-functions":"^4.0.2","postcss-simple-vars":"^7.0.1","postcss-gap-properties":"^6.0.0","postcss-at-rules-variables":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/amp-postcss-config_1.2.0_1751470291953_0.23491291046891294","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@ampagency/amp-postcss-config","version":"1.3.0","author":{"name":"Amp Agency"},"_id":"@ampagency/amp-postcss-config@1.3.0","maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"dist":{"shasum":"f8719c2dacf0f0ba859ce927c3be93cb2e1715d3","tarball":"https://registry.npmjs.org/@ampagency/amp-postcss-config/-/amp-postcss-config-1.3.0.tgz","fileCount":12,"integrity":"sha512-rta0abdcI6FJjuBAGtAlc93K2qMwHQW1NMjANKGo73i/w0+saz5NxmU9Gl17wcrBW4Br58Zr8ORgbdCrQRYodA==","signatures":[{"sig":"MEYCIQDUlxO2zwadwkGE2VfwE3ayrfQgbpcZ5CxgzKL4HQ5QhwIhAN7E0XNl6bSDvvKy4d/6rPXUrZDtjkNrDj0gcmPHVdGR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12032},"main":"index.js","gitHead":"112177e4439482973f85d71866ccdd070d072041","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"ethanmay","actor":{"name":"ethanmay","type":"user","email":"ethan@ethanmay.com"},"email":"ethan@ethanmay.com"},"repository":{"url":"git+https://github.com/ampagency/amp-wp-postcss.git","type":"git"},"_npmVersion":"10.8.1","description":"A PostCSS configuration for Amp WP projects","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"peerDependencies":{"10up-toolkit":"^6.4.1","postcss-each":"^1.1.0","postcss-nested":"^7.0.2","postcss-pxtorem":"^6.1.0","postcss-functions":"^4.0.2","postcss-simple-vars":"^7.0.1","postcss-gap-properties":"^6.0.0","postcss-at-rules-variables":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/amp-postcss-config_1.3.0_1751474184325_0.3550825009427341","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@ampagency/amp-postcss-config","version":"1.3.1","description":"A PostCSS configuration for Amp WP projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/ampagency/amp-wp-postcss.git"},"author":{"name":"Amp Agency"},"bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"peerDependencies":{"10up-toolkit":"^6.4.1","postcss-at-rules-variables":"^0.3.0","postcss-each":"^1.1.0","postcss-functions":"^4.0.2","postcss-gap-properties":"^6.0.0","postcss-nested":"^7.0.2","postcss-pxtorem":"^6.1.0","postcss-simple-vars":"^7.0.1"},"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","_id":"@ampagency/amp-postcss-config@1.3.1","gitHead":"09ff46c2fc2a32c64a945b220b949d03ffb98877","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-t26E/4Y8oVbOwOFoB7KghUld1kJzpgwAk+ehTZsr5etkGDa6MPk3J6wzi/whZWIQPOu/SCVRSbmXaT/BRgiROA==","shasum":"9342e093f9894c457887aafb0f1ddd4f53923f83","tarball":"https://registry.npmjs.org/@ampagency/amp-postcss-config/-/amp-postcss-config-1.3.1.tgz","fileCount":12,"unpackedSize":13719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFfH6oc+eTQ5G+Y7mZXdONxxNwzsdJCPZPcGkJQrrTojAiEA4rtO/UPhBsSjmp8W7UhjfmWYHq/KAWlCFm1OYV8s36g="}]},"_npmUser":{"name":"ethanmay","email":"ethan@ethanmay.com","actor":{"name":"ethanmay","email":"ethan@ethanmay.com","type":"user"}},"directories":{},"maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/amp-postcss-config_1.3.1_1751475480242_0.15586211568631647"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-23T19:04:28.894Z","modified":"2025-07-02T16:58:00.593Z","1.0.0":"2025-06-23T19:04:29.195Z","1.1.0":"2025-07-02T15:01:38.055Z","1.2.0":"2025-07-02T15:31:32.127Z","1.3.0":"2025-07-02T16:36:24.504Z","1.3.1":"2025-07-02T16:58:00.414Z"},"bugs":{"url":"https://github.com/ampagency/amp-wp-postcss/issues"},"author":{"name":"Amp Agency"},"homepage":"https://github.com/ampagency/amp-wp-postcss#readme","repository":{"type":"git","url":"git+https://github.com/ampagency/amp-wp-postcss.git"},"description":"A PostCSS configuration for Amp WP projects","maintainers":[{"name":"ethanmay","email":"ethan@ethanmay.com"}],"readme":"# ✨ Amp WP PostCSS\n\nThis project uses a modular and extensible PostCSS setup based on [10up-toolkit](https://www.npmjs.com/package/10up-toolkit), enhanced with custom plugins, mixins, variables, and functions. 🛠️\n\n## 📁 Location\n\nPostCSS config is defined in:\n\n```\n/index.js\n```\n\n## 🚀 Usage\n\nThe exported config is a function that accepts a `props` object. This allows you to override or extend PostCSS behavior dynamically.\n\n### 🧪 Example\n\n```js\nconst postcssConfig = require('./index');\n\nmodule.exports = (props) => {\n  return postcssConfig({\n    customMixins: {\n      rounded: {\n        borderRadius: '10px',\n      },\n    },\n    customVariables: {\n      primaryColor: '#0073aa',\n    },\n    customFunctions: {\n      double: (value) => parseFloat(value) * 2,\n    },\n    ...props\n  });\n};\n```\n\n## 🧩 Supported Custom Props\n\n| Prop                      | Type     | Description                                                                 |\n|---------------------------|----------|-----------------------------------------------------------------------------|\n| `customMixins`            | `object` | Merge additional mixins into `postcss-mixins`                              |\n| `customVariables`         | `object` | Override or extend `postcss-simple-vars` variables                         |\n| `customFunctions`         | `object` | Extend the `postcss-functions` plugin with custom JavaScript functions     |\n| `customPreloadPlugins`    | `object` | Inject plugins before the base config plugins                              |\n| `customAdditionalPlugins` | `object` | Inject plugins after the base and default plugins                          |\n\n## ⚙️ Base Behavior\n\n- Uses `10up-toolkit/config/postcss.config.js` as the base.\n- Enables `postcss-preset-env` with `stage: 0` and `custom-properties: true`.\n- Loads default mixins and variables from `/lib/mixins.js` and `/lib/variables.js`.\n- Loads default functions from `/lib/functions.js`.\n- Additional plugins from `/lib/plugins.js` are merged in.\n\n## 🛠️ Development\n\nTo build or watch styles:\n\n```bash\nnpm run build      # One-time build\nnpm run watch      # Dev server with HMR\n```\n","readmeFilename":"README.md"}