Skip to content

Commit 8b8b943

Browse files
collect plugins data
1 parent 221b0a8 commit 8b8b943

205 files changed

Lines changed: 2999 additions & 2856 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: 208 additions & 208 deletions
Large diffs are not rendered by default.

npm-data/maintained-plugins.json

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

npm-data/maybe-plugins.json

Lines changed: 1057 additions & 1104 deletions
Large diffs are not rendered by default.

npm-data/plugins.json

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

npm-data/plugins/@ackl/postcss-logical.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@
615615
11,
616616
15,
617617
15,
618-
8
618+
8,
619+
25
619620
]
620621
}

npm-data/plugins/@bung87/postcss-sprites.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
59,
226226
12,
227227
30,
228-
31
228+
31,
229+
29
229230
]
230231
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@
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",
379379
"_downloads": [
380-
456,
381380
456,
382381
446,
383382
530,
@@ -396,6 +395,7 @@
396395
432,
397396
452,
398397
471,
399-
506
398+
506,
399+
535
400400
]
401401
}

npm-data/plugins/@csstools/postcss-contrast-color-function.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,6 @@
26532653
"readme": "# PostCSS Contrast Color 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-contrast-color-function --save-dev`\n\n[PostCSS Contrast Color Function] lets you dynamically specify a text color with adequate contrast following the [CSS Color 5 Specification].\n\n```css\n.color {\n\tcolor: contrast-color(oklch(82% 0.2 330));\n}\n\n/* becomes */\n\n.color {\n\tcolor: rgb(0, 0, 0);\n\tcolor: contrast-color(oklch(82% 0.2 330));\n}\n```\n\n## Usage\n\nAdd [PostCSS Contrast Color Function] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-contrast-color-function --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssContrastColorFunction = require('@csstools/postcss-contrast-color-function');\n\npostcss([\n\tpostcssContrastColorFunction(/* 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 preserved.\n\n```js\npostcssContrastColorFunction({ preserve: false })\n```\n\n```css\n.color {\n\tcolor: contrast-color(oklch(82% 0.2 330));\n}\n\n/* becomes */\n\n.color {\n\tcolor: rgb(0, 0, 0);\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/#contrast-color-function\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-contrast-color-function\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Contrast Color Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-contrast-color-function\n[CSS Color 5 Specification]: https://drafts.csswg.org/css-color-5/#contrast-color\n",
26542654
"readmeFilename": "README.md",
26552655
"_downloads": [
2656-
3927008,
26572656
3964899,
26582657
3819640,
26592658
4146520,
@@ -2672,6 +2671,7 @@
26722671
4645116,
26732672
4654419,
26742673
4473032,
2675-
4631912
2674+
4631912,
2675+
4676983
26762676
]
26772677
}

