Skip to content

Commit d4f6246

Browse files
collect plugins data
1 parent 4638415 commit d4f6246

195 files changed

Lines changed: 11587 additions & 12557 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

npm-data/links.json

Lines changed: 207 additions & 212 deletions
Large diffs are not rendered by default.

npm-data/maintained-plugins.json

Lines changed: 542 additions & 546 deletions
Large diffs are not rendered by default.

npm-data/malicious-packages.json

Lines changed: 147 additions & 0 deletions
Large diffs are not rendered by default.

npm-data/maybe-plugins.json

Lines changed: 7985 additions & 9091 deletions
Large diffs are not rendered by default.

npm-data/plugins.json

Lines changed: 2509 additions & 2513 deletions
Large diffs are not rendered by default.

npm-data/plugins/@brandocms/europacss.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

npm-data/plugins/@buddye/postcss-remove-important.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,5 @@
205205
"bugs": {
206206
"url": "https://github.com/buddye/postcss-remove-important/issues"
207207
},
208-
"_downloads": 939
208+
"_downloads": 1071
209209
}

npm-data/plugins/@classicmike/postcss-shadrem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,5 +376,5 @@
376376
],
377377
"readme": "# Shad-REM\n\nWelcome to **Shad-REM**, a PostCSS plugin designed to help you work with REM units within shadow DOMs. Shad-REM allows you to use a new CSS custom unit property called `--shadrem` which lets you base your REM calculations on the shadow root instead of the document root node.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Examples](#examples)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\n\nIn web development, managing CSS units within shadow DOMs can be challenging. Traditional REM units are based on the root font size of the document, which may not always be what you want when working within shadow roots. Shad-REM solves this problem by introducing a new CSS unit, `shad rem`, that respects the font size of the shadow root.\n\n## Features\n\n- **Shadow Root Aware:** Converts REM units to `shad rem` units based on the shadow root's font size.\n- **Seamless Integration:** Works seamlessly with your existing PostCSS setup.\n- **Flexible:** Allows you to maintain consistent styling within shadow DOMs.\n\n## Installation\n\nTo install Shad-REM, you need to have PostCSS and the PostCSS CLI set up in your project. Then, you can install Shad-REM via npm:\n\n```bash\nnpm install @classicmike/postcss-shadrem --save-dev\n```\n\n## Usage\n\nOnce installed, you need to configure PostCSS to use the Shad-REM plugin. Create or update your PostCSS configuration file (e.g., `postcss.config.js` or `postcss.config.cjs`) to include Shad-REM.\n\n```javascript\n// postcss.config.js\nmodule.exports = {\n plugins: [\n require('@classicmike/postcss-shadrem'),\n // other plugins\n ]\n};\n```\n\n## Examples\n\nHere are some examples of how Shad-REM transforms your CSS:\n\n### A note before using ShadREM.\nBefore using ShadREM, if you have a root font size other than what is set in your browser default, ensure your shadow root element has that font size set up. I.e:\n\n```\n // What used to be in the document root element.\n :host {\n font-size: 16px;\n }\n```\n\n### Before Shad-REM\n\n```css\n/* Input CSS */\n.my-element {\n font-size: 1.5rem;\n margin: 2rem;\n}\n```\n\n### After Shad-REM\n\nAssuming a base font size of `16px` in the shadow root, the output CSS will be:\n\n```css\n/* Output CSS */\n.my-element {\n font-size: calc(1.5 * var(--shadrem)); /* Equivalent to 24px if base font size is 16px */\n margin: calc(2 * var(--shadrem)); /* Equivalent to 32px if base font size is 16px */\n}\n```\n\n## Contributing\n\nWe welcome contributions to Shad-REM! If you find any issues or have ideas for improvements, please submit a pull request or open an issue on our GitHub repository.\n\n## License\n\nShad-REM is licensed under the [MIT License](LICENSE). See the [LICENSE](LICENSE) file for more information.\n\n---\n\nFeel free to customize and extend Shad-REM to better fit your needs. Happy coding!\n",
378378
"readmeFilename": "README.md",
379-
"_downloads": 715
379+
"_downloads": 755
380380
}

