{"_id":"postcss-opacity-percentage","_rev":"3757883","name":"postcss-opacity-percentage","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"time":{"modified":"2025-03-18T07:12:14.000Z","created":"2021-11-08T15:21:48.405Z","3.0.0":"2024-09-03T16:24:08.550Z","2.0.0":"2023-01-31T17:44:45.294Z","1.1.3":"2022-12-16T13:44:20.897Z","1.1.2":"2022-01-31T12:46:24.285Z","1.1.1":"2022-01-26T09:13:03.182Z","1.1.0":"2021-12-29T11:22:53.836Z","1.0.0":"2021-11-08T17:58:55.760Z","0.0.3":"2021-11-08T17:37:10.244Z","0.0.2":"2021-11-08T15:44:52.395Z","0.0.1":"2021-11-08T15:21:48.405Z"},"users":{},"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"versions":{"3.0.0":{"name":"postcss-opacity-percentage","version":"3.0.0","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=18"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 node --test","coverage":"c8 report --reporter=lcov","prepare":"husky","publish":"clean-publish"},"peerDependencies":{"postcss":"^8.4"},"devDependencies":{"c8":"^10.1.2","clean-publish":"^5.0.0","husky":"^9.0.7","lint-staged":"^15.0.2","postcss":"^8.4.5","xo":"^0.54.0"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"_id":"postcss-opacity-percentage@3.0.0","gitHead":"4a63085c2689d45dcdcf010736a0800f3d89e679","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_nodeVersion":"20.16.0","_npmVersion":"10.8.3","dist":{"shasum":"0b0db5ed5db5670e067044b8030b89c216e1eb0a","size":2431,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-3.0.0.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_3.0.0_1725380648385_0.40164191653724934"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-03T16:24:08.550Z","publish_time":1725380648550,"_source_registry_name":"default","_cnpm_publish_time":1725380648550},"2.0.0":{"name":"postcss-opacity-percentage","version":"2.0.0","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":"^14 || ^16 || >=18"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov","publish":"clean-publish"},"peerDependencies":{"postcss":"^8.2"},"devDependencies":{"ava":"^5.1.1","c8":"^7.10.0","clean-publish":"^4.0.0","husky":"^8.0.0","lint-staged":"^13.0.0","postcss":"^8.4.5","xo":"^0.53.1"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"96ed9415a7011ba5b8b90b49d40467132462ec48","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@2.0.0","_nodeVersion":"19.1.0","_npmVersion":"9.1.2","dist":{"shasum":"c0a56060cd4586e3f954dbde1efffc2deed53002","size":2410,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-2.0.0.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_2.0.0_1675187085102_0.8902435598953335"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-31T17:44:45.294Z","publish_time":1675187085294,"_cnpm_publish_time":1675187085294},"1.1.3":{"name":"postcss-opacity-percentage","version":"1.1.3","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":"^12 || ^14 || >=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov","publish":"clean-publish"},"peerDependencies":{"postcss":"^8.2"},"devDependencies":{"ava":"^4.0.1","c8":"^7.10.0","clean-publish":"^4.0.0","husky":"^8.0.0","lint-staged":"^13.0.0","postcss":"^8.4.5","xo":"^0.52.2"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"c7e9b9a6a7e132746c58f7ec950b9355ab24bd9c","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@1.1.3","_nodeVersion":"19.1.0","_npmVersion":"9.1.2","dist":{"shasum":"5b89b35551a556e20c5d23eb5260fbfcf5245da6","size":2406,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-1.1.3.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_1.1.3_1671198260757_0.02204678830960427"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-16T13:44:25.178Z","publish_time":1671198260897,"_cnpm_publish_time":1671198260897},"1.1.2":{"name":"postcss-opacity-percentage","version":"1.1.2","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":"^12 || ^14 || >=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov","publish":"clean-publish"},"devDependencies":{"ava":"^4.0.1","c8":"^7.10.0","clean-publish":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.0.2","postcss":"^8.4.5","xo":"^0.47.0"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"c25a3862c8d4eb968dd86f69af56a6dea53607c0","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@1.1.2","_nodeVersion":"17.3.0","_npmVersion":"8.4.0","dist":{"shasum":"bd698bb3670a0a27f6d657cc16744b3ebf3b1145","size":2281,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-1.1.2.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_1.1.2_1643633184099_0.05592835137650498"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-31T12:46:30.884Z","publish_time":1643633184285,"_cnpm_publish_time":1643633184285},"1.1.1":{"name":"postcss-opacity-percentage","version":"1.1.1","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","peerDependencies":{"postcss":">=8"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"e28657d29fdc178f4327fe1fbf981541754c14f9","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@1.1.1","_nodeVersion":"17.3.0","_npmVersion":"8.3.1","dist":{"shasum":"8e629b4b65e197dad715ab4cb9be8d732fd38bbb","size":2130,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-1.1.1.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_1.1.1_1643188382970_0.007975796588453266"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-26T09:25:36.045Z","publish_time":1643188383182,"_cnpm_publish_time":1643188383182},"1.1.0":{"name":"postcss-opacity-percentage","version":"1.1.0","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mrcgrtz/postcss-opacity-percentage.git"},"funding":[{"type":"kofi","url":"https://ko-fi.com/mrcgrtz"},{"type":"liberapay","url":"https://liberapay.com/mrcgrtz"}],"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","peerDependencies":{"postcss":">=8"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"94828cf44aac9072d2a618938d218cbb5e8ea175","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@1.1.0","_nodeVersion":"17.3.0","_npmVersion":"8.3.0","dist":{"shasum":"2a9385ae6a5ab96aa7ac8eaa2ddbd09a5af0ffc1","size":2131,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-1.1.0.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_1.1.0_1640776973664_0.3312933730984995"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-29T11:23:08.814Z","publish_time":1640776973836,"_cnpm_publish_time":1640776973836},"1.0.0":{"name":"postcss-opacity-percentage","version":"1.0.0","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Dreamseer/postcss-opacity-percentage.git"},"funding":{"type":"kofi","url":"https://ko-fi.com/dreamseer"},"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov","publish":"clean-publish"},"devDependencies":{"ava":"^3.15.0","c8":"^7.10.0","clean-publish":"^3.4.3","husky":"^7.0.4","lint-staged":"^11.2.6","xo":"^0.46.4"},"peerDependencies":{"postcss":">=8"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"0f5604a4e936b6b89bbd12cad5dd536176c085ba","bugs":{"url":"https://github.com/Dreamseer/postcss-opacity-percentage/issues"},"homepage":"https://github.com/Dreamseer/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@1.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"9965878f908f79085d7d4088202e52dd508ce54e","size":2086,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-1.0.0.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_1.0.0_1636394335597_0.5340680405794798"},"_hasShrinkwrap":false,"publish_time":1636394335760,"_cnpm_publish_time":1636394335760,"_cnpmcore_publish_time":"2021-12-16T15:42:46.206Z"},"0.0.3":{"name":"postcss-opacity-percentage","version":"0.0.3","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Dreamseer/postcss-opacity-percentage.git"},"funding":{"type":"kofi","url":"https://ko-fi.com/dreamseer"},"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov"},"devDependencies":{"ava":"^3.15.0","c8":"^7.10.0","husky":"^7.0.4","lint-staged":"^11.2.6","xo":"^0.46.4"},"peerDependencies":{"postcss":">=8"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"2423bc197ac9d2bb879a7949776c323c4b603fae","bugs":{"url":"https://github.com/Dreamseer/postcss-opacity-percentage/issues"},"homepage":"https://github.com/Dreamseer/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@0.0.3","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"3b0a9ca98c7596f6ff36d8048f9bb7af52ba8afc","size":2068,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-0.0.3.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_0.0.3_1636393030118_0.7203549968333229"},"_hasShrinkwrap":false,"publish_time":1636393030244,"_cnpm_publish_time":1636393030244,"_cnpmcore_publish_time":"2021-12-16T15:42:46.430Z"},"0.0.2":{"name":"postcss-opacity-percentage","version":"0.0.2","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Dreamseer/postcss-opacity-percentage.git"},"funding":{"type":"kofi","url":"https://ko-fi.com/dreamseer"},"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov"},"devDependencies":{"ava":"^3.15.0","c8":"^7.10.0","husky":"^7.0.4","lint-staged":"^11.2.6","xo":"^0.46.4"},"peerDependencies":{"postcss":">=8"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"30a8686c316804a96c3b19a5050a33cce717fc1e","bugs":{"url":"https://github.com/Dreamseer/postcss-opacity-percentage/issues"},"homepage":"https://github.com/Dreamseer/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@0.0.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"0516fd4f76a3d40cce989c5485db7e8207918019","size":2084,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-0.0.2.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_0.0.2_1636386292266_0.7242645070625477"},"_hasShrinkwrap":false,"publish_time":1636386292395,"_cnpm_publish_time":1636386292395,"_cnpmcore_publish_time":"2021-12-16T15:42:46.655Z"},"0.0.1":{"name":"postcss-opacity-percentage","version":"0.0.1","description":"PostCSS plugin to transform percentage-based opacity values to more compatible floating-point values.","keywords":["postcss","css","postcss-plugin","opacity"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Dreamseer/postcss-opacity-percentage.git"},"funding":{"type":"kofi","url":"https://ko-fi.com/dreamseer"},"author":{"name":"Marc Görtz","email":"git@marcgoertz.de","url":"https://marcgoertz.de/"},"engines":{"node":">=16"},"main":"index.js","scripts":{"format":"xo --fix","test":"xo && c8 ava","coverage":"c8 report --reporter=lcov"},"devDependencies":{"ava":"^3.15.0","c8":"^7.10.0","husky":"^7.0.4","lint-staged":"^11.2.6","xo":"^0.46.4"},"peerDependencies":{"postcss":">=8"},"lint-staged":{"*.js":"xo --fix"},"xo":{"rules":{"unicorn/prefer-module":"off"}},"gitHead":"9509aecfb3ba261e2704725f31d27d81550bcef1","bugs":{"url":"https://github.com/Dreamseer/postcss-opacity-percentage/issues"},"homepage":"https://github.com/Dreamseer/postcss-opacity-percentage#readme","_id":"postcss-opacity-percentage@0.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"05177678463863de7b1a24fe72c3afe6eb7327b0","size":4003,"noattachment":false,"key":"/postcss-opacity-percentage/-/postcss-opacity-percentage-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-opacity-percentage/download/postcss-opacity-percentage-0.0.1.tgz"},"_npmUser":{"name":"dreamseer","email":"mail@marcgoertz.de"},"directories":{},"maintainers":[{"name":"dreamseer","email":"mail@marcgoertz.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-opacity-percentage_0.0.1_1636384908258_0.5082162138296813"},"_hasShrinkwrap":false,"publish_time":1636384908405,"_cnpm_publish_time":1636384908405,"_cnpmcore_publish_time":"2021-12-16T15:42:46.837Z"}},"readme":"# PostCSS Opacity Percentage\n\n[![Test](https://github.com/mrcgrtz/postcss-opacity-percentage/actions/workflows/test.yml/badge.svg)](https://github.com/mrcgrtz/postcss-opacity-percentage/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/mrcgrtz/postcss-opacity-percentage/badge.svg?branch=main)](https://coveralls.io/github/mrcgrtz/postcss-opacity-percentage?branch=main)\n[![Install size](https://packagephobia.now.sh/badge?p=postcss-opacity-percentage)](https://packagephobia.now.sh/result?p=postcss-opacity-percentage)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![MIT license](https://img.shields.io/github/license/mrcgrtz/postcss-opacity-percentage.svg)](https://github.com/mrcgrtz/postcss-opacity-percentage/blob/main/LICENSE.md)\n\n[PostCSS](https://github.com/postcss/postcss) plugin to transform [percentage-based opacity values](https://www.w3.org/TR/css-color-4/#transparency) to more compatible floating-point values.\n\n## Install\n\nUsing [npm](https://www.npmjs.com/get-npm):\n\n```bash\nnpm install --save-dev postcss postcss-opacity-percentage\n```\n\nUsing [yarn](https://yarnpkg.com/):\n\n```bash\nyarn add --dev postcss postcss-opacity-percentage\n```\n\n## Example\n\n```css\n/* Input */\n.foo {\n  opacity: 45%;\n}\n```\n\n```css\n/* Output */\n.foo {\n  opacity: 0.45;\n}\n```\n\n## Usage\n\n```js\npostcss([\n  require('postcss-opacity-percentage'),\n]);\n```\n\nSee [PostCSS](https://github.com/postcss/postcss) documentation for examples for your environment.\n\n### `postcss-preset-env`\n\nIf you are using [`postcss-preset-env@>=7.3.0`](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/CHANGELOG.md#730-january-31-2022), you already have this plugin installed via this package.\n\n## Options\n\n### `preserve`\n\nThe `preserve` option determines whether the original percentage value is preserved. By default, it is not preserved.\n\n```js\n// Keep the original notation\npostcss([\n  require('postcss-opacity-percentage')({preserve: true}),\n]);\n```\n\n```css\n/* Input */\n.foo {\n  opacity: 45%;\n}\n```\n\n```css\n/* Output */\n.foo {\n  opacity: 0.45;\n  opacity: 45%;\n}\n```\n\n## License\n\nMIT © [Marc Görtz](https://marcgoertz.de/)\n","_attachments":{},"homepage":"https://github.com/mrcgrtz/postcss-opacity-percentage#readme","bugs":{"url":"https://github.com/mrcgrtz/postcss-opacity-percentage/issues"},"license":"MIT"}