npm-data/plugins/@csstools/postcss-design-tokens.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,6 @@
32123212
"readme": "# PostCSS Design Tokens [<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-design-tokens --save-dev`\n\n[PostCSS Design Tokens] lets you use design tokens in your CSS source files.\n\n```json\n{\n\t\"color\": {\n\t\t\"background\": {\n\t\t\t\"primary\": { \"value\": \"#fff\" }\n\t\t}\n\t},\n\t\"size\": {\n\t\t\"spacing\": {\n\t\t\t\"small\": { \"value\": \"16px\" },\n\t\t\t\"medium\": { \"value\": \"18px\" },\n\t\t\t\"medium-alias\": { \"value\": \"{size.spacing.medium}\" }\n\t\t}\n\t},\n\t\"viewport\": {\n\t\t\"medium\": { \"value\": \"35rem\" }\n\t}\n}\n```\n\n```css\n@design-tokens url('./tokens.json') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n\tpadding-top: design-token('size.spacing.small');\n\tpadding-left: design-token('size.spacing.small' to px);\n\tpadding-bottom: design-token('size.spacing.small' to rem);\n}\n\n@media (min-width: design-token('viewport.medium')) {\n\t.foo {\n\t\tpadding-bottom: design-token('size.spacing.medium-alias' to rem);\n\t}\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #fff;\n\tpadding-top: 16px;\n\tpadding-left: 16px;\n\tpadding-bottom: 1rem;\n}\n\n@media (min-width: 35rem) {\n\t.foo {\n\t\tpadding-bottom: 1.125rem;\n\t}\n}\n```\n\n## Usage\n\nAdd [PostCSS Design Tokens] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-design-tokens --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssDesignTokens = require('@csstools/postcss-design-tokens');\n\npostcss([\n\tpostcssDesignTokens(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Formats\n\nAt this time there is no standardized format for design tokens.\nAlthough there is an ongoing effort to create this, we feel it is still too early to adopt this.\n\nFor the moment we only support [Style Dictionary](https://amzn.github.io/style-dictionary/#/).\nUse `style-dictionary3` in `@design-tokens` rules to pick this format.\n\n## Options\n\n### is\n\nThe `is` option determines which design tokens are used.<br>\nThis allows you to generate multiple themed stylesheets<br>by running PostCSS multiple times with different configurations.\n\nBy default only `@design-tokens` without any `when('foo')` conditions are used.\n\n_This plugin itself does not produce multiple outputs, it only provides an API to change the output._\n\n#### Example usage\n\n**For these two token files :**\n\n```json\n{\n\t\"color\": {\n\t\t\"background\": {\n\t\t\t\"primary\": { \"value\": \"#0ff\" }\n\t\t}\n\t}\n}\n```\n\n```json\n{\n\t\"color\": {\n\t\t\"background\": {\n\t\t\t\"primary\": { \"value\": \"#f0f\" }\n\t\t}\n\t}\n}\n```\n\n**And this CSS :**\n\n```css\n@design-tokens url('./tokens-brand-1.json') format('style-dictionary3');\n@design-tokens url('./tokens-brand-2.json') when('brand-2') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n}\n```\n\n**You can configure :**\n\n##### No `is` option.\n\n```js\npostcssDesignTokens()\n```\n\n```css\n@design-tokens url('./tokens-brand-1.json') format('style-dictionary3');\n@design-tokens url('./tokens-brand-2.json') when('brand-2') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #0ff;\n}\n```\n\n##### `is` option set to 'brand-2'.\n\n```js\npostcssDesignTokens({ is: ['brand-2'] })\n```\n\n```css\n@design-tokens url('./tokens-brand-1.json') format('style-dictionary3');\n@design-tokens url('./tokens-brand-2.json') when('brand-2') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #f0f;\n}\n```\n\n### unitsAndValues\n\nThe `unitsAndValues` option allows you to control some aspects of how design values are converted to CSS.\n`rem` <-> `px` for example can only be calculated when we know the root font size.\n\n#### rootFontSize\n\ndefaults to `16`\n\n```js\npostcssDesignTokens({\n\tunitsAndValues: {\n\t\trootFontSize: 20,\n\t},\n})\n```\n\n```css\n@design-tokens url('./tokens.json') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n\tpadding-top: design-token('size.spacing.small');\n\tpadding-left: design-token('size.spacing.small' to px);\n\tpadding-bottom: design-token('size.spacing.small' to rem);\n}\n\n@media (min-width: design-token('viewport.medium')) {\n\t.foo {\n\t\tpadding-bottom: design-token('size.spacing.medium-alias' to rem);\n\t}\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #fff;\n\tpadding-top: 16px;\n\tpadding-left: 16px;\n\tpadding-bottom: 0.8rem;\n}\n\n@media (min-width: 35rem) {\n\t.foo {\n\t\tpadding-bottom: 0.9rem;\n\t}\n}\n```\n\n### Customize function and at rule names\n\n#### importAtRuleName\n\nThe `importAtRuleName` option allows you to set a custom alias for `@design-tokens`.\n\n```js\npostcssDesignTokens({ importAtRuleName: 'tokens' })\n```\n\n```css\n@tokens url('./tokens.json') format('style-dictionary3');\n\n.foo {\n\tcolor: design-token('color.background.primary');\n\tpadding-top: design-token('size.spacing.small');\n\tpadding-left: design-token('size.spacing.small' to px);\n\tpadding-bottom: design-token('size.spacing.small' to rem);\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #fff;\n\tpadding-top: 16px;\n\tpadding-left: 16px;\n\tpadding-bottom: 1rem;\n}\n```\n\n#### valueFunctionName\n\nThe `valueFunctionName` option allows you to set a custom alias for `design-token`.\n\n```js\npostcssDesignTokens({ valueFunctionName: 'token' })\n```\n\n```css\n@design-tokens url('./tokens.json') format('style-dictionary3');\n\n.foo {\n\tcolor: token('color.background.primary');\n\tpadding-top: token('size.spacing.small');\n\tpadding-left: token('size.spacing.small' to px);\n\tpadding-bottom: token('size.spacing.small' to rem);\n}\n\n/* becomes */\n\n.foo {\n\tcolor: #fff;\n\tpadding-top: 16px;\n\tpadding-left: 16px;\n\tpadding-bottom: 1rem;\n}\n```\n\n## Syntax\n\n[PostCSS Design Tokens] is non-standard and is not part of any official CSS Specification.\n\n### Editor support\n\nThis is all very new and we hope that one day design tokens will become first class citizens in editors and other tools.\nUntil then we will do our best to provide extensions.\nThese will have rough edges but should illustrate were we want to go.\n\n| editor | plugin |\n| --- | --- |\n| VSCode | [CSSTools Design Tokens](https://marketplace.visualstudio.com/items?itemName=RomainMenke.csstools-design-tokens) |\n\n### `@design-tokens` rule\n\nThe `@design-tokens` rule is used to import design tokens from a JSON file into your CSS.\n\n```css\n@design-tokens url('./tokens.json') format('style-dictionary3');\n```\n\n```css\n@design-tokens url('./tokens.json') format('style-dictionary3');\n@design-tokens url('./tokens-dark-mode.json') format('style-dictionary3') when('dark');\n```\n\nYou can also import tokens from an `npm` package:\n\n```css\n@design-tokens url('node_modules:my-npm-package/tokens.json') format('style-dictionary3');\n@design-tokens url('node_modules:my-npm-package/tokens-dark-mode.json') format('style-dictionary3') when('dark');\n```\n\n```\n@design-tokens [ <url> | <string> ]\n [ when(<theme-condition>*) ]?\n format(<format-name>);\n\n<theme-condition> = <string>\n\n<format-name> = [ 'style-dictionary3' ]\n```\n\nAll `@design-tokens` rules in a document are evaluated in order of appearance.\nIf a token with the same path and name already exists it will be overridden.\n\nAll `@design-tokens` rules are evaluated before any `design-token()` functions.\n\n`@design-tokens` rules can be conditional through `when` conditions. Multiple values can be specified in `when`.<br>\nMultiple conditions always have an `AND` relationship.\n\n> ```css\n> /* only evaluated when tooling receives 'blue' and 'muted' as arguments */\n> @design-tokens url('./tokens.json') format('style-dictionary3') when('blue' 'muted');\n> ```\n\n`@design-tokens` rules can never be made conditional through `@supports`, `@media` or other conditional rules.\n\n> ```css\n> @media (min-width: 500px) {\n> @design-tokens url('./tokens.json') format('style-dictionary3'); /* always evaluated */\n> }\n> ```\n\nAny form of nesting is meaningless, `@design-tokens` will always be evaluated as if they were declared at the top level.\n\n\n### `design-token()` function\n\nThe `design-token()` function takes a token path and returns the token value.\n\n```css\n.foo {\n\tcolor: design-token('color.background.primary');\n}\n```\n\n```\ndesign-token() = design-token( <token-path> [ to <unit> ]? )\n\n<token-path> = <string>\n<unit> = [ px | rem | ... ]\n```\n\nThe plugin can convert `px` to `rem` and `rem` to `px` via the [`unitsandvalues`](#unitsandvalues) plugin options.\nWhen a design token is unit-less any `unit` can be assigned with `to`.\n\n#### [Stylelint](https://stylelint.io/user-guide/rules/declaration-property-value-no-unknown/#propertiessyntax--property-syntax-)\n\nStylelint is able to check for unknown property values.\nSetting the correct configuration for this rule makes it possible to check even non-standard syntax.\n\n```js\n\t// Disallow unknown values for properties within declarations.\n\t'declaration-property-value-no-unknown': [\n\t\ttrue,\n\t\t{\n\t\t\tpropertiesSyntax: {\n\t\t\t\tcolor: '| <design-token()>',\n\t\t\t\t// ... more properties ...\n\t\t\t},\n\t\t\ttypesSyntax: {\n\t\t\t\t'<design-token()>': 'design-token( <string> [ to <ident> ]? )',\n\t\t\t},\n\t\t},\n\t],\n```\n\n## Further reading\n\n- [Why we think PostCSS Design Tokens is needed]\n- [About Design Tokens (Adobe Spectrum)]\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-design-tokens\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Design Tokens]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-design-tokens\n[Why we think PostCSS Design Tokens is needed]: https://github.com/csstools/postcss-plugins/wiki/Why-we-think-PostCSS-Design-Tokens-is-needed\n[About Design Tokens (Adobe Spectrum)]: https://spectrum.adobe.com/page/design-tokens/\n",
32133213
"readmeFilename": "README.md",
32143214
"_downloads": [
3215-
7938,
32163215
8033,
32173216
7724,
32183217
7735,
@@ -3231,6 +3230,7 @@
32313230
6961,
32323231
7007,
32333232
7167,
3234-
6943
3233+
6943,
3234+
6823
32353235
]
32363236
}