npm-data/plugins/@cookie_gg/postcss-responsive-easier.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,5 +1118,5 @@
11181118
"license": "MIT",
11191119
"readme": "# postcss-responsive-easier\n\nPostCSS plugin that makes it easier to write responsive styles.\n\n## Install\n\n```bash\nnpm i -D postcss @cookie_gg/postcss-responsive-easier\n# or\nyarn add -D postcss @cookie_gg/postcss-responsive-easier\n```\n\n## Usage\n\nYou have to use this plugin with [postcss-nested](https://github.com/postcss/postcss-nested) and set it after postcss-responsive-easier.\n\n```js:postcss.config.js\nmodule.exports = {\n ...\n plugins: [\n // other plugins...\n ['@cookie_gg/postcss-responsive-easier', {\n skip: '*',\n breakpoints: ['1000px', '750px'],\n }\n ],\n ['postcss-nested']\n ]\n ...\n}\n```\n\n```css:style.css\n/* before */\nh1 {\n font-size: 50px | 25px | 30px;\n}\n\n/* after */\n@media (min-width: 1001px) {\n h1 {\n font-size: 50px;\n }\n}\n@media (min-width: 751px) and (max-width: 1000px) {\n h1 {\n font-size: 25px;\n }\n}\n@media (max-width: 750px) {\n h1 {\n font-size: 30px;\n }\n}\n```\n\n## Options\n\n**breakpoints: `Array<String>`**\n\n> default: `['1000px', '750px']`\n\nProvide a custom set of breakpoints\n\n**skip: `String`**\n\n> default: '\\*'\n\nDefine the skip syntax used to ignore portions of the shorthand.\n\n## Experimental\n\n> this is an experimental feature, so it will become reasons of error\n\nYou can use responsive separator `|` in calc, var, rgb and rgba.\n\n```css:global.css\n:root {\n --spacing-s: 15px;\n --spacing-m: 25px;\n --spacing-l: 35px;\n}\n```\n\n```css:style.css\n/* before */\nh1 {\n font-size: calc((50px | 25px | 30px) * (2 | 3 | 4));\n padding: var((--spacing-s | --spacing-m | --spacing-l));\n}\n\n/* after */\n@media (min-width: 1001px) {\n h1 {\n font-size: calc(50px * 2);\n padding: var(--spacing-s);\n }\n}\n@media (min-width: 751px) and (max-width: 1000px) {\n h1 {\n font-size: calc(25px * 3);\n padding: var(--spacing-m);\n }\n}\n@media (max-width: 750px) {\n h1 {\n font-size: calc(30px * 4);\n padding: var(--spacing-l);\n }\n}\n```\n",
11201120
"readmeFilename": "README.md",
1121-
"_downloads": 16
1121+
"_downloads": 18
11221122
}

npm-data/plugins/@csstools/postcss-alpha-function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,5 @@
272272
],
273273
"readme": "# PostCSS Alpha Function [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-alpha-function --save-dev`\n\n[PostCSS Alpha Function] lets you use the `alpha` function in\nCSS, following the [CSS Color] specification.\n\n```css\n.color {\n\tcolor: alpha(from #dddd / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: alpha(from rgb(2 1 0 / var(--a)) / calc(alpha / 2));\n}\n\n/* becomes */\n\n.color {\n\tcolor: rgb(from #dddd r g b / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: rgb(from rgb(2 1 0 / var(--a)) r g b / calc(alpha / 2));\n}\n```\n\n## Usage\n\nAdd [PostCSS Alpha Function] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-alpha-function --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssAlphaFunction = require('@csstools/postcss-alpha-function');\n\npostcss([\n\tpostcssAlphaFunction(/* 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\npostcssAlphaFunction({ preserve: true })\n```\n\n```css\n.color {\n\tcolor: alpha(from #dddd / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: alpha(from rgb(2 1 0 / var(--a)) / calc(alpha / 2));\n}\n\n/* becomes */\n\n.color {\n\tcolor: rgb(from #dddd r g b / calc(alpha / 2));\n\tcolor: alpha(from #dddd / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: rgb(from rgb(2 1 0 / var(--a)) r g b / calc(alpha / 2));\n}\n\n@supports (color: alpha(from red / 1)) and (color: rgb(0 0 0 / 0)) {\n:root {\n\t--a-color: alpha(from rgb(2 1 0 / var(--a)) / calc(alpha / 2));\n}\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\npostcssAlphaFunction({ enableProgressiveCustomProperties: false })\n```\n\n```css\n.color {\n\tcolor: alpha(from #dddd / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: alpha(from rgb(2 1 0 / var(--a)) / calc(alpha / 2));\n}\n\n/* becomes */\n\n.color {\n\tcolor: rgb(from #dddd r g b / calc(alpha / 2));\n\tcolor: alpha(from #dddd / calc(alpha / 2));\n}\n\n:root {\n\t--a-color: rgb(from rgb(2 1 0 / var(--a)) r g b / calc(alpha / 2));\n\t--a-color: alpha(from rgb(2 1 0 / var(--a)) / calc(alpha / 2));\n}\n```\n\n_Custom properties do not fallback to the previous declaration_\n\n## Copyright : color conversions\n\nThis software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/tree/main/css-color-4. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#alpha-function\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-alpha-function\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Alpha Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-alpha-function\n[CSS Color]: https://drafts.csswg.org/css-color-5/#relative-alpha\n",
274274
"readmeFilename": "README.md",
275-
"_downloads": 1444306
275+
"_downloads": 1508889
276276
}

0 commit comments

Comments
 (0)