{"_id":"postcss-color-hex-alpha@11.0.1","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"5505e335c68a9efacc7dd131fbc7fc2ad10153df","tarball":"http://registry-npm.ywwl.com/postcss-color-hex-alpha/download/postcss-color-hex-alpha-11.0.1.tgz","fileCount":6,"integrity":"sha512-eZ+rhgVGXHmHTb7NJmTRNG0+ocf0Pccw6FoP+04B31NCjrjT5+SejLT3qevMzCUZp8tks7e9+aYz+nMIJ4Im+g==","signatures":[{"sig":"MEQCIH6QKBqFI1u3yQZvfg5HQ4Ulu2QcFgFwqUDD+Eu2Cr5FAiA9ZmhLu2rYh01PSSQuCq/pT32l3lNmANsAkfY1rQIqPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHtDLcVIoV7b85Z8wZn81S/O6RRueLb1Y9w7w1Ds2lw8AiBA1qhKjuxkc/Tk8Ay+jBClc2VpIBXLgi+tFVCuxrRhXA=="}],"unpackedSize":5789,"size":2795,"noattachment":false,"key":"/postcss-color-hex-alpha/-/postcss-color-hex-alpha-11.0.1.tgz"},"name":"postcss-color-hex-alpha","type":"module","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"c618f907fb48ed4a835f3b606b5889c9290815f6","license":"MIT","scripts":{},"version":"11.0.1","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-hex-alpha#readme","keywords":["4-digit","8-digit","alpha","color","css","csswg","hex","postcss","postcss-plugin","spec","specification","transparency","transparent","w3c"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-color-hex-alpha"},"_npmVersion":"11.13.0","description":"Use 4 & 8 character hex color notation in CSS","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"moox","email":"npm@moox.io"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_nodeVersion":"26.1.0","contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"},{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},{"name":"Maxime Thirouin"}],"dependencies":{"@csstools/utilities":"^3.0.0","postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-color-hex-alpha_11.0.1_1788708745027_0.8776499775412794"},"readme":"# PostCSS Color Hex Alpha [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install postcss-color-hex-alpha --save-dev`\n\n[PostCSS Color Hex Alpha] lets you use 4 & 8 character hex color notation in\nCSS, following the [CSS Color Module] specification.\n\n```css\nbody {\n\tbackground: #9d9c;\n}\n\n/* becomes */\n\nbody {\n\tbackground: rgba(153,221,153,0.8);\n}\n```\n\n## Usage\n\nAdd [PostCSS Color Hex Alpha] to your project:\n\n```bash\nnpm install postcss postcss-color-hex-alpha --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssColorHexAlpha = require('postcss-color-hex-alpha');\n\npostcss([\n\tpostcssColorHexAlpha(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is not preserved.\n\n```js\npostcssColorHexAlpha({ preserve: true })\n```\n\n```css\nbody {\n\tbackground: #9d9c;\n}\n\n/* becomes */\n\nbody {\n\tbackground: rgba(153,221,153,0.8);\n\tbackground: #9d9c;\n}\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#hexadecimal-alpha-notation\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-color-hex-alpha\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Color Hex Alpha]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-hex-alpha\n[CSS Color Module]: https://www.w3.org/TR/css-color-4/#hex-notation\n","publish_time":1788708745121,"_cnpm_publish_time":1788708745121,"dist-tags":{"latest":"11.0.1"}}