npm-data/plugins/@csstools/postcss-exponential-functions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,7 +2555,6 @@
25552555
"readme": "# PostCSS Exponential Functions [<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-exponential-functions --save-dev`\n\n[PostCSS Exponential Functions] lets you use the `pow()`, `sqrt()`, `hypot()`, `log()`, `exp()` functions following the [CSS Values 4 Specification].\n\n```css\n.foo {\n\ttop: calc(1px * pow(2, 3));\n\tline-height: sqrt(1.2);\n\tpadding: hypot(3px, 4px);\n\torder: log(10, 10);\n\tmin-height: calc(e - exp(1));\n}\n\n/* becomes */\n\n.foo {\n\ttop: 8px;\n\tline-height: 1.0954451150103;\n\tpadding: 5px;\n\torder: 1;\n\tmin-height: 0;\n}\n```\n\n## Usage\n\nAdd [PostCSS Exponential Functions] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-exponential-functions --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssExponentialFunctions = require('@csstools/postcss-exponential-functions');\n\npostcss([\n\tpostcssExponentialFunctions(/* 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\npostcssExponentialFunctions({ preserve: true })\n```\n\n```css\n.foo {\n\ttop: calc(1px * pow(2, 3));\n\tline-height: sqrt(1.2);\n\tpadding: hypot(3px, 4px);\n\torder: log(10, 10);\n\tmin-height: calc(e - exp(1));\n}\n\n/* becomes */\n\n.foo {\n\ttop: 8px;\n\ttop: calc(1px * pow(2, 3));\n\tline-height: 1.0954451150103;\n\tline-height: sqrt(1.2);\n\tpadding: 5px;\n\tpadding: hypot(3px, 4px);\n\torder: 1;\n\torder: log(10, 10);\n\tmin-height: 0;\n\tmin-height: calc(e - exp(1));\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/#exponential-functions\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-exponential-functions\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Exponential Functions]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions\n[CSS Values 4 Specification]: https://www.w3.org/TR/css-values-4/#exponent-funcs\n",
25562556
"readmeFilename": "README.md",
25572557
"_downloads": [
2558-
8501548,
25592558
8501548,
25602559
8960694,
25612560
8726512,
@@ -2574,6 +2573,7 @@
25742573
9206626,
25752574
9513987,
25762575
9497966,
2577-
9727993
2576+
9727993,
2577+
9788989
25782578
]
25792579
}

0 commit comments

Comments
 (0)