{"name":"postcss-preset-env","version":"10.1.0","keywords":["css","csswg","features","future","lists","next","postcss","postcss-plugin","specifications","specs","stages","w3c"],"license":"MIT-0","_id":"postcss-preset-env@10.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"}],"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"b9c85d25b26c7581a8b11792b1883469c4b69cbf","tarball":"http://registry-npm.ywwl.com/postcss-preset-env/download/postcss-preset-env-10.1.0.tgz","fileCount":7,"integrity":"sha512-OfzbinZWpFcmuLB3mabsGa0NArzx5DVVtZ9G1k326iLvU7Jj9q/G3ihBu/Msi0mt96CjrM23HpbuEewDvT71KQ==","signatures":[{"sig":"MEQCIHOhhP8TWAq1gETB5wJ6vnkTaUFXCXnNBWRKOvxnkPtYAiBGku8wuGLoZNTuBdoDvhyxOYDARUsvuYlDAHdjVKDryw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86595,"size":22482,"noattachment":false,"key":"/postcss-preset-env/-/postcss-preset-env-10.1.0.tgz"},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"c6799fa878400027c4fbf280c2f73a6c97a40465","scripts":{},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugin-packs/postcss-preset-env"},"_npmVersion":"10.9.0","description":"Convert modern CSS into something browsers understand","directories":{},"_nodeVersion":"22.11.0","dependencies":{"cssdb":"^8.2.1","autoprefixer":"^10.4.19","browserslist":"^4.23.1","postcss-clamp":"^4.1.0","postcss-place":"^10.0.0","css-has-pseudo":"^7.0.1","postcss-logical":"^8.0.0","postcss-nesting":"^13.0.1","css-blank-pseudo":"^7.0.1","postcss-page-break":"^3.0.4","postcss-custom-media":"^11.0.5","postcss-focus-within":"^9.0.1","postcss-font-variant":"^5.0.0","postcss-lab-function":"^7.0.6","postcss-selector-not":"^8.0.1","postcss-focus-visible":"^10.0.1","postcss-gap-properties":"^6.0.0","postcss-color-hex-alpha":"^10.0.0","css-prefers-color-scheme":"^10.0.0","postcss-custom-selectors":"^8.0.4","postcss-dir-pseudo-class":"^9.0.1","@csstools/postcss-ic-unit":"^4.0.0","@csstools/postcss-initial":"^2.0.0","postcss-custom-properties":"^14.0.4","postcss-image-set-function":"^7.0.0","postcss-opacity-percentage":"^3.0.0","postcss-overflow-shorthand":"^6.0.0","postcss-color-rebeccapurple":"^10.0.0","@csstools/postcss-nested-calc":"^4.0.0","@csstools/postcss-unset-value":"^4.0.0","postcss-pseudo-class-any-link":"^10.0.1","postcss-replace-overflow-wrap":"^4.0.0","@csstools/postcss-hwb-function":"^4.0.6","@csstools/postcss-media-minmax":"^2.0.5","@csstools/postcss-gamut-mapping":"^2.0.6","@csstools/postcss-cascade-layers":"^5.0.1","@csstools/postcss-color-function":"^4.0.6","@csstools/postcss-logical-resize":"^3.0.0","@csstools/postcss-oklab-function":"^4.0.6","@csstools/postcss-sign-functions":"^1.0.0","@csstools/postcss-is-pseudo-class":"^5.0.1","@csstools/postcss-random-function":"^1.0.0","postcss-color-functional-notation":"^7.0.6","postcss-double-position-gradients":"^6.0.0","@csstools/postcss-content-alt-text":"^2.0.4","@csstools/postcss-logical-overflow":"^2.0.0","postcss-attribute-case-insensitive":"^7.0.1","@csstools/postcss-color-mix-function":"^3.0.6","@csstools/postcss-scope-pseudo-class":"^4.0.1","@csstools/postcss-light-dark-function":"^2.0.7","@csstools/postcss-font-format-keywords":"^4.0.0","@csstools/postcss-exponential-functions":"^2.0.5","@csstools/postcss-relative-color-syntax":"^3.0.6","@csstools/postcss-logical-viewport-units":"^3.0.3","@csstools/postcss-logical-float-and-clear":"^3.0.0","@csstools/postcss-stepped-value-functions":"^4.0.5","@csstools/postcss-trigonometric-functions":"^4.0.5","@csstools/postcss-normalize-display-values":"^4.0.0","@csstools/postcss-text-decoration-shorthand":"^4.0.1","@csstools/postcss-logical-overscroll-behavior":"^2.0.0","@csstools/postcss-progressive-custom-properties":"^4.0.0","@csstools/postcss-gradients-interpolation-method":"^5.0.6","@csstools/postcss-media-queries-aspect-ratio-number-values":"^3.0.4"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-preset-env_10.1.0_1731325197790_0.8020796685988607","host":"s3://npm-registry-packages"},"readme":"# PostCSS Preset Env [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/postcss-preset-env.svg\" height=\"20\">][npm-url]\n[<img alt=\"build status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url]\n[![install size][package-phobia-badge]][package-phobia]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n\n[PostCSS Preset Env] lets you convert modern CSS into something most browsers\ncan understand, determining the polyfills you need based on your targeted\nbrowsers or runtime environments.\n\n## Quick start\n\n[PostCSS Preset Env] is a [PostCSS] plugin.<br>\nIf you are already using [PostCSS] to build your CSS, you can simply add [PostCSS Preset Env] to your configuration.\n\n- Install `postcss-preset-env` from npm.\n- Add `postcss-preset-env` to your configuration.\n- Explore the [features list](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/FEATURES.md).\n\n```js\nconst postcssPresetEnv = require('postcss-preset-env');\n\nconst yourConfig = {\n\tplugins: [\n\t\t/* other plugins */\n\t\t/* remove autoprefixer if you had it here, it's part of postcss-preset-env */\n\t\tpostcssPresetEnv({\n\t\t\t/* pluginOptions */\n\t\t\tfeatures: {},\n\t\t})\n\t]\n}\n```\n\n_[Read more on how to use and install PostCSS Preset Env.](#usage)_\n\n## How does it work?\n\n[PostCSS Preset Env] is a Plugin Pack for [PostCSS]. It leverages the list of the features we keep an eye from [CSSDB][cssdb] and applies plugins, so you can use those new features without having to worry about browser support.\n\nCSSDB exposes the browser support that each feature has which can come from [Can I Use](https://caniuse.com/css-all) or from [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/all) (through [mdn/browser-compat-data](https://github.com/mdn/browser-compat-data)).\n\nBy providing a list of browser targets for your project, plugins that aren't needed will be skipped. Over time your targets might change and by updating the settings your CSS bundle will only ever contain the needed fallbacks.\n\nWhat [PostCSS Preset Env] does is to take the support data that comes from MDN and Can I Use and determine from a [browserslist](https://github.com/browserslist/browserslist) whether those transformations are needed. It also packs [Autoprefixer](https://github.com/postcss/autoprefixer) within and shares the list with it, so prefixes are only applied when you're going to need them given your browser support list.\n\n### Glossary:\n\n* **Browser list option**: [Browserslist](https://github.com/browserslist/browserslist) is a package that gives you a list of browsers for a given query. For example, `chrome < 42` will give you a list of every Chrome version that has been released up to, but not including, 42.\n* **Browser support stats**: Features get introduced on browsers at certain versions. They're often visible on [MDN](https://developer.mozilla.org/en-US/) and [Can I Use](https://caniuse.com/). Comparing these stats with the needed _support_ for your project tells you if it's safe to use a feature or not.\n* **CSS Feature**: A CSS feature is often part of some spec that enables a specific feature. For example, `hwb` functional notation lets you express a given color according to its hue, whiteness, and blackness. This is part of the CSS Color 4 Spec.\n* **CSS Spec**: A Spec is a document that collects new features, what problems are they trying to solve and how it's intended to be solved (generally). This is usually an evolving document that goes over lengthy discussions between several people from different companies.\n* **Plugin**: A plugin is package that's intended (usually) to enable a new CSS Feature by leveraging PostCSS. This doesn't need to be part of any spec. An example of the latter is [PostCSS Mixins](https://github.com/postcss/postcss-mixins), a concept that existed on Less or Sass, but it's not part of any spec. This plugin pack **only** packs plugins that enable features acknowledged by the World Wide Web Consortium (W3C) which will then be implemented by browsers later.\n* **Polyfill**: A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not natively support it. A polyfill _should_ be indistinguishable from the native behaviour.\n\nHere's a quick example of the syntax you can leverage by using [PostCSS Preset Env].\n\n```css\n@custom-media --viewport-medium (width <= 50rem);\n@custom-selector :--heading h1, h2, h3, h4, h5, h6;\n\n:root {\n  --mainColor: #12345678;\n}\n\nbody {\n  color: var(--mainColor);\n  font-family: system-ui;\n  overflow-wrap: break-word;\n}\n\n:--heading {\n  background-image: image-set(url(img/heading.png) 1x, url(img/heading@2x.png) 2x);\n\n  @media (--viewport-medium) {\n    margin-block: 0;\n  }\n}\n\na {\n  color: rgb(0 0 100% / 90%);\n\n  &:hover {\n    color: rebeccapurple;\n  }\n}\n\n/* becomes */\n\n:root {\n  --mainColor: rgba(18, 52, 86, 0.47059);\n}\n\nbody {\n  color: rgba(18, 52, 86, 0.47059);\n  color: var(--mainColor);\n  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Droid Sans, Helvetica Neue;\n  word-wrap: break-word;\n}\n\nh1, h2, h3, h4, h5, h6 {\n  background-image: url(img/heading.png);\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n  h1, h2, h3, h4, h5, h6 {\n    background-image: url(img/heading@2x.png)\n  }\n}\n\n@media (max-width: 50rem) {\n  h1, h2, h3, h4, h5, h6 {\n    margin-top: 0;\n    margin-bottom: 0;\n  }\n}\n\na {\n  color: rgba(0, 0, 255, 0.9)\n}\n\na:hover {\n  color: #639;\n}\n```\n\nWithout any configuration options, [PostCSS Preset Env] enables **Stage 2**\nfeatures and supports **all** browsers.\n\n[**Try it out in the Playground!**](https://preset-env.cssdb.org/playground/)\n\n> [!NOTE]\n> Please note that some features need a companion library that makes the feature work. While we try to avoid this requirement, there are instances in which this isn't possible to polyfill a new behaviour with _just_ CSS.\n\n[See the list below](#plugins-that-need-client-library).\n\n## Usage\n\nAdd [PostCSS Preset Env] to your project:\n\n```bash\nnpm install postcss-preset-env --save-dev\n```\n\nUse [PostCSS Preset Env] as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssPresetEnv = require('postcss-preset-env');\n\npostcss([\n  postcssPresetEnv(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Preset Env] runs in all Node environments, with special instructions for:\n\n- [Node](INSTALL.md#node)\n- [PostCSS CLI](INSTALL.md#postcss-cli)\n- [PostCSS Load Config](INSTALL.md#postcss-load-config)\n- [Webpack](INSTALL.md#webpack)\n- [Next.js](INSTALL.md#nextjs)\n- [Gulp](INSTALL.md#gulp)\n- [Grunt](INSTALL.md#grunt)\n\n### Position in your PostCSS plugins list\n\n[PostCSS Preset Env] only contains polyfills and fallbacks for standard CSS features and is unable to handle non-standard features and syntactic sugar.\n\nIf you also have PostCSS plugins for non-standard features and syntactic sugar,  \nyou should place these first in the PostCSS plugins list.\n\n```js\nmodule.exports = {\n\tplugins: [\n\t\t\"postcss-syntactic-sugar\",\n\t\t\"postcss-non-standard\",\n\t\t// ...\n\t\t[\n\t\t\t\"postcss-preset-env\",\n\t\t\t{\n\t\t\t\t// plugin options\n\t\t\t},\n\t\t],\n\t\t// ...\n\t\t// maybe a minifier?\n\t],\n};\n```\n\nYou can also use the [`insertBefore` / `insertAfter`](#insertbefore--insertafter) plugin options for more fine grained control.\n\n## Options\n\n### stage\n\nThe `stage` option determines which CSS features to polyfill, based upon their\nstability in the process of becoming implemented web standards.\n\n```js\npostcssPresetEnv({ stage: 0 })\n```\n\nThe `stage` can be `0` (experimental) through `4` (stable), or `false`. Setting\n`stage` to `false` will disable every polyfill. Doing this would only be useful\nif you intended to exclusively use the [`features`](#features) option.\n\nDefault: `2`\n\n**It is very rare for features to progress beyond stage `2`.**  \n**Use `minimumVendorImplementations` if you prefer to keep up with modern features.**\n\n### minimumVendorImplementations\n\nThe `minimumVendorImplementations` option determines which CSS features to polyfill, based their implementation status.\nThis can be used to enable plugins that are available in browsers regardless of the [spec status](#stage).\n\n```js\npostcssPresetEnv({ minimumVendorImplementations: 2 })\n```\n\n`minimumVendorImplementations` can be `0` (no vendor has implemented it) through `3` (all major vendors).<br>\n\nDefault: `0`\n\n**Note:**\n\nWhen a feature has not yet been implemented by any vendor it can be considered experimental.<br>\nEven with a single implementation it might still change in the future.<br>\nSometimes issues with a feature/specification are only discovered after it becomes available.\n\nA value of `2` is recommended when you want to use only those features that should be [stable](#stability-and-portability).\n\nHaving 2 independent implementations is [a critical step in proposals becoming standards](https://www.w3.org/2021/Process-20211102/#implementation-experience) and a good indicator of a feature's stability.\n\n### features\n\nThe `features` option enables or disables specific polyfills by ID. Passing\n`true` to a specific feature ID will enable its polyfill, while passing `false`\nwill disable it. [List of Features](https://github.com/csstools/postcss-plugins/blob/main/plugin-packs/postcss-preset-env/FEATURES.md)\n\n```js\npostcssPresetEnv({\n  /* use stage 3 features + css nesting rules */\n  stage: 3,\n  features: {\n    'nesting-rules': true\n  }\n})\n```\n\nPassing an object to a specific feature ID will both enable and configure it.\n\n```js\npostcssPresetEnv({\n  /* use stage 3 features + custom-selectors (preserving the original CSS) */\n  stage: 3,\n  features: {\n    'custom-selectors': { preserve: true }\n  }\n})\n```\n\nIf you want to preserve automatic enabling of features  \nbased on the stage, implementations and or browserslist,  \nyou can pass an array: `['auto', { /* plugin options */ }]`.\n\n```js\npostcssPresetEnv({\n  /* use stage 3 features + custom-selectors (preserving the original CSS) */\n  stage: 3,\n  features: {\n    'custom-selectors': ['auto', { preserve: true }]\n  }\n})\n```\n\nAny polyfills not explicitly enabled or disabled through `features` are\ndetermined by the [`stage`](#stage) option.\n\n### env\n\n[PostCSS Preset Env] supports standard [browserslist] configuration, which can\nbe a `.browserslistrc` file, a `browserslist` key in `package.json`, or\n`browserslist` environment variables.\n\nThe `env` option is used by [browserslist] to determine the named environment\nthat should be used when you have [multiple browserslist environments](https://github.com/browserslist/browserslist#configuring-for-different-environments)\nconfigured. If not set, Browserslist will use the `production` environment.\n\n```js\n/* use the environment named `development`, instead of the default environment of `production` */\npostcssPresetEnv({ env: 'development' })\n```\n\n### browsers\n\nThe `browsers` option overrides any existing [browserslist] configuration.\n\nThe `browsers` option should only be used when a standard browserslist\nconfiguration is not available.  \nWhen the `browsers` option is used the `env` option will be ignored.\n\n```js\npostcssPresetEnv({ browsers: 'last 2 versions' })\n```\n\nIf no valid browserslist configuration is specified, the\n[default browserslist query](https://github.com/browserslist/browserslist#queries)\nwill be used.\n\n### insertBefore / insertAfter\n\nThe `insertBefore` and `insertAfter` keys allow you to insert other PostCSS\nplugins into the chain. This is only useful if you are also using sugary\nPostCSS plugins that must execute before or after certain polyfills.\nBoth `insertBefore` and `insertAfter` support chaining one or multiple plugins.\n\n```js\nimport postcssSimpleVars from 'postcss-simple-vars';\n\npostcssPresetEnv({\n  insertBefore: {\n    'all-property': postcssSimpleVars\n  }\n})\n```\n\n### autoprefixer\n\n[PostCSS Preset Env] includes [autoprefixer]; the [`env`](#env) and [`browsers`](#browsers) options will be passed to it automatically.\n\nSpecifying the `autoprefixer` option enables passing\n[additional options](https://github.com/postcss/autoprefixer#options)\ninto [autoprefixer].\n\n```js\npostcssPresetEnv({\n  autoprefixer: { grid: true }\n})\n```\n\nPassing `autoprefixer: false` disables autoprefixer.\n\n⚠️ [autoprefixer] has [complex logic to fix CSS Grid in IE and older Edge](https://github.com/postcss/autoprefixer#grid-autoplacement-support-in-ie).\n\nThis can have unexpected results with certain features and when [`preserve: true`](#preserve) is used. (defaults to `true`)\n\n```css\n:root {\n  --grid-gap: 15px;\n}\n\n.test-grid {\n\tgrid-gap: var(--grid-gap);\n\tgrid-template-columns: repeat(2, 1fr);\n}\n```\n\nBecomes :\n\n```\n.test-grid {\n\tgrid-gap: 15px;\n\tgrid-gap: var(--grid-gap);\n\t-ms-grid-columns: 1fr var(--grid-gap) 1fr;\n\tgrid-template-columns: repeat(2, 1fr);\n}\n```\n\nThe prefixed `-ms-grid-columns` still has a custom property: `1fr var(--grid-gap) 1fr;` which won't work.<br />\nThis example shows issues with custom properties but other transforms might have similar issues.\n\nIf you target IE or older Edge it is best to avoid using other modern features in grid property values.<br />\nAs a last resort you can set [`preserve: false`](#preserve), we do not advice this as doing so purely to fix issues with CSS grid.\n\n_older Edge is any version before chromium (<79)_\n\n### preserve\n\nThe `preserve` option determines whether all plugins should receive a\n`preserve` option, which may preserve or remove otherwise-polyfilled CSS. By\ndefault, this option is not configured.\n\n```js\npostcssPresetEnv({\n  preserve: false // instruct all plugins to omit pre-polyfilled CSS\n});\n```\n\n### debug\n\nThe `debug` option enables debugging messages to stdout which should be useful to help you debug which features have been enabled/disabled and why.\n\n### enableClientSidePolyfills\n\nThe `enableClientSidePolyfills` enables all features that also need an extra browser library to be loaded into the page for it to work. Defaults to `false`.\n\n- Note that manually enabling/disabling features via the \"feature\" option overrides this flag.\n- This only controls if the PostCSS plugins are enabled. It does not cause the browsers libraries to be included in your bundle.\n\n### logical\n\nThe `logical` option can hold an object which lets you specify direction of the inline and block axes and will affect the\nfollowing features:\n\n- `logical-properties-and-values`: [PostCSS Logical](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical#readme)\n- `float-clear-logical-values`: [PostCSS Logical Float And Clear](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical#readme)\n- `logical-resize`: [PostCSS Logical Resize](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme)\n- `logical-viewport-units`: [PostCSS Logical Viewport Units](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-viewport-units#readme)\n\nIt should have `blockDirection` and/or `inlineDirection` which can be any of the following:\n\n- `top-to-bottom`\n- `bottom-to-top`\n- `left-to-right`\n- `right-to-left`\n\n```js\npostcssPresetEnv({\n  logical: { // instruct all logical plugins to set inline axis to right to left\n\t\tinlineDirection: 'right-to-left',\n\t},\n});\n```\n\n```css\n.element {\n\tfloat: inline-start;\n\tpadding-inline-end: 10px;\n}\n```\n\nBecomes :\n\n```\n.element {\n\tfloat: right;\n\tpadding-left: 10px;\n}\n```\n\nYou can't mix two vertical directions or two horizontal directions so for example `top-to-bottom` and `right-to-left` are valid, but `top-to-bottom` and `bottom-to-top` are not.\n\nYou might want to tweak these values if you are using a different writing system, such as Arabic, Hebrew or Chinese for example.\n\n## Stability and Portability\n\n[PostCSS Preset Env] will often include very modern CSS features that are not fully ready yet.\nThis gives users the chance to play around with these features and provide feedback.\n\nIf the specification changes or is abandoned a new major version of the plugin will be released.\nThis will require you to update your source code so that everything works as expected.\n\nTo have more stability between updates of [PostCSS Preset Env] you may set `stage: 3` and/or `minimumVendorImplementations: 2`.\n\nA side effect of staying close to the standard is that you can more easily migrate your project to other tooling all together.\n\n## Plugins list\n\n### Plugins that need client library\n\nThis is the current list of features that need a client library with a link\nto the polyfill's library.\n\n* `blank-pseudo-class`: [Plugin](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo) / [Polyfill](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo#browser)\n* `focus-visible-pseudo-class`: [Plugin](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible) / [Polyfill](https://github.com/WICG/focus-visible)\n* `focus-within-pseudo-class`: [Plugin](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-within) / [Polyfill](https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-focus-within#browser)\n* `has-pseudo-class`: [Plugin](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo) / [Polyfill](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-has-pseudo#browser)\n* `prefers-color-scheme-query`: [Plugin](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme) / [Polyfill](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-prefers-color-scheme#browser)\n\nIf you want to enable all these types of features, please check the [`enableClientSidePolyfills` option](#enableclientsidepolyfills).\n\n### Plugins not affected by Browser Support\n\nGiven they have no support they will always be enabled if they match by Stage:\n\n* `blank-pseudo-class`: [Plugin](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo) / [Polyfill](https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo#browser)\n* `custom-media-queries`: [Plugin](https://github.com/postcss/postcss-custom-media)\n* `nesting-rules`: [Plugin](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting)\n\n[cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-img]: https://img.shields.io/npm/v/postcss-preset-env.svg\n[npm-url]: https://www.npmjs.com/package/postcss-preset-env\n[package-phobia-badge]: https://packagephobia.com/badge?p=postcss-preset-env\n[package-phobia]: https://packagephobia.com/result?p=postcss-preset-env\n\n[autoprefixer]: https://github.com/postcss/autoprefixer\n[browserslist]: https://github.com/browserslist/browserslist#readme\n[caniuse]: https://caniuse.com/\n[cssdb]: https://cssdb.org/\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Preset Env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env\n","publish_time":1731325197976,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1731325197976,"dist-tags":{"latest":"11.6.3"}}