{
  "manifest": {
    "name": "css-prefers-color-scheme",
    "version": "6.0.3",
    "description": "Use light and dark color schemes in all browsers",
    "author": {
      "name": "Jonathan Neal",
      "email": "jonathantneal@hotmail.com"
    },
    "license": "CC0-1.0",
    "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme#readme",
    "bugs": {
      "url": "https://github.com/csstools/postcss-plugins/issues"
    },
    "main": "dist/index.cjs",
    "module": "dist/index.mjs",
    "exports": {
      ".": {
        "import": "./dist/index.mjs",
        "require": "./dist/index.cjs",
        "default": "./dist/index.mjs"
      },
      "./browser": {
        "import": "./dist/browser.mjs",
        "require": "./dist/browser.cjs",
        "default": "./dist/browser.mjs"
      },
      "./browser-global": {
        "default": "./dist/browser-global.js"
      }
    },
    "files": [
      "CHANGELOG.md",
      "LICENSE.md",
      "README.md",
      "dist",
      "browser.js",
      "browser.min.js"
    ],
    "bin": {
      "css-prefers-color-scheme": "dist/cli.cjs"
    },
    "scripts": {
      "build": "rollup -c ../../rollup/default.js && npm run copy-browser-scripts-to-old-location",
      "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
      "copy-browser-scripts-to-old-location": "node -e \"fs.copyFileSync('./dist/browser-global.js', './browser.js'); fs.copyFileSync('./dist/browser-global.js', './browser.min.js')\"",
      "lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
      "prepublishOnly": "npm run clean && npm run build && npm run test",
      "stryker": "stryker run --logLevel error",
      "test": "postcss-tape --ci && npm run test:exports",
      "test:exports": "node ./test/_import.mjs && node ./test/_require.cjs"
    },
    "engines": {
      "node": "^12 || ^14 || >=16"
    },
    "devDependencies": {
      "postcss": "^8.3.6",
      "postcss-tape": "^6.0.1"
    },
    "peerDependencies": {
      "postcss": "^8.4"
    },
    "keywords": [
      "postcss",
      "css",
      "postcss-plugin",
      "media",
      "query",
      "prefers",
      "color",
      "scheme",
      "dark",
      "light",
      "no-preference",
      "mode",
      "queries",
      "interface"
    ],
    "repository": {
      "type": "git",
      "url": "https://github.com/csstools/postcss-plugins.git",
      "directory": "plugins/css-prefers-color-scheme"
    },
    "volta": {
      "extends": "../../package.json"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-css-prefers-color-scheme-6.0.3-ca8a22e5992c10a5b9d315155e7caee625903349-integrity/node_modules/css-prefers-color-scheme/package.json",
    "readmeFilename": "README.md",
    "readme": "# Prefers Color Scheme [<img src=\"https://jonathantneal.github.io/js-logo.svg\" alt=\"\" width=\"90\" height=\"90\" align=\"right\">][Prefers Color Scheme]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n\n[Prefers Color Scheme] lets you use light and dark color schemes in all\nbrowsers, following the [Media Queries] specification.\n\n[!['Can I use' table](https://caniuse.bitsofco.de/image/prefers-color-scheme.png)](https://caniuse.com/#feat=prefers-color-scheme)\n\n## Usage\n\nFrom the command line, transform CSS files that use `prefers-color-scheme`\nmedia queries:\n\n```bash\nnpx css-prefers-color-scheme SOURCE.css TRANSFORMED.css\n```\n\nNext, use that transformed CSS with this script:\n\n```html\n<link rel=\"stylesheet\" href=\"TRANSFORMED.css\">\n<script src=\"https://unpkg.com/css-prefers-color-scheme/dist/browser-global.js\"></script>\n<script>\ncolorScheme = initPrefersColorScheme('dark') // apply \"dark\" queries (you can change it afterward, too)\n</script>\n```\n\n⚠️ Please use a versioned url, like this : `https://unpkg.com/css-prefers-color-scheme@6.0.0/dist/browser-global.js`\nWithout the version, you might unexpectedly get a new major version of the library with breaking changes.\n\n⚠️ If you were using an older version via a CDN, please update the entire url.\nThe old URL will no longer work in a future release.\n\n## Usage\n\n- First, transform `prefers-color-scheme` queries using this\n  [PostCSS plugin](README-POSTCSS.md).\n- Next, apply light and dark color schemes everywhere using this\n  [browser script](README-BROWSER.md).\n\n---\n\n## How does it work?\n\n_This plugin used to work with `color-index` as detailed here : [color-index](https://github.com/csstools/css-prefers-color-scheme#how-does-it-work)._\n_This is deprecated but will continue to work for now._\n_`color` has better browser support and enables complex media queries._\n\n[Prefers Color Scheme] uses a [PostCSS plugin](README-POSTCSS.md) to transform\n`prefers-color-scheme` queries into `color` queries. This changes\n`prefers-color-scheme: dark` into `(color: 48842621)`,\n`prefers-color-scheme: light` into `(color: 70318723)`, and\n`prefers-color-scheme: no-preference` into `(color: 22511989)`.\n\nThe frontend receives these `color` queries, which are understood in all\nmajor browsers going back to Internet Explorer 9.\nHowever, since browsers can only have a reasonably small number of bits per color,\nour color scheme values are ignored.\n\n[Prefers Color Scheme] uses a [browser script](README-BROWSER.md) to change\n`(color: 48842621)` queries into `(max-color: 48842621)` in order to\nactivate “dark mode” specific CSS, and it changes `(color: 70318723)` queries\ninto `(max-color: 48842621)` to activate “light mode” specific CSS.\n\n```css\n@media (color: 70318723) { /* prefers-color-scheme: light */\n  body {\n    background-color: white;\n    color: black;\n  }\n}\n```\n\nSince these media queries are accessible to `document.styleSheet`, no CSS\nparsing is required.\n\n## Why does the fallback work this way?\n\nThe value of `48` is chosen for dark mode because it is the keycode for `0`,\nthe hexidecimal value of black. Likewise, `70` is chosen for light mode because\nit is the keycode for `f`, the hexidecimal value of white.\nThese are suffixed with a random large number.\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/css-prefers-color-scheme.svg\n[npm-url]: https://www.npmjs.com/package/css-prefers-color-scheme\n\n[PostCSS]: https://github.com/postcss/postcss\n[Prefers Color Scheme]: https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme\n[Media Queries]: https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-scheme\n",
    "licenseText": "# CC0 1.0 Universal\n\n## Statement of Purpose\n\nThe laws of most jurisdictions throughout the world automatically confer\nexclusive Copyright and Related Rights (defined below) upon the creator and\nsubsequent owner(s) (each and all, an “owner”) of an original work of\nauthorship and/or a database (each, a “Work”).\n\nCertain owners wish to permanently relinquish those rights to a Work for the\npurpose of contributing to a commons of creative, cultural and scientific works\n(“Commons”) that the public can reliably and without fear of later claims of\ninfringement build upon, modify, incorporate in other works, reuse and\nredistribute as freely as possible in any form whatsoever and for any purposes,\nincluding without limitation commercial purposes. These owners may contribute\nto the Commons to promote the ideal of a free culture and the further\nproduction of creative, cultural and scientific works, or to gain reputation or\ngreater distribution for their Work in part through the use and efforts of\nothers.\n\nFor these and/or other purposes and motivations, and without any expectation of\nadditional consideration or compensation, the person associating CC0 with a\nWork (the “Affirmer”), to the extent that he or she is an owner of Copyright\nand Related Rights in the Work, voluntarily elects to apply CC0 to the Work and\npublicly distribute the Work under its terms, with knowledge of his or her\nCopyright and Related Rights in the Work and the meaning and intended legal\neffect of CC0 on those rights.\n\n1. Copyright and Related Rights. A Work made available under CC0 may be\n   protected by copyright and related or neighboring rights (“Copyright and\n   Related Rights”). Copyright and Related Rights include, but are not limited\n   to, the following:\n   1. the right to reproduce, adapt, distribute, perform, display, communicate,\n      and translate a Work;\n   2. moral rights retained by the original author(s) and/or performer(s);\n   3. publicity and privacy rights pertaining to a person’s image or likeness\n      depicted in a Work;\n   4. rights protecting against unfair competition in regards to a Work,\n      subject to the limitations in paragraph 4(i), below;\n   5. rights protecting the extraction, dissemination, use and reuse of data in\n      a Work;\n   6. database rights (such as those arising under Directive 96/9/EC of the\n      European Parliament and of the Council of 11 March 1996 on the legal\n      protection of databases, and under any national implementation thereof,\n      including any amended or successor version of such directive); and\n   7. other similar, equivalent or corresponding rights throughout the world\n      based on applicable law or treaty, and any national implementations\n      thereof.\n\n2. Waiver. To the greatest extent permitted by, but not in contravention of,\n   applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and\n   unconditionally waives, abandons, and surrenders all of Affirmer’s Copyright\n   and Related Rights and associated claims and causes of action, whether now\n   known or unknown (including existing as well as future claims and causes of\n   action), in the Work (i) in all territories worldwide, (ii) for the maximum\n   duration provided by applicable law or treaty (including future time\n   extensions), (iii) in any current or future medium and for any number of\n   copies, and (iv) for any purpose whatsoever, including without limitation\n   commercial, advertising or promotional purposes (the “Waiver”). Affirmer\n   makes the Waiver for the benefit of each member of the public at large and\n   to the detriment of Affirmer’s heirs and successors, fully intending that\n   such Waiver shall not be subject to revocation, rescission, cancellation,\n   termination, or any other legal or equitable action to disrupt the quiet\n   enjoyment of the Work by the public as contemplated by Affirmer’s express\n   Statement of Purpose.\n\n3. Public License Fallback. Should any part of the Waiver for any reason be\n   judged legally invalid or ineffective under applicable law, then the Waiver\n   shall be preserved to the maximum extent permitted taking into account\n   Affirmer’s express Statement of Purpose. In addition, to the extent the\n   Waiver is so judged Affirmer hereby grants to each affected person a\n   royalty-free, non transferable, non sublicensable, non exclusive,\n   irrevocable and unconditional license to exercise Affirmer’s Copyright and\n   Related Rights in the Work (i) in all territories worldwide, (ii) for the\n   maximum duration provided by applicable law or treaty (including future time\n   extensions), (iii) in any current or future medium and for any number of\n   copies, and (iv) for any purpose whatsoever, including without limitation\n   commercial, advertising or promotional purposes (the “License”). The License\n   shall be deemed effective as of the date CC0 was applied by Affirmer to the\n   Work. Should any part of the License for any reason be judged legally\n   invalid or ineffective under applicable law, such partial invalidity or\n   ineffectiveness shall not invalidate the remainder of the License, and in\n   such case Affirmer hereby affirms that he or she will not (i) exercise any\n   of his or her remaining Copyright and Related Rights in the Work or (ii)\n   assert any associated claims and causes of action with respect to the Work,\n   in either case contrary to Affirmer’s express Statement of Purpose.\n\n4. Limitations and Disclaimers.\n   1. No trademark or patent rights held by Affirmer are waived, abandoned,\n      surrendered, licensed or otherwise affected by this document.\n   2. Affirmer offers the Work as-is and makes no representations or warranties\n      of any kind concerning the Work, express, implied, statutory or\n      otherwise, including without limitation warranties of title,\n      merchantability, fitness for a particular purpose, non infringement, or\n      the absence of latent or other defects, accuracy, or the present or\n      absence of errors, whether or not discoverable, all to the greatest\n      extent permissible under applicable law.\n   3. Affirmer disclaims responsibility for clearing rights of other persons\n      that may apply to the Work or any use thereof, including without\n      limitation any person’s Copyright and Related Rights in the Work.\n      Further, Affirmer disclaims responsibility for obtaining any necessary\n      consents, permissions or other rights required for any use of the Work.\n   4. Affirmer understands and acknowledges that Creative Commons is not a\n      party to this document and has no duty or obligation with respect to this\n      CC0 or use of the Work.\n\nFor more information, please see\nhttp://creativecommons.org/publicdomain/zero/1.0/.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz#ca8a22e5992c10a5b9d315155e7caee625903349",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-6.0.3.tgz",
    "hash": "ca8a22e5992c10a5b9d315155e7caee625903349",
    "integrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==",
    "registry": "npm",
    "packageName": "css-prefers-color-scheme",
    "cacheIntegrity": "sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA== sha1-yooi5ZksEKW50xUVXnyu5iWQM0k="
  },
  "registry": "npm",
  "hash": "ca8a22e5992c10a5b9d315155e7caee625903349"
}